Jump to content

PHP wont load when web.config file present


lee_sov

Recommended Posts

Hi, on this site we have a contact.php page which is not loading following moving to a new host. We receive 500 internal error when trying to browse to the page.

 

The host investigated the issue, renamed the existing web config file to web.config.old & then the page laods fine.

 

The problem is, we need the web.config file as it contains database connection info to connect to a MYSQL database. As soon as I put it back in, the page wont load again.

 

I've also tried a blank file with nothing in it, saving it as web.config & uploading it & it seems as soon as that file is there, regardless of what it contains, the php page wont load!

 

Is there any way around this? Sounds like a simple configuration issue somewhere but I'm not sure where!

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.