[CentOS] Apache config for php?

Robin Mordasiewicz robin at mordasiewicz.com
Thu Mar 2 15:25:23 UTC 2006

On Thu, 2 Mar 2006, rado wrote:
> On Wed, 2006-03-01 at 22:43 -0500, Robin Mordasiewicz wrote:
>> On Wed, 1 Mar 2006, rado wrote:
>>> hi!
>>> ...trying to get my feet wet w/php...
>>> ok...I think I have to add something to the httpd.conf or something to
>>> accept php???
>>> I want be able to embed php in html code...following along in php
>>> freak's manual but can't get anywhere yet
>> if you have done
>> [ root at radobox ~]# yum install php
>> then do ....
>> /etc/init.d/httpd restart
>> it should configure it automatically for you.
>> Then create a script in your document root such as....
>> index.php
>> <?php
>> phpinfo();
>> ?>
>> you should see a bunch of information....
>> At what stage are you stuck at ?
> well, at least I ain't stuck w/just picking my nose now cuz that
> index.php works just fine!!!
> Oh my!, you guys are awesome!!
> ...ok now that that is established, php is indeed healthy in centos 4.2
> right off the install w/out having to do anything at all but know what
> you are doing.
> My next and question, do y'all know any tutorials specific to 4.2 or at
> least close...I am tired of goin blind reading about what happens in
> windows and slackwhere.

well there are about a million tutorials on php. Maybe you can grab a 
book, or sign up for an safari <http://safari.oreilly.com> account
Another good reference is the php site http://www.php.net/manual/en/

There are tons of code snippets and explanations about what each function 

here is a quick sample php script.


$myusername="Joe Blow";

echo "<html><body>";

echo "<h1>" . $myusername . "</h1>";

echo "</html";


More information about the CentOS mailing list