Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am moving my WordPress site from my old hosting company to the new one.

I am at the current version, 3.5.1.

I created the domain on the new site copying over all the files inclusive of any hidden ones, at least to my knowledge, and placed it on the new server. I made sure that the system has PHP5.

For the time being, wp-config.php points to the old server for the database. I did copy the database over, but for the time being, as said, the database points to the old site.

The problem that I have is that going to the new site causes a 500 server error.

How do I find out what the problem is and how to fix the problem?

Here is the complete text of the error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
share|improve this question
    
Do you have debugging information? –  s_ha_dum Jun 19 '13 at 22:50
    
How do I get a meaningful error aside from the error text that I added above? Oh, I see. I have to get at the server log. How do I view the server log on a Windows server? The version is 2012 if that makes a difference. –  Sarah Weinberger Jun 19 '13 at 22:54
    
You might not be able to get more than that. Do you have access to the server log files? Are you sure that all the requirements are met on the new server? Does the site work if you use the new database server? –  s_ha_dum Jun 19 '13 at 23:00
    
I went to EventViewer and then "Web Server IIS" under Custom Views / Server Roles. There was no entry. I did a refresh and the last entry was 3 hours ago. Yes, I have access to the server. I did not try to use the new database server. Why would that make a difference? I would have to hard code the IP address in wp-config.php, but otherwise it is the same. I did not use the migration plug-in tool, as I found out about that a short while ago. –  Sarah Weinberger Jun 19 '13 at 23:06
    
I am using Plesk, which comes with PHP, MySQL, and other such stuff. I had Plesk before, so the requirements should be fine. –  Sarah Weinberger Jun 19 '13 at 23:07
show 8 more comments

1 Answer

The answer is as follows:

I first had to show more errors by changing the PHP Settings to log errors and directing the error log to a path that I know, C:\Windows\Temp\PHP_Errors.txt, seemed logical enough.

That resulted in the following warning:

Warning: file_exists(): open_basedir restriction in effect: File (C:\Inetpub\vhosts\mydomain\domains\mywordpressblog/.maintenance) is not within the allowed path(s): (C:/Inetpub/vhosts/mydomain\;C:\Windows\Temp) in C:\Inetpub\vhosts\mydomain\domains\mywordpressblog\wp-includes\load.php on line 146.

A Google search resulted in the usual problem that the temporary folder is not part of open_basedir, but starting with Plesk 11, Parallels adds the Windows temp folder to the list. The problem is rather that open_basedir does not recognize subfolders off of the allowed paths. That is a permissions problem. I wrote to my web host provider to hopefully tell me which permission needs to change.

There is a bug with Plesk 11 for Windows.

I set the dropdown for open_basedir to None, which helped, but when I went back to the PHP Settings I saw that "{WEBSPACEROOT}\;{TMP}" was still selected, although this time showing most of my site.

share|improve this answer
    
"{WEBSPACEROOT}\;{TMP};\" solves the last problem. Okay, I turned Display Errors to default to suppress the unclean WordProcess warnings (or from one of the plugins) off. The site now displays and works perfectly. I was able to even update to 3.5.2 nicely. –  Sarah Weinberger Jun 24 '13 at 18:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.