Home >Backend Development >PHP Tutorial >PHP configuration_PHP tutorial

PHP configuration_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:54:12837browse

Configuration options:
1. ;extension=php_pdo_myssql.dll of php.ini file [remove semicolon]
2. Enable Apache’s rewrite module in the httpd.conf file LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride None => AllowOverride ALL
3. Configure virtual host
# Virtual hosts Start virtual host configuration
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


Add dns
to the hosts file 127.0.0.1 zendTest
127.0.0.1 www.zendTest.com
4. Restart Apache

www.bkjia.comtruehttp: httpd Open Apache's rewrite module LoadModule rewrite_module modules/mod_rewrite.so... in the .conf file
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn