stiahneme si apache napriklad z
Kód: Vybrať všetko
http://httpd.apache.org V C:\Apache\Apache\conf sa nachádzaju konfiguracne subory *.conf .
Otvorte httpd.conf. Všetky položky ktore maju pred sebou # su komentare. Direktiva Port sa nachadza na riadku 268. defaultne je 80 ak nam uz na porte bezi ISS zmenime napr na 81 inak nechame tak. ďalej na riadku 301 zmenime direktivu DocumentRoot "C:/Apache/Apache/htdocs" na DocumentRoot "C:/www", tým nastavite miesto kde si budete ukladat PHP skripty. Do C:/www umiestnime idndex.php s takymto textom :
Kód: Vybrať všetko
<?
phpinfo();
?>
Kód: Vybrať všetko
<Directory "C:/Apache/Apache/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options",
# "FileInfo", "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Kód: Vybrať všetko
<Directory "C:/www">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options",
# "FileInfo", "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>Kód: Vybrať všetko
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja kr no ......
</IfModule>toto :
Kód: Vybrať všetko
# NačitaPHP modul pro Apache
LoadModule php4_module C:/php/sapi/php4apache.dll
# Pridamapovanie koncoviek PHP skriptov
AddType application/x-httpd-php .php .php3 .php4 .wml .phtml .inc .ihtml
# Do buducna nastavíme Wapové aplikacie
AddType text/vnd.wap.wml .wml
AddType image/vnd.wap.wbmp .wbmp