Apache+php+mysql+phpmyadmin+wordpress Construction

Source: Internet
Author: User
Tags install php install wordpress phpmyadmin

I. Installing Apache

: http://www.apachelounge.com/download/, select Apache 2.4.25 Win64, unzip, modify the configuration file in the following places:

1.ServerRoot

The Can ' t load module is not configured well serverroot. Seemingly does not recognize "..." The upper level indicates that only the absolute path can be used temporarily.

ServerRoot "D:\Program Files\apache24"

2.DocumentRoot

DocumentRoot "H:\wwwroot", indicating the site path
<directory "H:\wwwroot", configure some properties of the site directory, above <directory/> represents the global configuration.

3.ServerName

ServerName www.example.com:80 ServerName for the localhost:80, because of their own local testing. VPS Temporarily not considered

4.index.php

<directory/>

allowoverride None

Require all denied

DirectoryIndex index.php default.php index.html

</Directory>

Set default home page, that is, 127.0.0.1 will jump to 127.0.0.1/index.php

Two install PHP

1. Download the version of the thread safe

Three-install MySQL

1. Version 5.7 does not have the data folder, run

Mysqld–initialize-insecure–user=mysql Generate Data folder

2.MYSQL–UROOT-P login, Default user name root, password empty

3.show databases; Query database to test for successful installation

4. Stop and disable the World wide web* name service to stop the IIS service while having Apache and MySQL services self-starting

Four-Mount phpMyAdmin

1.The mbstring extension is missing.

Change php.ini in Extension_dir = "D:\Program files\php-5.6.30-win32-vc11-x64\ext", the relative path is not found to change the method,

2. The default phpMyAdmin blank password login is forbidden, this behavior is mainly controlled by two global variables in configuration file libraries/config.default.php, i.e.
$cfg [' Servers '] [$i] [' nopassword '] = false;

$cfg [' Servers '] [$i] [' allownopassword '] = false;

Set to True to use a blank password

Five install WordPress

1. Install plug-in appears no working transports found, to; Extension=php_openssl.dll, put front; Remove, restart

2, max upload XML is 2m limit, change php.ini

post_max_size=8m//upload file size limit
UPLOAD_MAX_FILESIZE=2M//default upload file size, this is the 2M limit

Vi. Summary

1. After modifying the PHP and Apache configuration, to restart the viewing effect

2. You can find a solution based on the information given by the console by running EXE files in Apache and PHP.

3. You can view PHP loading and various situations through the information in Phpinfo

4. See the various causes of Apache errors through Event Viewer.

Apache+php+mysql+phpmyadmin+wordpress Construction

Related Article

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.