Configuration of php and apache

Source: Internet
Author: User

Configuration of php and apache
1. Added php settings for conf \ httpd. conf, which is roughly in line 1. # Add LoadModule php5_module "E:/PHPCMS/PHP5/php5apache2_2.dll" to LoadModule vhost_alias_module/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.
#

.....

Enable the. htaccess function. There are about 120 rows of redirection. Last year, the # LoadModule rewrite_module modules/mod_rewrite.so virtual directory was about 305 rows.

Alias/2015 "E:/PHPCMS/Cms/www.aerchi.com"

2. Enable mysql in php;

About 880 lines in 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.