1 | Open C:\Program Files\Apache Group\Apache2\conf\httpd.conf file |
2 | Goto Line# 120, change this to Listen 8080 |
3 | Goto Line# 228 and change it to DocumentRoot "C:/MyWebsite" |
4 | Goto Line# 238 and change it to <Directory "C:/php"> |
5 | Goto Line# 321 and change it to DirectoryIndex index.html index.html.var index.php index.htm |
6 | Goto Line# 515 and remove the default ScriptAlias paste the following. ScriptAlias /php/ "c:/php/" AddType application/x-httpd-php .php .php5 Action application/x-httpd-php "/php/php-cgi.exe" SetEnv PHPRC "C:/php" |
|
|
15 Comments:
Excellent tutorial
I was trying too hard to configure this. Nice tutorial!
digg your site @ http://digg.com/programming/2_minutes_-_WAMP_Configuration_(Windows_-_Apache_-_MySQL_-_PHP)
I added it so that it can help others too!
Nice tutorial....
Where is the code for the index.php??? Am I missing something here?
Code for index.php added
I followed the instructions, but am getting the following 'Forbidden' error. Any ideas?
You don't have permission to access /php/php-cgi.exe/index.php on this server.
To get rid of the 403 forbidden error: change security settings in the httpd.conf by removing the lines "Order allow,deny" and " Allow from all" in the Directory-tag, which is located just below Documentroot.
In the section, [Setup httpd.conf], it reads:
1 ...
2 ...
3 ...
4 Goto Line# 238 and change it to
5 ...
Change Line# 238 to what?
Otherwise, an excellent tutorial...
Will this tutorial work for Apache 2.2.2 and PHP 5.1.4? Thanks.
Ya. It'll work for Apache 2.2.2 and PHP 5.1.4
Just that the line numbers may change
Thanks for the post about the security settings. I was completely getting crazy of that Forbidden-error!
For Apache 2.2
Directory /
Options FollowSymLinks
AllowOverride None
# Order deny,allow
# Deny from all
Satisfy all
/Directory
Saludos
I followed the instructions but with me when I type http://localhost:8080 it ask if I want to save localhost.
what went wrong?
Just install WAMP Server. All in one pack. Download and run the setup.
Link is here: http://www.wampserver.com/en/download.php
This comment has been removed by a blog administrator.
Post a Comment