[Happy to be original] configuration of php and apache, apache
1. e: \ PHPCMS \ Apache2.2 \ conf \ httpd. add the php setting in conf, which is probably in line 130. # Add LoadModule php5_module "E:/PHPCMS/PHP5/php5apache2_2.dll" to LoadModule vhost_alias_module modules/mod_vhost_alias.so"
PHPIniDir "E:/PHPCMS/PHP5"
Modify the default site: about 184 lines,
# DocumentRoot "E:/PHPCMS/Apache2.2/htdocs"
DocumentRoot "E:/PHPCMS/Cms/www.aerchi.com"
About 209 rows
#
# This shoshould be changed to whatever you set DocumentRoot.
#
<Directory "E:/PHPCMS/Cms/www.aerchi.com">
.....
Enable the. htaccess function. There are about 120 rows of redirection. Last year, the # LoadModule rewrite_module modules/mod_rewrite.so
About 305 rows in the virtual directory
<IfModule alias_module>
Alias/2015 "E:/PHPCMS/Cms/www.aerchi.com"
</IfModule>
2. php configuration mysql is enabled;
About 880 lines in e: \ PHPCMS \ PHP5 \ php. ini:
Remove the semicolon
Extension = php_mysql.dll
Extension = php_mysqli.dll
Note that when php versions are 5.3, 5.4, and 5.5, the default password for mysql is 41-bit encryption.
PHP connection to mysql problems, see: http://blog.csdn.net/aerchi/article/details/45949937
Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------
Finally, enter localhost in the browser.
Next, the sub-page:
All right, now, we're done.
Happy to be original, prohibit collection.
Address: http://blog.csdn.net/aerchi/article/details/46003761