[CentOS] Apache config for php?
rado at rivers-bend.com
Thu Mar 2 16:45:19 UTC 2006
On Thu, 2006-03-02 at 11:09 -0500, Robin Mordasiewicz wrote:
> On Thu, 2 Mar 2006, rado wrote:
> > On Thu, 2006-03-02 at 10:25 -0500, Robin Mordasiewicz wrote:
> >> here is a quick sample php script.
> >> <?php
> >> $myusername="Joe Blow";
> >> echo "<html><body>";
> >> echo "<h1>" . $myusername . "</h1>";
> >> echo "</html";
> >> ?>
> > 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?
> The master config file for Apache is
> when you want to add new virtual servers or special configuration options
I add virtual servers all the time...but!
> it is recomended to create a file
...this is a new one on me!
> If you open the /etc/httpd/conf/httpd.conf file you will see a conf
> option called
> You will see that when you installed php, that a file
> was added.
kk...php was already installed and yes, etc/httpd/conf.d/php.conf is
> if you open the file /etc/httpd/conf.d/php.conf, you can see that the
> option DirectoryIndex is not overridden but added to. Check the master
> httpd.conf file to see what options are set.
kk later on today ...will do as you say...gotta work outside now tho
> When you make a change to the apache configuration files you must do..
> /etc/init.d/httpd reload
More information about the CentOS