Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Data Recovery  |  Forums   | Blog | IT Exam Practice | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |                 

 

 

How to configure Apache Web Server to run PHP or HTML

To run PHP on Apache Server, you need to setup document root in httpd.conf located in C:\Program Files\Apache Group\Apache2\conf. To setup document root, please follow these steps:

1. Open notepad.

2. Search “DocumentRoot”.

3. Replace "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" with your PHP folder, for example DocumentRoot "C:/php”.

4. Search Directory and change the path to <Directory "C:/php">

5. You may want to change index. Search DirectoryIndex and enter the index page you want apache suchas  index.html, index.php or main.php lokks like this: DirectoryIndex index.html index.php main.php.

6. After the changes,  restart Apache by going to Start > Programs > Apache HTTP Server 2 > Control Apache Server > Restart

 

Post your questions, comments, feedbacks and suggestions

Contact a consultant

Related Topics


 

 


 

 

Hit Counter   This web is provided "AS IS" with no warranties.
Copyright © 2002-2018 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.