[CentOS] Apache config for php?
rado at rivers-bend.com
Thu Mar 2 15:39:13 UTC 2006
On Thu, 2006-03-02 at 10:25 -0500, Robin Mordasiewicz wrote:
> 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";
kk thx Robin!
I know there is tons out there for this if I can just get the start or
understand errrr the proper syntax or geez just get going.
yes, index.php works fine. Is this to say that if you have an index.php,
apache looks at and handles this first...taking the place of index.html?
> CentOS mailing list
> CentOS at centos.org
More information about the CentOS