ispCP - Board - Support
[SOLVED] PHP wanting to download instead of run? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] PHP wanting to download instead of run? (/thread-4837.html)

Pages: 1 2


[SOLVED] PHP wanting to download instead of run? - sansomnator - 11-01-2008 03:50 AM

Hello,

I apologize in advance for the wording of this question.

My index.php wants to download instead of run. This isn't the only page either and it seems it is just on one website. I have searched these forums and google but I can't seem to find the right solution. I have added

AddType application/x-httpd-php .php

to

/etc/apache2/apache2.conf

and restarted but to no avail. I have also tried to remove the site and set it up again and it still gives me this error. If anyone would need more information from me, I will be happy to provide.

Thank you!


RE: PHP wanting to download instead of run? - sci2tech - 11-01-2008 03:59 AM

(11-01-2008 03:50 AM)sansomnator Wrote:  Hello,

I apologize in advance for the wording of this question.

My index.php wants to download instead of run. This isn't the only page either and it seems it is just on one website. I have searched these forums and google but I can't seem to find the right solution. I have added

AddType application/x-httpd-php .php

to

/etc/apache2/apache2.conf

and restarted but to no avail. I have also tried to remove the site and set it up again and it still gives me this error. If anyone would need more information from me, I will be happy to provide.

Thank you!
Your distro is?
It seems that you do not have installed fastcgi/fcgid/mod_php


RE: PHP wanting to download instead of run? - kurgans - 11-01-2008 04:01 AM

Hello,

Look at the properties of users on the panel, I had the same problem and had not activated the domain php


RE: PHP wanting to download instead of run? - sansomnator - 11-01-2008 04:22 AM

I am using Debian Etch

I double checked and made sure they are activated and this is the only domain of 5 giving me this error. Every other domain was set up in the exact same way as this one.


RE: PHP wanting to download instead of run? - joximu - 11-01-2008 08:40 AM

logs?


RE: PHP wanting to download instead of run? - sansomnator - 11-01-2008 01:41 PM

Im not sure what logs you would like but here are some from the /var/logs/apache2 access for that specific site

--

67.236.0.240 - - [31/Oct/2008:23:35:44 -0400] "GET /products.php HTTP/1.1" 200 31326 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"
67.236.0.240 - - [31/Oct/2008:23:36:43 -0400] "GET /index.php HTTP/1.1" 200 582 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"

---

The error log yielded nothing but a 404 since I removed a config file that wasn't executing and just reveling information that the public shouldn't see


RE: PHP wanting to download instead of run? - sansomnator - 11-03-2008 02:46 PM

Well I got the page to semi-run. I added

AddType x-httpd-php .php

to

/etc/apache2/ispcp/sitename.conf

But it isn't evaluating the PHP code. It reveals the PHP code when I view-source.


RE: PHP wanting to download instead of run? - BeNe - 11-03-2008 05:57 PM

Which ispCP Version do you use ?
Is the FastCGI Apache Module active ?
Never had such problems under etch with the current ispCP Version.

Greez BeNe


RE: PHP wanting to download instead of run? - sansomnator - 11-04-2008 02:19 AM

ispCP 1.0.0 RC6 OMEGA
build: 20080806

The odd thing is, this is the only site this is happening for. I host about 5 more and all of them work flawlessly.

I've tried setting up the domain again and again but nothing.


RE: PHP wanting to download instead of run? - BeNe - 11-04-2008 02:31 AM

Quote:The odd thing is, this is the only site this is happening for.
Then check you /etc/apache2/sites-enabled/ispcp.conf and compare the domain entry´s. Maybe a <if module> party is missing !?

Greez BeNe