[Happy to be original] configuration of php and apache, apache

Source: Internet
Author: User

[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

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.