Home >Backend Development >PHP Tutorial >PHP configuration_PHP tutorial
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