Current time: 11-18-2024, 08:00 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] PHP wanting to download instead of run?
Author Message
sansomnator Offline
Junior Member
*

Posts: 10
Joined: Sep 2008
Reputation: 0
Post: #1
[SOLVED] PHP wanting to download instead of run?
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!
(This post was last modified: 11-04-2008 03:07 AM by BeNe.)
11-01-2008 03:50 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #2
RE: PHP wanting to download instead of run?
(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
11-01-2008 03:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kurgans Offline
Moderator
*****
Moderators

Posts: 1,565
Joined: Feb 2008
Reputation: 23
Post: #3
RE: PHP wanting to download instead of run?
Hello,

Look at the properties of users on the panel, I had the same problem and had not activated the domain php
11-01-2008 04:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sansomnator Offline
Junior Member
*

Posts: 10
Joined: Sep 2008
Reputation: 0
Post: #4
RE: PHP wanting to download instead of run?
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.
11-01-2008 04:22 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: PHP wanting to download instead of run?
logs?
11-01-2008 08:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
sansomnator Offline
Junior Member
*

Posts: 10
Joined: Sep 2008
Reputation: 0
Post: #6
RE: PHP wanting to download instead of run?
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
11-01-2008 01:41 PM
Find all posts by this user Quote this message in a reply
sansomnator Offline
Junior Member
*

Posts: 10
Joined: Sep 2008
Reputation: 0
Post: #7
RE: PHP wanting to download instead of run?
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.
11-03-2008 02:46 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: PHP wanting to download instead of run?
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
11-03-2008 05:57 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sansomnator Offline
Junior Member
*

Posts: 10
Joined: Sep 2008
Reputation: 0
Post: #9
RE: PHP wanting to download instead of run?
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.
11-04-2008 02:19 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: PHP wanting to download instead of run?
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
11-04-2008 02:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 5 Guest(s)