1, the main configuration file modified
with an editor opens: C: \ Program Files \ xampp \ apache \ conf \ httpd.conf
Find <Directory />
The code block below
<Directory />
the Options FollowSymLinks
the AllowOverride None
the Order the deny, the allow
Deny from All
</ Directory>
修改为:
<Directory />
Options MultiViews -Indexes Includes FollowSymLinks
AllowOverride None
Order deny,allow
#Deny from all
</Directory>
Note that you should comment out Deny from all run xampp C: \ Program Files \ xampp \ xampp-control.exe, click the apache and mysql behind the start Note: Starting apache and mysql will take some time, so do not click again
If all goes well behind apache and mysql should display "running", if you do not normally see the "failure analysis"
Note: mysql default user name is root password is empty
Now use IE to access the current site: HTTP: // localhost /
2, the file path Note:
You will need your written program on the directory C: \ Program Files \ xampp \ htdocs \
Note: not successful, a tight deadline, come see the changes over time
========== Below is the supplemental content can not watch ===============
3, Troubleshooting:
If the machine on top of apache does not start, run
C: \ Files Program \ xampp \ apache_start.bat
to view detailed error information
If the machine top mysql does not start, run
C: \ Program Files \ xampp \ mysql_start.bat
to view detailed error information
If the machine already has IIS installed, apache will complain, 443 ssl port will occupy IIS, modify F: /xampp/xampp/apache/conf/extra/httpd-ssl.conf resolve the port number
for example: all are modified 443 533, this error is the same for the 80-port possible, if it is 80 port, modify
C: \ Program Files \ xampp \ the Apache \ conf \ the httpd.conf
all 80 revised to 8081
4 path Supplement (can not see):
MySQL database file should be placed in the following directory:
C: \ Program Files \ xampp \ MySQL \ the Data
mysql configuration file is:
C: \ Program Files \ xampp \ mysql \ bin \ my.cnf
Note: In the windows operating system .cnf there may not be displayed
Please use an editor like UltraEdit or EditPlus open
apache main configuration file is:
C: \ Program Files \ xampp \ apache \ conf \ the httpd.conf
apache virtual host configuration file is:
C: \ Program Files \ xampp \ apache \ conf \ Extra \ httpd-vhosts.conf
5 How to switch php5 with php4?
Please stop apache
and run
C: \ Program Files \ xampp \ PHP-switch.bat
Reproduced in: https: //www.cnblogs.com/JoannaQ/archive/2012/08/17/2643495.html