<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: MySQL, nginx and PHP on Ubuntu 8.04</title>
	<atom:link href="http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/feed/" rel="self" type="application/rss+xml" />
	<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/</link>
	<description></description>
	<pubDate>Wed, 20 Aug 2008 08:51:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: trivialview &#187; Blog Archive &#187; Level 1: Webserver &#38; PHP</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-31</link>
		<dc:creator>trivialview &#187; Blog Archive &#187; Level 1: Webserver &#38; PHP</dc:creator>
		<pubDate>Wed, 30 Jul 2008 19:38:17 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-31</guid>
		<description>[...] Aber Abhilfe wurde da schnell gefunden: [...]</description>
		<content:encoded><![CDATA[<p>[...] Aber Abhilfe wurde da schnell gefunden: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlo</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-28</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Tue, 08 Jul 2008 14:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-28</guid>
		<description>Hi,
I tried and tried, notyhing:
1) I set permission on spawn-fcgi by "sudo chmod 755 /usr/bin/php-fastcgi"
2) I found that post http://forum.slicehost.com/comments.php?DiscussionID=1259 that has solved by add "-g www-data" into /usr/bin/php-fastcgi ... from "/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi" to "/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi"
3) I reboot slice ...

Nothing 

I think I have to change web server ....</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tried and tried, notyhing:<br />
1) I set permission on spawn-fcgi by &#8220;sudo chmod 755 /usr/bin/php-fastcgi&#8221;<br />
2) I found that post <a href="http://forum.slicehost.com/comments.php?DiscussionID=1259" onclick="javascript:pageTracker._trackPageview('/outbound/comment/forum.slicehost.com');" rel="nofollow">http://forum.slicehost.com/comments.php?DiscussionID=1259</a> that has solved by add &#8220;-g www-data&#8221; into /usr/bin/php-fastcgi &#8230; from &#8220;/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi&#8221; to &#8220;/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi&#8221;<br />
3) I reboot slice &#8230;</p>
<p>Nothing </p>
<p>I think I have to change web server &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-27</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Wed, 02 Jul 2008 14:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-27</guid>
		<description>This error means php is not getting the file for some reason.

Check the SCRIPT_FILENAME param in your nginx configuration file has the correct path for your install:

/var/www/nginx-default$fastcgi_script_name;

Failing that it could be a permissions problem - the spawn-fcgi process runs as user 'www-data' in my example, so check that the files are readable.</description>
		<content:encoded><![CDATA[<p>This error means php is not getting the file for some reason.</p>
<p>Check the SCRIPT_FILENAME param in your nginx configuration file has the correct path for your install:</p>
<p>/var/www/nginx-default$fastcgi_script_name;</p>
<p>Failing that it could be a permissions problem - the spawn-fcgi process runs as user &#8216;www-data&#8217; in my example, so check that the files are readable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlo</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-26</link>
		<dc:creator>Carlo</dc:creator>
		<pubDate>Wed, 02 Jul 2008 11:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-26</guid>
		<description>Hi,
I followed yours fantastic guide but when I call test.php file the reponse is:
No input file specified.

Why ? Can you help me ?

Test yourself
http://209.20.69.80/test.php</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I followed yours fantastic guide but when I call test.php file the reponse is:<br />
No input file specified.</p>
<p>Why ? Can you help me ?</p>
<p>Test yourself<br />
<a href="http://209.20.69.80/test.php" onclick="javascript:pageTracker._trackPageview('/outbound/comment/209.20.69.80');" rel="nofollow">http://209.20.69.80/test.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-24</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Sun, 08 Jun 2008 21:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-24</guid>
		<description>I would check again this part of the nginx config for your domain that begins:

location ~ \.php$ {

This is what matches urls with .php extension and passes them to fastcgi - in your case this is not happening for some reason.</description>
		<content:encoded><![CDATA[<p>I would check again this part of the nginx config for your domain that begins:</p>
<p>location ~ \.php$ {</p>
<p>This is what matches urls with .php extension and passes them to fastcgi - in your case this is not happening for some reason.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A83</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-23</link>
		<dc:creator>A83</dc:creator>
		<pubDate>Sun, 08 Jun 2008 21:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-23</guid>
		<description>Thanks for the assistance! 

I ran ps aux but didn't found any processes so I redid that part of the tutorial so now they're there.

I've set up a vhost to my domain (following this tutorial: http://articles.slicehost.com/2008/5/16/ubuntu-hardy-nginx-virtual-hosts). And my index.html works fine, but if I try to run the test.php I've uploaded in the same directory I get dialog to download the file instead of opening it. Can I state that somewhere in the nginx config what file extentions it shall run?

The file is here: http://a83.se/test.php

Thanks a lot in advance!</description>
		<content:encoded><![CDATA[<p>Thanks for the assistance! </p>
<p>I ran ps aux but didn&#8217;t found any processes so I redid that part of the tutorial so now they&#8217;re there.</p>
<p>I&#8217;ve set up a vhost to my domain (following this tutorial: <a href="http://articles.slicehost.com/2008/5/16/ubuntu-hardy-nginx-virtual-hosts" onclick="javascript:pageTracker._trackPageview('/outbound/comment/articles.slicehost.com');" rel="nofollow">http://articles.slicehost.com/2008/5/16/ubuntu-hardy-nginx-virtual-hosts</a>). And my index.html works fine, but if I try to run the test.php I&#8217;ve uploaded in the same directory I get dialog to download the file instead of opening it. Can I state that somewhere in the nginx config what file extentions it shall run?</p>
<p>The file is here: <a href="http://a83.se/test.php" onclick="javascript:pageTracker._trackPageview('/outbound/comment/a83.se');" rel="nofollow">http://a83.se/test.php</a></p>
<p>Thanks a lot in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-22</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Sun, 08 Jun 2008 14:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-22</guid>
		<description>Ok this could be several things - 

Check first that php cgi process is running correctly.

ps aux

You should see several processes /usr/bin/php5-cgi under COMMAND.

If not then check again that these scripts are correct:

/usr/bin/php-fastcgi
/etc/init.d/init-fastcgi

If you do have the php5-cgi processes then check the nginx config files again to make sure that it is routing requests for .php files correctly.

Finally check again test.php has correct syntax and is in the correct directory - also that the user permissions are correct if you aren't running nginx as root.

I'm not sure right now what else could be the problem.</description>
		<content:encoded><![CDATA[<p>Ok this could be several things - </p>
<p>Check first that php cgi process is running correctly.</p>
<p>ps aux</p>
<p>You should see several processes /usr/bin/php5-cgi under COMMAND.</p>
<p>If not then check again that these scripts are correct:</p>
<p>/usr/bin/php-fastcgi<br />
/etc/init.d/init-fastcgi</p>
<p>If you do have the php5-cgi processes then check the nginx config files again to make sure that it is routing requests for .php files correctly.</p>
<p>Finally check again test.php has correct syntax and is in the correct directory - also that the user permissions are correct if you aren&#8217;t running nginx as root.</p>
<p>I&#8217;m not sure right now what else could be the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-21</link>
		<dc:creator>matt</dc:creator>
		<pubDate>Sun, 08 Jun 2008 14:09:22 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-21</guid>
		<description>Yes you need to change to the correct directory - I've edited the tutorial to make that clearer.

Line 40 in my default file reads:

    include /etc/nginx/fastcgi_params;</description>
		<content:encoded><![CDATA[<p>Yes you need to change to the correct directory - I&#8217;ve edited the tutorial to make that clearer.</p>
<p>Line 40 in my default file reads:</p>
<p>    include /etc/nginx/fastcgi_params;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A83</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-20</link>
		<dc:creator>A83</dc:creator>
		<pubDate>Sun, 08 Jun 2008 14:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-20</guid>
		<description>Ok, this is starting to become silly. Saw that my nginx config file and yours didn't looked exactly the same. Copied yours and made nginx start!

But it seams like there are more to this:

When I goto my IP the welcome to nginx text is showing. But if I turn my browser to test.php I get this text:

The page you are looking for is temporarily unavailable.
Please try again later.</description>
		<content:encoded><![CDATA[<p>Ok, this is starting to become silly. Saw that my nginx config file and yours didn&#8217;t looked exactly the same. Copied yours and made nginx start!</p>
<p>But it seams like there are more to this:</p>
<p>When I goto my IP the welcome to nginx text is showing. But if I turn my browser to test.php I get this text:</p>
<p>The page you are looking for is temporarily unavailable.<br />
Please try again later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A83</title>
		<link>http://bc-dev.net/2008/05/07/mysql-nginx-and-php-on-ubuntu-804/#comment-19</link>
		<dc:creator>A83</dc:creator>
		<pubDate>Sun, 08 Jun 2008 14:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://bc-dev.net/?p=15#comment-19</guid>
		<description>Ahh, I figured out that I had to enter the lighttpd directory, so now ./configure and make worked!

But I ran into another problem, when I try to start nginx I get this error:

A83 /: sudo /etc/init.d/nginx start
Starting nginx: 2008/06/08 14:01:27 [emerg] 22231#0: unknown directive "includefastcgi_params" in /etc/nginx/sites-enabled/default:40</description>
		<content:encoded><![CDATA[<p>Ahh, I figured out that I had to enter the lighttpd directory, so now ./configure and make worked!</p>
<p>But I ran into another problem, when I try to start nginx I get this error:</p>
<p>A83 /: sudo /etc/init.d/nginx start<br />
Starting nginx: 2008/06/08 14:01:27 [emerg] 22231#0: unknown directive &#8220;includefastcgi_params&#8221; in /etc/nginx/sites-enabled/default:40</p>
]]></content:encoded>
	</item>
</channel>
</rss>
