当前位置:Gxlcms > PHP教程 > PHP配置_PHP教程

PHP配置_PHP教程

时间:2021-07-01 10:21:17 帮助过:22人阅读

配置选项:
1. php.ini文件的 ;extension=php_pdo_myssql.dll [去掉分号]
2. httpd.conf文件下开启Apache的rewrite模块 LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride None => AllowOverride ALL
3. 配置虚拟主机
# Virtural hosts启动虚拟主机的配置
Include conf/extra/httpd-vhosts.conf



ServerAdmin kongdaoxian@gmail.com
DocumentRoot "E:/skydao/apache2/htdocs/zendTest/public"
ServerName zendTest.com
ServerAlias www.zendTest.com
DirectoryIndex index.php

Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all


在hosts文件中加dns
127.0.0.1 zendTest
127.0.0.1 www.zendTest.com
4. 重启Apache

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/477982.htmlTechArticle配置选项: 1. php.ini文件的 ;extension=php_pdo_myssql.dll [去掉分号] 2. httpd.conf文件下开启Apache的rewrite模块 LoadModule rewrite_module modules/mod_rewrite.so...

人气教程排行