Now navigate to C:\server\Apache\conf
Edit httpd.conf
Some users had reported that they weren`t able to edit httpd.conf in VISTA using Notepad. Try using Dreamweaver or any other editor to edit the *.conf files. If you are still not able to open httpd.conf file in any text editor, you can try the following solutions
- Try different text editor
- Stop Apache server from the taskbar and then try to edit
- You should have administrative previliges. Try disabling UAC
- If none of the above work. Reboot your computer in safe mode and then try to edit httpd.conf
The above is applicable for all *.conf files
Okay, brace yourself, we got 5 Edits in this file. No big deal, pretty simple search and replace text.
Edit 1
Search for
#LoadModule rewrite_module modules/mod_rewrite.so
Replace with
LoadModule rewrite_module modules/mod_rewrite.so
Edit 2
Add the following below the previous edit
#PHP5
LoadModule php5_module "C:/server/php/php5apache2_2.dll"
PHPIniDir "C:/server/php"
Edit 3
Search
AddType application/x-gzip .gz .tgz
Add the following below the searched line
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Edit 4
Search for
DirectoryIndex index.html
Replace with
DirectoryIndex index.html index.php
Edit 5
Search for
#Include conf/extra/httpd-vhosts.conf
Replace withinclude conf/extra/httpd-vhosts.conf