PHP---环境设置

修改Apache的端口号

httpd.conf文件中
(1)Listen 8080
(2)ServerName localhost:8080

更改网站根目录

(1)DocumentRoot "d:/mydoc/php/"
(2)<Directory "d:/mydoc/php/">

 

Forbidden  You don't have permission to access / on this server.   解决办法


打开 httpd.conf 文件,


#   onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
     Allow from 127.0.0.1

改成

#   onlineoffline tag - don't remove
    Order Allow,Deny
     Allow from all


重启所有服务即可

 

 

Forbidden  You don't have permission to access /phpmyadmin/ on this server  解决办法

打开 XXX/wamp/alias/phpmyadmin.conf 文件,

<Directory "F:/Software/wamp/alias/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>

修改成

<Directory "F:/Software/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>

保存,然后重启Wamp所有服务即可。

 

你可能感兴趣的:(PHP---环境设置)