<?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"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Red Hat / CentOS Apache 2 FastCGI PHP Configuration</title> <atom:link href="http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Rob Freeman</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-172959</link> <dc:creator>Rob Freeman</dc:creator> <pubDate>Mon, 01 Aug 2011 23:24:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-172959</guid> <description>Don&#039;t forget, if you&#039;re doing Virtual Host configuration, you&#039;ll need to add the below between the
DirectoryIndex index.php index.html</description> <content:encoded><![CDATA[<p>Don&#8217;t forget, if you&#8217;re doing Virtual Host configuration, you&#8217;ll need to add the below between the</p><p>DirectoryIndex index.php index.html</p> ]]></content:encoded> </item> <item><title>By: asdf</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-171700</link> <dc:creator>asdf</dc:creator> <pubDate>Thu, 02 Jun 2011 11:13:40 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-171700</guid> <description>My Apache serves html files which are in files without extension (i.e. no .html or .php). How do I tell apache to process these as PHP files?</description> <content:encoded><![CDATA[<p>My Apache serves html files which are in files without extension (i.e. no .html or .php). How do I tell apache to process these as PHP files?</p> ]]></content:encoded> </item> <item><title>By: cjay</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-168981</link> <dc:creator>cjay</dc:creator> <pubDate>Tue, 22 Feb 2011 16:09:56 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-168981</guid> <description>Hi.  I have just followed these instructions to install FastCGI on CentOS, but when I load the page, the styling has vanished.  Also, when I click on a .PHP link, I see the PHP code, not the page.  Hope you can help!!</description> <content:encoded><![CDATA[<p>Hi.  I have just followed these instructions to install FastCGI on CentOS, but when I load the page, the styling has vanished.  Also, when I click on a .PHP link, I see the PHP code, not the page.  Hope you can help!!</p> ]]></content:encoded> </item> <item><title>By: A.Jesin</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-168553</link> <dc:creator>A.Jesin</dc:creator> <pubDate>Thu, 03 Feb 2011 18:03:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-168553</guid> <description>Should php scripts be chmodded +x to make them executable ?</description> <content:encoded><![CDATA[<p>Should php scripts be chmodded +x to make them executable ?</p> ]]></content:encoded> </item> <item><title>By: Levente Peres</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-168360</link> <dc:creator>Levente Peres</dc:creator> <pubDate>Wed, 19 Jan 2011 10:33:23 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-168360</guid> <description>Hi there,
Useful tutorial.
However, SELinux will throw this utterly off the chart. It&#039;s not enough to...
setsebool -P httpd_unified=0
SELinux will still continue to prevent your apps from working somehow - at least if it&#039;s anything more complex than a phpinfo(); For example, try to run a wordpress on it in name based virtualhost and you will see... I know it&#039;s SELinux because if I do
setenforce 0
Everything immediately starts working just fine. But this is not very desirable.
I&#039;d really like to see a tutorial which covers this issue taking into consideration SELinux + CentOS 5.5... Or at least some more info on this topic...
Levente</description> <content:encoded><![CDATA[<p>Hi there,</p><p>Useful tutorial.</p><p>However, SELinux will throw this utterly off the chart. It&#8217;s not enough to&#8230;</p><p>setsebool -P httpd_unified=0</p><p>SELinux will still continue to prevent your apps from working somehow &#8211; at least if it&#8217;s anything more complex than a phpinfo(); For example, try to run a wordpress on it in name based virtualhost and you will see&#8230; I know it&#8217;s SELinux because if I do</p><p>setenforce 0</p><p>Everything immediately starts working just fine. But this is not very desirable.</p><p>I&#8217;d really like to see a tutorial which covers this issue taking into consideration SELinux + CentOS 5.5&#8230; Or at least some more info on this topic&#8230;</p><p>Levente</p> ]]></content:encoded> </item> <item><title>By: Ali</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-168174</link> <dc:creator>Ali</dc:creator> <pubDate>Sun, 09 Jan 2011 21:15:02 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-168174</guid> <description>root@server [/opt/mod_fastcgi-2.4.6]# set top_dir=/usr/lib64/httpd
root@server [/opt/mod_fastcgi-2.4.6]# yum install httpd-devel
Loaded plugins: fastestmirror, securitynstall httpd-devel packageyum install htt
Loading mirror speeds from cached hostfile
* addons: mirror.sov.uk.goscomb.net
* base: mirror.sov.uk.goscomb.net
* extras: mirror.netrino.co.uk
* updates: mirror.netrino.co.uk
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package httpd-devel available.
Nothing to do
root@server [/opt/mod_fastcgi-2.4.6]# make top_dir=/usr/lib64/httpd
Makefile:12: /usr/lib64/httpd/build/special.mk: No such file or directory
make: *** No rule to make target `/usr/lib64/httpd/build/special.mk&#039;.  Stop.
root@server [/opt/mod_fastcgi-2.4.6]#
I use centos 5.5 64bit
What is the problem?</description> <content:encoded><![CDATA[<p>root@server [/opt/mod_fastcgi-2.4.6]# set top_dir=/usr/lib64/httpd<br
/> root@server [/opt/mod_fastcgi-2.4.6]# yum install httpd-devel<br
/> Loaded plugins: fastestmirror, securitynstall httpd-devel packageyum install htt<br
/> Loading mirror speeds from cached hostfile<br
/> * addons: mirror.sov.uk.goscomb.net<br
/> * base: mirror.sov.uk.goscomb.net<br
/> * extras: mirror.netrino.co.uk<br
/> * updates: mirror.netrino.co.uk<br
/> Excluding Packages in global exclude list<br
/> Finished<br
/> Setting up Install Process<br
/> No package httpd-devel available.<br
/> Nothing to do<br
/> root@server [/opt/mod_fastcgi-2.4.6]# make top_dir=/usr/lib64/httpd<br
/> Makefile:12: /usr/lib64/httpd/build/special.mk: No such file or directory<br
/> make: *** No rule to make target `/usr/lib64/httpd/build/special.mk&#8217;.  Stop.<br
/> root@server [/opt/mod_fastcgi-2.4.6]#</p><p>I use centos 5.5 64bit<br
/> What is the problem?</p> ]]></content:encoded> </item> <item><title>By: Josh Jameson</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-160148</link> <dc:creator>Josh Jameson</dc:creator> <pubDate>Thu, 14 Oct 2010 15:23:42 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-160148</guid> <description>If you want to load a php.ini file, i found the following works. Thank you for the excellent tutorial.
#!/bin/bash
# Shell Script To Run PHP5 using mod_fastcgi under Apache 2.x
# Tested under Red Hat Enterprise Linux / CentOS 5.x
### Set PATH ###
PHP_CGI=/usr/local/bin/php-cgi
PHP_FCGI_CHILDREN=4
PHP_FCGI_MAX_REQUESTS=1000
### no editing below ###
export PHP_FCGI_CHILDREN
export PHP_FCGI_MAX_REQUESTS
bash -l -c &quot;$PHP_CGI --php-ini=/etc/php.ini&quot;</description> <content:encoded><![CDATA[<p>If you want to load a php.ini file, i found the following works. Thank you for the excellent tutorial.</p><p>#!/bin/bash<br
/> # Shell Script To Run PHP5 using mod_fastcgi under Apache 2.x<br
/> # Tested under Red Hat Enterprise Linux / CentOS 5.x<br
/> ### Set PATH ###<br
/> PHP_CGI=/usr/local/bin/php-cgi<br
/> PHP_FCGI_CHILDREN=4<br
/> PHP_FCGI_MAX_REQUESTS=1000<br
/> ### no editing below ###<br
/> export PHP_FCGI_CHILDREN<br
/> export PHP_FCGI_MAX_REQUESTS<br
/> bash -l -c &#8220;$PHP_CGI &#8211;php-ini=/etc/php.ini&#8221;</p> ]]></content:encoded> </item> <item><title>By: fawkstrot</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-160042</link> <dc:creator>fawkstrot</dc:creator> <pubDate>Mon, 04 Oct 2010 18:36:05 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-160042</guid> <description>I&#039;m getting odd Gateway Timeout errors using this method. It will serve out 100 pages properly, then one of the 504&#039;s. Sometimes they&#039;ll happen a lot, sometimes they won&#039;t happen for quite some time. It only happens when using fastcgi. I&#039;ve tried everything I can think of, including scouring Google for information on how to increase the fcgi timeout, etc. Nothing seems to be working.
Any help?</description> <content:encoded><![CDATA[<p>I&#8217;m getting odd Gateway Timeout errors using this method. It will serve out 100 pages properly, then one of the 504&#8242;s. Sometimes they&#8217;ll happen a lot, sometimes they won&#8217;t happen for quite some time. It only happens when using fastcgi. I&#8217;ve tried everything I can think of, including scouring Google for information on how to increase the fcgi timeout, etc. Nothing seems to be working.</p><p>Any help?</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-159798</link> <dc:creator>Mark</dc:creator> <pubDate>Wed, 22 Sep 2010 23:38:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-159798</guid> <description>this doesn&#039;t work on 64-bit. Wrong mod file.</description> <content:encoded><![CDATA[<p>this doesn&#8217;t work on 64-bit. Wrong mod file.</p> ]]></content:encoded> </item> <item><title>By: Chris</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-159209</link> <dc:creator>Chris</dc:creator> <pubDate>Fri, 27 Aug 2010 13:09:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-159209</guid> <description>Thanks for Installing FascCGI guide.</description> <content:encoded><![CDATA[<p>Thanks for Installing FascCGI guide.</p> ]]></content:encoded> </item> <item><title>By: Krish</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-159175</link> <dc:creator>Krish</dc:creator> <pubDate>Wed, 25 Aug 2010 16:47:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-159175</guid> <description>Hi Guys,
Does anybody tried this in linux. I have apache 2.2 with php5. Currently i am using prefork module and the performance is not good. Any help would be appreciated.
Regards,
krish</description> <content:encoded><![CDATA[<p>Hi Guys,</p><p>Does anybody tried this in linux. I have apache 2.2 with php5. Currently i am using prefork module and the performance is not good. Any help would be appreciated.</p><p>Regards,<br
/> krish</p> ]]></content:encoded> </item> <item><title>By: expssh</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-158789</link> <dc:creator>expssh</dc:creator> <pubDate>Tue, 10 Aug 2010 11:49:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-158789</guid> <description>Super! Thank you!</description> <content:encoded><![CDATA[<p>Super! Thank you!</p> ]]></content:encoded> </item> <item><title>By: Carlos</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-158707</link> <dc:creator>Carlos</dc:creator> <pubDate>Fri, 06 Aug 2010 10:37:14 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-158707</guid> <description>Well, this is an old post but I will try, anyway:
We are sufering problems with headers not properly delivered to PHP so authorization is not working.
We had tried with the FastCgiConfig    -pass-header HTTP_AUTHORIZATION
option without success
Any Idea about whos solving this problem?
Thanks</description> <content:encoded><![CDATA[<p>Well, this is an old post but I will try, anyway:<br
/> We are sufering problems with headers not properly delivered to PHP so authorization is not working.<br
/> We had tried with the FastCgiConfig    -pass-header HTTP_AUTHORIZATION</p><p>option without success<br
/> Any Idea about whos solving this problem?</p><p>Thanks</p> ]]></content:encoded> </item> <item><title>By: Kok Wen Yen</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-154168</link> <dc:creator>Kok Wen Yen</dc:creator> <pubDate>Mon, 08 Mar 2010 12:10:03 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-154168</guid> <description>My bad. It is indeed Fast CGI. Only thing is th in this case, Apache is the one spawning the fastcgi processes. Also, does that mean there is no need to install the mod_fastcgi module? Simply using PHP&#039;s php-cgi is sufficient?</description> <content:encoded><![CDATA[<p>My bad. It is indeed Fast CGI. Only thing is th in this case, Apache is the one spawning the fastcgi processes. Also, does that mean there is no need to install the mod_fastcgi module? Simply using PHP&#8217;s php-cgi is sufficient?</p> ]]></content:encoded> </item> <item><title>By: Thomas</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-152102</link> <dc:creator>Thomas</dc:creator> <pubDate>Fri, 04 Dec 2009 22:33:47 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-152102</guid> <description>Kok Wen Yen is right, the configuration is only using CGI and NOT FastCGI.</description> <content:encoded><![CDATA[<p>Kok Wen Yen is right, the configuration is only using CGI and NOT FastCGI.</p> ]]></content:encoded> </item> <item><title>By: Kok Wen Yen</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-151973</link> <dc:creator>Kok Wen Yen</dc:creator> <pubDate>Wed, 02 Dec 2009 03:47:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-151973</guid> <description>Hi,
Are you sure the above example is executed via mod_fastcgi? The &quot;Action php5-fastcgi /cgi-bin/php.fcgi&quot; will fire the php-cgi to handle all incoming php script, i.e. only using CGI instead of FastCGI. Isn&#039;t it?
Nowhere in your example shows the use of FastCgiServer directive which is the one that starts the fast cgi server, right? I&#039;m a bit confused here.</description> <content:encoded><![CDATA[<p>Hi,</p><p>Are you sure the above example is executed via mod_fastcgi? The &#8220;Action php5-fastcgi /cgi-bin/php.fcgi&#8221; will fire the php-cgi to handle all incoming php script, i.e. only using CGI instead of FastCGI. Isn&#8217;t it?</p><p>Nowhere in your example shows the use of FastCgiServer directive which is the one that starts the fast cgi server, right? I&#8217;m a bit confused here.</p> ]]></content:encoded> </item> <item><title>By: juggs</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-151376</link> <dc:creator>juggs</dc:creator> <pubDate>Fri, 30 Oct 2009 19:14:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-151376</guid> <description>Hi,
Nice tutorial, php /w fastcgi is up and running except for one thing,  no php-cgi processes are spawned:
root     27780  0.0  0.0 183296  3420 ?        Ss   15:09   0:00 /usr/sbin/httpd
apache   27781  0.0  0.0 183208  2292 ?        S    15:09   0:00  \_ /usr/sbin/fcgi-
apache   27782  0.0  0.0 183428  3084 ?        S    15:09   0:00  \_ /usr/sbin/httpd
apache   27783  0.0  0.0 183428  3076 ?        S    15:09   0:00  \_ /usr/sbin/httpd
I set PHP_FCGI_CHILDREN=4.  Not sure where to start troubleshooting</description> <content:encoded><![CDATA[<p>Hi,<br
/> Nice tutorial, php /w fastcgi is up and running except for one thing,  no php-cgi processes are spawned:</p><p>root     27780  0.0  0.0 183296  3420 ?        Ss   15:09   0:00 /usr/sbin/httpd<br
/> apache   27781  0.0  0.0 183208  2292 ?        S    15:09   0:00  \_ /usr/sbin/fcgi-<br
/> apache   27782  0.0  0.0 183428  3084 ?        S    15:09   0:00  \_ /usr/sbin/httpd<br
/> apache   27783  0.0  0.0 183428  3076 ?        S    15:09   0:00  \_ /usr/sbin/httpd</p><p>I set PHP_FCGI_CHILDREN=4.  Not sure where to start troubleshooting</p> ]]></content:encoded> </item> <item><title>By: mvug</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-151076</link> <dc:creator>mvug</dc:creator> <pubDate>Fri, 16 Oct 2009 08:11:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-151076</guid> <description>Hi,
thanx for the tutorial! But, I am getting the error:
command not in docroot (/home/website/cgi-bin/php.fcgi)
What can I do? thanx!</description> <content:encoded><![CDATA[<p>Hi,</p><p>thanx for the tutorial! But, I am getting the error:<br
/> command not in docroot (/home/website/cgi-bin/php.fcgi)</p><p>What can I do? thanx!</p> ]]></content:encoded> </item> <item><title>By: ecmidas</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-150620</link> <dc:creator>ecmidas</dc:creator> <pubDate>Sat, 12 Sep 2009 07:25:17 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-150620</guid> <description>First of all, thank you for the helpful article.
and i have a question about Zend Optimizer, in these combination, can Zend Optimizer be used together?
Any helpful comment would be great.
Thanks in advance.</description> <content:encoded><![CDATA[<p>First of all, thank you for the helpful article.<br
/> and i have a question about Zend Optimizer, in these combination, can Zend Optimizer be used together?<br
/> Any helpful comment would be great.<br
/> Thanks in advance.</p> ]]></content:encoded> </item> <item><title>By: celik</title><link>http://www.cyberciti.biz/tips/rhel-centos-fedora-apache2-fastcgi-php-configuration.html#comment-150346</link> <dc:creator>celik</dc:creator> <pubDate>Tue, 25 Aug 2009 08:43:07 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/?p=4168#comment-150346</guid> <description>hi all of this ok . it is  run in console but not in browser
get a message
&quot;The requested URL /var/www/cgi-bin/php.fcgi/index.php was not found on this server.&quot;
conf -&gt;
DirectoryIndex index.php index.htm index.html
Options Indexes FollowSymLinks +ExecCGI
AllowOverride None
AddHandler php5-fastcgi .php
Action php5-fastcgi /var/www/cgi-bin/php.fcgi
Order allow,deny
Allow from all
can u help me ?</description> <content:encoded><![CDATA[<p>hi all of this ok . it is  run in console but not in browser</p><p>get a message<br
/> &#8220;The requested URL /var/www/cgi-bin/php.fcgi/index.php was not found on this server.&#8221;</p><p>conf -&gt;</p><p> DirectoryIndex index.php index.htm index.html<br
/> Options Indexes FollowSymLinks +ExecCGI<br
/> AllowOverride None<br
/> AddHandler php5-fastcgi .php<br
/> Action php5-fastcgi /var/www/cgi-bin/php.fcgi<br
/> Order allow,deny<br
/> Allow from all</p><p>can u help me ?</p> ]]></content:encoded> </item> </channel> </rss>
