Actually, I failed to configure wordpress Jetpack on Ubuntu16.04 with LAMP(php7) environment. The XML PRC cannot pass.
So I follow the procedures of Ubuntu14.04 with LAMP(php5).

1. 下载apache2

sudo apt-get install apache2

2. Download mysql

Configuraton mysql

Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y
Success.

Remove test database and access to it? (Press y|Y for Yes, any other key for No)                                                                                         : y

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

All done!

在Mysql为wordpress创建数据库

mysql> CREATE DATABASE databasename
    -> ;
Query OK, 1 row affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON wordpress.* TO "username"@"hostname"
    -> IDENTIFIED BY "yourpassword";
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> EXIT
Bye

3. 安装php

sudo apt-get install php7.0 libapache2-mod-php7.0 php7.0-mcrypt
sudo apt-get install php7.0-mysql

You can change to your customed version.

配置index. html, php ,cgi优先级

sudo vim /etc/apache2/mods-enabled/dir.conf

改变php file upload size

sudo vim /etc/php7.0/apache2/php.ini
upload_max_filesize = 8M

重启apache2

sudo service apache2 restart

chown, the group name can be found in apache2 configuration file.

chown www-data:www-data -R /var/www/html

4. 下载wordpress

wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
mv wordpress/ /var/www/html
cd /var/www/html/

open your browser to visit http://yourip/wordpress to configure the wordpress

0 thoughts on “WordPress Configuration Procedures

Leave a Reply

Your email address will not be published. Required fields are marked *