Jump to content

why do my php files get offered for download instead of being parsed??


elduderino

Recommended Posts

Hi,

 

I've been having this problem on a new server where when i try to run a php script in my browser it gives me a download prompt instead of the file....i called support and they resolved it but i didnt get to find out the problem.

 

Now i've created a sub-domain and it's happening again.....i didn't create the sub-domain the usual way in httpd.conf, with a virtual host block, because my server runs plesk which overrides the httpd.conf file.....i have another file called vhosts.conf in the same directory as my sub-domain content from which i can control apache....so i added the AddType application/x-httpd-php .php into this but the problem still occurs...

 

any ideas?

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.