HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   503 - Service Not Available - Installing Lighttpd With PHP5 (PHP-FPM) And MySQL (http://www.howtoforge.com/forums/showthread.php?t=60642)

denbert 21st February 2013 20:39

503 - Service Not Available - Installing Lighttpd With PHP5 (PHP-FPM) And MySQL
 
Hi There,

I'm setting up a webserver for wordpress on Amazon EC2 (Ubuntu 12.04 LTS instance) following this guide:

http://www.howtoforge.com/installing...buntu-12.10-p2

server is here:

http://54.228.219.34/index.lighttpd.html

But I can't get php to work:

http://54.228.219.34/info.php

I followed the guide (as always) and there has been NO errors what so ever!

Any one got an idear as I'm stuck here!

denbert 21st February 2013 22:22

Solved
 
Solved the case - As there is some difference between 12.10 and 12.04 - correct code in 15-fastcgi-php.conf is:

Code:

# /usr/share/doc/lighttpd-doc/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi

## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server += ( ".php" =>
        ((
                "host" => "127.0.0.1",
                "port" => "9000",
                "broken-scriptfilename" => "enable"
        ))
)

And the php is working :D


All times are GMT +2. The time now is 18:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.