Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


Top White Papers

More on LinuxToday


Installing Nginx With PHP5 And MySQL Support On Ubuntu 8.10

Jan 15, 2009, 07:34 (0 Talkback[s])
(Other stories by Falko Timme)

[ Thanks to Falko Timme for this link. ]

"In the location / part, I've added index.php to the index line. root /var/www/nginx-default; means that the document root is the directory /var/www/nginx-default.

"The important part for PHP is the location ~ .php$ {} stanza. Uncomment it to enable it. Please make sure that you change the fastcgi_param line to fastcgi_param SCRIPT_FILENAME /var/www/nginx-default$fastcgi_script_name; (replace /var/www/nginx-default with your vhost's document root) because otherwise the PHP interpreter won't find the PHP script that you call in your browser.

"Make sure that there are some spaces between include and fastcgi_params; - in the default file this is written as one word which is a bug."

Complete Story

Related Stories: