Submitted by securewebs on Mon, 03/16/2015 - 18:00 Pro Licensee
Attempting to move a WordPress site to our server from another host I have run up against a whitescreen issue. Enabling PHP errors in the setup.php file I am now getting an error that the path is wrong -- (include_path='.:/usr/share/pear:/usr/share/php'). The paths in the virtual server .ini is commented out which appears to be ";include_path = ".:/php/includes". Is this the file I should be working on? I don't really want to change it for all servers, just this one. Of course, there might be other issues as I don't know anything about the other hosting company servers but at the moment this is the one that is killing the move.
Status:
Active
Comments
Submitted by andreychek on Mon, 03/16/2015 - 18:47 Comment #1
Howdy -- if you're using FCGID or CGI, the php.ini file you'd want to edit is in $HOME/etc/php.ini. If you're using mod_php, it's the one in /etc.
If you look at the Apache error log in $HOME/logs/error_log, are you seeing any errors there when you get the blank screen in WordPress?
Submitted by securewebs on Mon, 03/16/2015 - 19:39 Pro Licensee Comment #2
Using mod_fcgid so I was assuming the first file it loaded would be the /etc/php5/php.ini file so that sounds right. The logfiles show the same error as going to the website.
/public_html/wp-includes/functions.php' (include_path='.:/usr/share/pear:/usr/share/php') in /public_html/wp-settings.php on line 73
When I uncomment the one line I get the same type of error - it just references the new location. Failed opening required '/home/5milesmiles/public_html/wp-includes/functions.php' (include_path='.:/php/includes') in /home/5milesmiles/public_html/wp-settings.php on line 73 There is another line in .ini that reads: ; PHP's default setting for include_path is ".;/path/to/php/pear" Perhaps that is the one to use? Not sure of the correct value.
Submitted by andreychek on Mon, 03/16/2015 - 21:09 Comment #3
Hmm, what is the output of these commands:
ls -ld /home/5milesmiles/
ls -ld /home/5milesmiles/public_html/
ls -ld /home/5milesmiles/public_html/wp-includes
ls -l /home/5milesmiles/public_html/wp-includes/functions.php
Just to clarify -- my suspicion is that the issue isn't related to the include path, but that there might be a permissions issue of some sort, or the file could be in a different location. The default include path should handle loading that file, as it's using the full path it looks like.
Submitted by securewebs on Mon, 03/16/2015 - 23:19 Pro Licensee Comment #4
You gave me the idea and I changed all permissions to 755 and now it is returning a page at http://5milesmiles.com/. I have even gotten to the WordPress Dashboard but many things are not working yet. Not sure if I can fix them however let me see what I can do and thank you very much for pointing me in the right direction! Please close the ticket and pray for me.