Current time: 12-24-2024, 12:14 AM Hello There, Guest! (LoginRegister)


Post Reply 
PHP wants to download and not run.
Author Message
gyrecon Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #1
PHP wants to download and not run.
OK I reinstalled the OS and ispCP twice and both times when I tried to access the admin page it wants me to download a file. I made sure that I followed all the instructions. Does fastcgi have something to do with it? What do I need to do? I am going to try a fresh install again.

tyry: http://admin.gyreconsulting.com
OS: Debian
04-04-2009 04:16 AM
Find all posts by this user Quote this message in a reply
DizzyD Offline
Junior Member
*

Posts: 16
Joined: Jan 2009
Reputation: 0
Post: #2
RE: PHP wants to download and not run.
are you sure you have php installed? Try running this from the cmd line and post what you get.
Quote:php -v
04-04-2009 04:21 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #3
RE: PHP wants to download and not run.
Also check if your fastcgi/fcgid config is working.
04-04-2009 05:00 AM
Find all posts by this user Quote this message in a reply
gyrecon Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #4
RE: PHP wants to download and not run.
(04-04-2009 04:21 AM)DizzyD Wrote:  are you sure you have php installed? Try running this from the cmd line and post what you get.
Quote:php -v

php -v result:

PHP 5.2.9.0.dotdeb.1 with Suhosin-Patch 0.9.7 (cli) (built: Mar 8 2009 23:41:21)

Copyright © 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2009 Zend Technologies
(04-04-2009 05:00 AM)Lucan Wrote:  Also check if your fastcgi/fcgid config is working.

How do I do that?
(This post was last modified: 04-04-2009 05:05 AM by gyrecon.)
04-04-2009 05:02 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #5
RE: PHP wants to download and not run.
/etc/apache2/mods-avaiable there must be a fcgid.conf fcgid_ispcp.conf fastcgi_ispcp.conf and fastcgi.conf


but try this first:

a2dismod fastcgi
a2dismod fastcgi_ispcp
a2dismod fcgid_ispcp
a2dismod fcgid

Then try:

a2enmod fcgid_ispcp
/etc/init.d/apache2

If it works then, everything is fine.

If not

Try:
a2dismod fcgid_ispcp
a2enmod fastcgi_ispcp

/etc/init.d/apache2 restart



Tell me if it worked
(This post was last modified: 04-04-2009 05:19 AM by Lucan.)
04-04-2009 05:19 AM
Find all posts by this user Quote this message in a reply
gyrecon Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #6
RE: PHP wants to download and not run.
(04-04-2009 05:19 AM)Lucan Wrote:  /etc/apache2/mods-avaiable there must be a fcgid.conf fcgid_ispcp.conf fastcgi_ispcp.conf and fastcgi.conf


but try this first:

a2dismod fastcgi
a2dismod fastcgi_ispcp
a2dismod fcgid_ispcp
a2dismod fcgid

Then try:

a2enmod fcgid_ispcp
/etc/init.d/apache2

If it works then, everything is fine.

If not

Try:
a2dismod fcgid_ispcp
a2enmod fastcgi_ispcp

/etc/init.d/apache2 restart



Tell me if it worked

a2dismod fastcgi = does not exist!
a2dismod fastcgi_ispcp = does not exist!
a2dismod fcgid_ispcp = already disabled
a2dismod fcgid = already disabled

a2enmod fcgid_ispcp
/etc/init.d/apache2 restart

worked!
(This post was last modified: 04-04-2009 05:34 AM by gyrecon.)
04-04-2009 05:27 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #7
RE: PHP wants to download and not run.
So now everything works?
(This post was last modified: 04-04-2009 05:38 AM by Lucan.)
04-04-2009 05:37 AM
Find all posts by this user Quote this message in a reply
gyrecon Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #8
RE: PHP wants to download and not run.
(04-04-2009 05:37 AM)Lucan Wrote:  So now everything works?

Yes, it does. Thank you very much
04-04-2009 05:43 AM
Find all posts by this user Quote this message in a reply
Lucan Offline
Member
*
Beta Team

Posts: 982
Joined: Jul 2008
Reputation: 12
Post: #9
RE: PHP wants to download and not run.
But you may also should install fastcgi.

aptitude install mod_fastcgi


Also this forum got a reputation system Tongue
04-04-2009 05:45 AM
Find all posts by this user Quote this message in a reply
gyrecon Offline
Newbie
*

Posts: 5
Joined: Apr 2009
Reputation: 0
Post: #10
RE: PHP wants to download and not run.
(04-04-2009 05:45 AM)Lucan Wrote:  But you may also should install fastcgi.

aptitude install mod_fastcgi


Also this forum got a reputation system Tongue

aptitude install mod_fastcgi not found
04-04-2009 06:06 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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