Before beginning, a domain, an ESC or a VPS are needed. Once the ECS or the VPS and the domain are prepared, the following procedures can be conducted.
Detailed steps are as followings:
- Install LAMP services (Linux, Apache, MySQL, PHP).
input these commands:
- Install Apache, MySQL, and PHP
yum -y install httpd mysql mysql-server php php-mysql php-gd php-xml
- Set up httpd and mysqld to start with system
systemctl enable httpd.service
Updated on 7.26.2018 mysqld.service failed to start.
yum install mariadb-server -y
systemctl start mariadb.service
systemctl enable mariadb.service
- Start services
systemctl restart httpd.service
systemctl restart mariadb.service
- Set up MySQL
Set root password? [Y/n] // (Y)
Remove anonymous users? [Y/n] // (Y)
Disallow root login remotely? [Y/n] //(n)
Remove test database and access to it? [Y/n] //(Y)
Reload privilege tables now? [Y/n] //(Y)
login MySQL: mysql -u root -p (the password is empty, just press enter)
mysql> create database wordpress; //create a database and name it as ‘wordpress’
- Install WordPress
- Download and Install
wget http://wordpress.org/latest.zip //download wordpress
unzip latest.zip // uncompress file
cp -r wordpress/* /var/www/html/jmli //move files under floder ‘wordprss’to apache
2、Set up WordPress
cp wp-config-sample.php wp-config.php
Press ‘i’ to write, insert database name, user name and user password. Others remain the same.
Press ‘Esc’ to exit writing mode. Double press ‘Shift’ + ‘z’ to exit the file.
Then, go to your domain to finish WordPress set up.
I used Wanwang to register a domain and Aliyun to set up an ECS. The discounts for students and Double 11th are very attractive. As for the other services in its store, I have not used them yet.