PHP wants to download and not run. - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: System Setup & Installation (/forum-32.html) +--- Thread: PHP wants to download and not run. (/thread-6302.html) Pages: 1 2 |
PHP wants to download and not run. - gyrecon - 04-04-2009 04:16 AM 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 RE: PHP wants to download and not run. - DizzyD - 04-04-2009 04:21 AM are you sure you have php installed? Try running this from the cmd line and post what you get. Quote:php -v RE: PHP wants to download and not run. - Lucan - 04-04-2009 05:00 AM Also check if your fastcgi/fcgid config is working. RE: PHP wants to download and not run. - gyrecon - 04-04-2009 05:02 AM (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. 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? RE: PHP wants to download and not run. - Lucan - 04-04-2009 05:19 AM /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 RE: PHP wants to download and not run. - gyrecon - 04-04-2009 05:27 AM (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 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! RE: PHP wants to download and not run. - Lucan - 04-04-2009 05:37 AM So now everything works? RE: PHP wants to download and not run. - gyrecon - 04-04-2009 05:43 AM (04-04-2009 05:37 AM)Lucan Wrote: So now everything works? Yes, it does. Thank you very much RE: PHP wants to download and not run. - Lucan - 04-04-2009 05:45 AM But you may also should install fastcgi. aptitude install mod_fastcgi Also this forum got a reputation system RE: PHP wants to download and not run. - gyrecon - 04-04-2009 06:06 AM (04-04-2009 05:45 AM)Lucan Wrote: But you may also should install fastcgi. aptitude install mod_fastcgi not found |