Create a WordPress site

Source: Internet
Author: User
Tags php and mysql php mysql

1. Environment preparation # yum Install httpd php mysql mysql-server php-mysql==>yum Installing PHP is run as a module
MySQL Connection tool for Clinet php-mysql connection components for PHP and MySQL
# chkconfig Mysqld on
# chkconfig httpd on
# service httpd start # service Mysqld start

2. New database and user-permitted authorization mysql> Create database cm;==> new cm data
mysql> Grant all on cm.* to ' cm ' @ ' localhost ' identified by ' cmpass ';==> Create user and grant cm to cm library all permissions
mysql> flush Privileges;==> Let permissions take effect immediately

3. Test data connection # vim/var/www/html/ index.php<?php$conn = mysql_connect (' local ', ' cm ', ' cmpass ');if ($conn)echo "SUCC";Elseecho "Failure";Mysql_close ();? >
data address, connection successful
4. InstallationWordPress download WordPress Unzip, move files to/var/www/html directory



Create a WordPress site

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.