Mgilder
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: unable to reach WordPress.org cURL error 2:Thank you. I had already tried that.
I created a Curl script to run in a browser, so that I can see what was going on with my wordpress sites.<?php $url = "https://www.wordpress.org/"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_AUTOREFERER, false); curl_setopt($ch, CURLOPT_REFERER, "https://www.wordpress.org"); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HEADER, 0); $result = curl_exec($ch); echo $result; echo "Curl error: ".curl_errno($ch)."</br>"; echo "URL: ".$url; curl_close($ch); ?>When I run it in a browser I get this –
301 Moved Permanently
nginx
Curl error: 0
URL: https://www.wordpress.org/Strange, right? I know this is still wordpress.org address.
Yes, I can ping wordpress.org and I can nslookup wordpress.org, no problems, on my locally hosted server.
So, I wanted to get /opt/rh/httpd24 out of the picture, and changed things to use the RH core httpd apache.
When I switch my site back to using /etc/httpd/ with rh-php56 everything resolves well in WordPress.
When I switch my site back to using /etc/httpd/ with rh-php73 wordpress.org is unreachable, or moved in WordPress.I have a RHEL OS support case open, but thought that I would post on a WordPress Forum to see if anyone here has had this problem.
Thank you for your suggestion. I do appreciate it.- This reply was modified 5 years, 3 months ago by Steven Stern (sterndata).
Forum: Localhost Installs
In reply to: How to update mysql, php, WordPress with minimal downtimeHey, thank you RossMitchell, I was able to set everything up on my servers, so that I could quickly switch to rh-mariadb102, and php56. I had backed up each site, deactivated plugins, and then scheduled 45 minutes, late at night to bring the WP sites up to a point where I could update to wordpress 5.5.3, without any problems. I completed the task with time to spare. With WP at a current revision, I am now upgrading to php74, which I was able to verify would work with my WP sites using the php checker plugin. Easy peasy.
Forum: Localhost Installs
In reply to: How to update mysql, php, WordPress with minimal downtimeSurely there must be someone who has WordPress running on their own server and had to upgrade their php. How do I change a wordpress site to use a different version of php than it is currently using?
“WordPress 5.5.1 requires PHP version 5.6.20 or higher. You are running version 5.4.16.”
Is there a configuration file in a wordpress site to point it to use a different php install. I do not have cpanel, or a hosted site that provides tools to do this. I would need to manually configure a site to use the different version, from php-5.4 to php-5.6 version. Any help would be great. This is beyond the scope of a redhat support question, and more related to wordpress. I found how to install and setup wordpress with php-xx.x and mysql-xx.x, and how to use cpanel to change php, but have not seen how to manually change/configure WP to use another version of php.
Forum: Localhost Installs
In reply to: How to update mysql, php, WordPress with minimal downtimeThank you for responding so quickly. Can I ask you one question? What about the WordPress saying to upgrade the php?
“WordPress 5.5.1 requires PHP version 5.6.20 or higher. You are running version 5.4.16.”So, I installed the Optional repository for rh-php56. How do I have one of my wordpress sites use the rh-php56, while the other sites use the php-5.4.16?
I know that the rh-php56 requires httpd24, and can configure the conf file to run under the httpd24/conf.d. Where I can run httpd for the older sites, until I upgrade them, and httpd24 for the site that I want to run php-5.6. for.
Thank you again!