| Migrating From PHP4 To PHP5: Solving WP-Cache (and maybe other) Issues |
|
|
|
Situation: You are migrating your wordpress blog from PHP4 to PHP5 (intentionally or being forced to as you web host won’t support PHP4 anymore). Most of the times, this is as simple as adding some simple lines to .htaccess (e.g. Problem: My host supports both PHP4 and PHP5. I decided to migrate my personal blog to PHP5 today by adding the aforementioned line to my .htaccess. Immediately, my blog disappeared, and in its place, all that was left was a few errors:
Note: I’ve deleted the exact file paths above for security reasons. It gave me an idea that it had something to do with wp-cache. When I tried to open the settings for wp-cache, it again gve error that web server doesn’t have the permissions to write the file wp-cache-config.php, wp_cache_mutex.lock etc.
Analysis: On checking the file permissions for these mentioned files, I found that they already belong to the user under which the web server runs. So, write permissions shouldn’t have been a problem. I guessed that maybe this issue is because of another “handler” (x-httpd-php5) now trying to modify the files while earlier they were created by the php4 handler. But I couldn’t change the permissions now because they were created by the web server and I can’t modify/delete them through ssh/ftp under my username. Solution: So, the solution (or workaround as you may call it) was to login to my cpanel, and use the “File Manager” there, since all operations done by it would also be carried out by the web-server. So, all I did was:
And that’s it. My personal blog is now running happily over PHP5 goodness Note: This problem might not be limited to WP-Cache alone. There might be other plugins as well having the same problem. Note2: If you feel uncomfortable deleting any file, then make a copy of it through ssh/ftp (so that it is under your user name), delete the original file, and replace it by the copy you made. Now, you can give this file a permission of “777” (that is readable, writable, executable by all), so that the web server can also modify it. sumber tulisan : http://tech.shantanugoel.com/2008/04/07/migrating-from-php4-to-php5-solving-wp-cache-and-maybe-other-issues.html
Set as favorite
Bookmark
Email this
Hits: 211 Komentar (0)
![]() Tulis Komentar
|
| Acak Artikelnya | |