<?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: Quick Tip: How to Install and Configure PHP in Fedora Linux</title>
	<atom:link href="http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/</link>
	<description>Read . Enjoy . Share</description>
	<lastBuildDate>Wed, 11 Jan 2012 11:54:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rus Future</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-19120</link>
		<dc:creator>Rus Future</dc:creator>
		<pubDate>Thu, 20 Oct 2011 21:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-19120</guid>
		<description>Hi,
I got my Apache and PHP working.  Damn difficult it was.
Thanx for posting this info.  
You did a very good note, and quite helpful.  Here is a
weird problem I had...

I have Apache 2.2 and Php 5.2.5 installed, and fought my way thru the horror and byzantine weirdness of SELinux (probably a good idea to have the full SELinux, since 
it will keep you safe - even though the learning curve is 
a tad steep...).  I got a test server running, but
I still could not see anything from my info.php file!

I just got a completely blank page, regardless of 
location of info.php file!  I&#039;m running Fedora 9.
I updated the httpd.conf file with module loading
for php and directory index value, and restarted httpd.
And all the file-context values for SELinux are set
to type httpd_sys_content_t.  I could see my webpages
as .html files, but could not seem to execute a simple
.php script.  Most frustrating. 

I then waded thru megabytes of doc... Seemed to me that
this was much more difficult than was reasonable.  
I even wondered if that was someone&#039;s plan...hmmm??  

I could start php at CLI, and this;

 [root@...] php -r &quot;phpinfo();&quot;

worked just fine.  I had also tweaked the SELinux boolean
values via:

    /usr/sbin/setsebool -P httpd_enable_homedirs true

and so on, so I can get view html files correctly, and
so I can use the &quot;public_html&quot; dirs on other userids
than just the server&#039;s DirectoryRoot...
All the browsing stuff worked ok across a local LAN, and 
on the local Fedora-9 box, but nothing seemed to allow
the php code to be executed by the blasted server.

So, here is specifically where I screwed up:
In examining the /var/log/httpd/error_log file, I
found that I was getting a &quot;PHP Parse Error:&quot; !!
Is this file:

   

not right???   
No it is not.  You must not have the space in the
first line.  Or, just delete the &quot;php&quot; string entirely.
With this file:

   

You will get a nicely formated PHP 5.2.5 page when
you load it with your browser... eg:

    http://xx.xx.xx.xx/~ahomedir/info.php

assuming you have all the SELInux permissions set up 
right, and can load .html files from your &quot;public_html&quot;
subdir on your various home dirs.
The killer here is that if the info.php file is wrong
(with that line1 embedded space), you get no info at the 
browser end.  It just looks like PHP isnt running, 
when it probably is.  Check its install status with
the &quot;rpm -qa&quot; command mentioned above, and make sure
you have edited the httpd.conf file to include all the
stuff for loading the module, and processing the .php
file extension.   Hope this blather is useful for someone
going thru the setup of Php/Apache and the other goodies.
- Rus</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I got my Apache and PHP working.  Damn difficult it was.<br />
Thanx for posting this info.<br />
You did a very good note, and quite helpful.  Here is a<br />
weird problem I had&#8230;</p>
<p>I have Apache 2.2 and Php 5.2.5 installed, and fought my way thru the horror and byzantine weirdness of SELinux (probably a good idea to have the full SELinux, since<br />
it will keep you safe &#8211; even though the learning curve is<br />
a tad steep&#8230;).  I got a test server running, but<br />
I still could not see anything from my info.php file!</p>
<p>I just got a completely blank page, regardless of<br />
location of info.php file!  I&#8217;m running Fedora 9.<br />
I updated the httpd.conf file with module loading<br />
for php and directory index value, and restarted httpd.<br />
And all the file-context values for SELinux are set<br />
to type httpd_sys_content_t.  I could see my webpages<br />
as .html files, but could not seem to execute a simple<br />
.php script.  Most frustrating. </p>
<p>I then waded thru megabytes of doc&#8230; Seemed to me that<br />
this was much more difficult than was reasonable.<br />
I even wondered if that was someone&#8217;s plan&#8230;hmmm??  </p>
<p>I could start php at CLI, and this;</p>
<p> [root@...] php -r &#8220;phpinfo();&#8221;</p>
<p>worked just fine.  I had also tweaked the SELinux boolean<br />
values via:</p>
<p>    /usr/sbin/setsebool -P httpd_enable_homedirs true</p>
<p>and so on, so I can get view html files correctly, and<br />
so I can use the &#8220;public_html&#8221; dirs on other userids<br />
than just the server&#8217;s DirectoryRoot&#8230;<br />
All the browsing stuff worked ok across a local LAN, and<br />
on the local Fedora-9 box, but nothing seemed to allow<br />
the php code to be executed by the blasted server.</p>
<p>So, here is specifically where I screwed up:<br />
In examining the /var/log/httpd/error_log file, I<br />
found that I was getting a &#8220;PHP Parse Error:&#8221; !!<br />
Is this file:</p>
<p>not right???<br />
No it is not.  You must not have the space in the<br />
first line.  Or, just delete the &#8220;php&#8221; string entirely.<br />
With this file:</p>
<p>You will get a nicely formated PHP 5.2.5 page when<br />
you load it with your browser&#8230; eg:</p>
<p>    <a href="http://xx.xx.xx.xx/~ahomedir/info.php" rel="nofollow">http://xx.xx.xx.xx/~ahomedir/info.php</a></p>
<p>assuming you have all the SELInux permissions set up<br />
right, and can load .html files from your &#8220;public_html&#8221;<br />
subdir on your various home dirs.<br />
The killer here is that if the info.php file is wrong<br />
(with that line1 embedded space), you get no info at the<br />
browser end.  It just looks like PHP isnt running,<br />
when it probably is.  Check its install status with<br />
the &#8220;rpm -qa&#8221; command mentioned above, and make sure<br />
you have edited the httpd.conf file to include all the<br />
stuff for loading the module, and processing the .php<br />
file extension.   Hope this blather is useful for someone<br />
going thru the setup of Php/Apache and the other goodies.<br />
- Rus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skchauhan</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-18628</link>
		<dc:creator>skchauhan</dc:creator>
		<pubDate>Wed, 22 Jun 2011 09:33:41 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-18628</guid>
		<description>Well this article helped me a lot with setting up of web server.
Excellent article!!!</description>
		<content:encoded><![CDATA[<p>Well this article helped me a lot with setting up of web server.<br />
Excellent article!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank Daley</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-18276</link>
		<dc:creator>Frank Daley</dc:creator>
		<pubDate>Tue, 22 Mar 2011 01:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-18276</guid>
		<description>@ Tech Admin. Thanks for this article. Very good.

@ Sergey Lempert. We look forward to receiving advice on the &quot;best method&quot;!</description>
		<content:encoded><![CDATA[<p>@ Tech Admin. Thanks for this article. Very good.</p>
<p>@ Sergey Lempert. We look forward to receiving advice on the &#8220;best method&#8221;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergey Lempert</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-18169</link>
		<dc:creator>Sergey Lempert</dc:creator>
		<pubDate>Thu, 20 Jan 2011 17:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-18169</guid>
		<description>This is a very simple, but not best method. Anyway, thank you very much for sharing this. Waiting for a post on how to compile PHP from sources.</description>
		<content:encoded><![CDATA[<p>This is a very simple, but not best method. Anyway, thank you very much for sharing this. Waiting for a post on how to compile PHP from sources.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP Themes</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-17851</link>
		<dc:creator>WP Themes</dc:creator>
		<pubDate>Mon, 02 Aug 2010 19:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-17851</guid>
		<description>Genial post and this has helped me alot in my college assignment. Thanks for providing this information.</description>
		<content:encoded><![CDATA[<p>Genial post and this has helped me alot in my college assignment. Thanks for providing this information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tech Admin</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-17846</link>
		<dc:creator>Tech Admin</dc:creator>
		<pubDate>Mon, 02 Aug 2010 09:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-17846</guid>
		<description>@slumber1
i regret to inform you that currently i&#039;m not receiving link exchange requests.</description>
		<content:encoded><![CDATA[<p>@slumber1<br />
i regret to inform you that currently i&#8217;m not receiving link exchange requests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: slumber1</title>
		<link>http://tech.amikelive.com/node-369/quick-tip-how-to-install-and-configure-php-in-fedora-linux/comment-page-1/#comment-17839</link>
		<dc:creator>slumber1</dc:creator>
		<pubDate>Sun, 01 Aug 2010 13:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://tech.amikelive.com/?p=369#comment-17839</guid>
		<description>I would like to exchange links with your site tech.amikelive.com
Is this possible?</description>
		<content:encoded><![CDATA[<p>I would like to exchange links with your site tech.amikelive.com<br />
Is this possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

