Downloads instead of executes .php page [solved]
Added by mpettis over 15 years ago
Solution:
I don't know what solved it, but the standard configuration I quote here from either of the two links in later messages works. I tried it from a different computer, and it works for me, which makes absolutely no sense to me, but it proves that lighttpd can and is passing the PHP processing to the fastcgi php instance, so it is solved from my perspective, unless I find that it is a widespread problem with other users. Thank you for the help,
Matt
Hi,
Running lighttpd (not sure how to check version, just downloaded with aptitude) on Ubuntu 8.04 LTS. I followed the instructions at http://redmine.lighttpd.net/wiki/lighttpd/TutorialLighttpdAndPHP to make PHP and fastcgi work, but when i try to access a .php page, it downloads it rather than executes it. I have php5-cgi as my executable.
I've googled around a bit, and seen some people with same problem a few years ago, but nothing recent. Any suggestions on how I troubleshoot this?
Here's my .conf file: http://paste.lighttpd.net/709
Thanks,
Matt
Replies (2)
RE: Downloads instead of executes .php page - Added by nitrox over 15 years ago
fastcgi.server = ( "/maps" <- where is this from? and what happens if you try ".php"?
RE: Downloads instead of executes .php page - Added by mpettis over 15 years ago
nitrox wrote:
fastcgi.server = ( "/maps" <- where is this from? and what happens if you try ".php"?
That's my mapserver fastcgi application (which is why I'm trying lighttpd, and that part is working fantastic, btw!). It spins up multiple mapserv processes to handle cgi requests to it. I took the configuration from here: http://spatialgalaxy.net/2006/10/17/configuring-lighttpd-with-fastcgi-for-mapserver/
I commented out the maps section and reloaded, and I have the same problem.
Thanks,
Matt
ps - version: lighttpd/1.4.19
pps - i rebooted the whole system, and it spins up mapserv and php-cgi for me (I uncommented the mapserv section after commenting it out did not solve the problem):
www-data 3890 3866 0 19:48 ? 00:00:00 /usr/lib/cgi-bin/mapserv
www-data 3891 3866 0 19:48 ? 00:00:00 /usr/lib/cgi-bin/mapserv
www-data 3892 3866 0 19:48 ? 00:00:00 /usr/lib/cgi-bin/mapserv
www-data 3893 3866 0 19:48 ? 00:00:00 /usr/lib/cgi-bin/mapserv
www-data 3894 3866 0 19:48 ? 00:00:00 /usr/lib/cgi-bin/mapserv
www-data 3895 3866 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3896 3866 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3897 3866 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3898 3866 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3899 3895 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3900 3898 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3901 3897 0 19:48 ? 00:00:00 /usr/bin/php-cgi
www-data 3902 3896 0 19:48 ? 00:00:00 /usr/bin/php-cgi