Hi I have several wordpress blogs running on my account. One of the plugins complains about the php version which is 5.2.17 (I'm on web331). I've tried editing the .htaccess files and adding the correct php handler to the htaccess file inside the blog directory, but it is not working. Wordpress then loses access to the database, and when running a php --version command on the server it still gives me the same version. Removing the handler from the .htaccess solves the problem. This is what I added : <filesmatch \.php$=""> SetHandler php56-cgi </filesmatch> I found this answer, but I can't seem to figure out how to reset the wordpress pasword from the control panel. What am I doing wrong ? asked 02 Oct '16, 17:54 lexstokske |
That is generally the right method, although more may be going on, The code should look like this, note the difference in case and the target for files match.
If it still fails check the application logs in ~/logs/frontend/error_* for more details on what is wrong with the code in .htaccess. You may also use a php info file to check the version being reported there, the error might also be the way the code you are using is doing version checking. Put this into a blank php file and read it from a browser to check the version directly,
answered 02 Oct '16, 21:35 johns |