IE
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/KoboldServerLite/web">
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/KoboldServerLite/web"NOTE: Whenever you change something in the httpd.conf after you save the file restart the apache service! (by right clicking on the taskbar icon - Open Apache Monitor)
3.Install the php by extracting the achive in C:\php (that should be the php root so after extract change the folder name from php-5.1.6-Win32 to simply php) or you can extract it where ever you want on your computer
4.Now you have to configure php to work with apache.
- first thing you need to do is open the install.txt located in the php root folder and find the line Apache 2.0.x on Microsoft Windows (not the one from the Table of Contents)
- read all about the apache and php config because you might get stucked
- now there you will find a some line with what u should do
- copy those lines in your httpd.conf file at the bottom :
LoadModule php5_module c:/php/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir C:/php- then copy the php5ts.dll (thats located in the php root folder) to your C:\windows\system32\ folder
- restart the apache service
5. Now copy your modified index.php in your webroot directory (check cap.2 for the default webroot if you didn't change it)
- ok after all this now open your httpd.conf find the line :
DirectoryIndex index.html index.html.varand change it to:
DirectoryIndex index.php- open I.explorer type http://yourip then press enter if it shows the page thats good if not don't bug me and start all over again cuz this is a "for nothing guide"
Note: Remember that when adding path values in the Apache configuration files on Windows, all backslashes such as c:\directory\file.ext must be converted to forward slashes, as
c:/directory/file.ext.
Note: Remember to substitute your actual path to PHP for the
c:/php/ in the above examples. Take care to use either
php4apache2.dll or php5apache2.dll in your LoadModule directive and
not php4apache.dll or php5apache.dll as the latter ones are
designed to run with Apache 1.3.x.
Warning
Don't mix up your installation with DLL files from different PHP
|