Académique Documents
Professionnel Documents
Culture Documents
STEP 1: Enable PHP in /etc/httpd/httpd.conf: Add 'index.php' to directory index: <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> and enable the P P module by uncommentin!: "#ncomment the follo$in! line to enable P P: " Include /etc/httpd/mod_php.conf %ou don't need to edit /etc/httpd/mod_php.conf &ince it ha& mod_php already enabled for all file& endin! $ith .php.
&tandard' xml Cith ,lac:$are @D.@ all of the&e &hould be enabled. %ou can chec: $ith php -i, e.!. for 7&on &upport: " php (i ) 'rep (i (! *%&on 7&on 7&on &upport ;> enabled 7&on -er&ion ;> @.9.@ STEP +:Start the !eb &erver (hi& can be done by executin! the &tart &cript in the /etc/rc.d directory: " &h /etc/rc.d/rc.httpd &tart 2e&tart your Apache &er-er in order to ha-e your modification& applied. A& root' execute: apachectl re&tart 2e&tart the httpd &er-er. /etc/rc.d/rc.httpd re&tart
,erificare:
In 3irefix tipare&te adre&a: @9G.0.0.@ &au http://localho&t/ ,i ai me&a7ul: It !or-&.
P.23.4(555
Te&tare functonare: +ormally you $ould $ant to te&t your recent chan!e& in order to :no$ if they ha-e $or:ed. After re&tartin! Apache' create a 'index.php' file on your '/-ar/$$$/htdoc&/' directory $ith the follo$in!: <Iphp phpinfo)*J I> (o te&t that php i& functionin! correctly' create index.php $ith the follo$in! line in it: cd /-ar/$$$/htdoc& cat > index.php <Iphp phpinfo)*J I> KD Ma:e the P P pa!e info: vi /var/!!!/htdoc&/index.php and add: <Iphp phpinfo)* I>
6pen up a $eb bro$&er and point it to: /http://localho&t/index.php/ It &hould di&play detailed information from phpinfo)*. 6nce confirmed' it'& a !ood idea to delete phpinfo)* from the file for &ecurity rea&on&.