Blog System : WordPress2016/02/03 |
Install WordPress which is a Web Blog System.
|
|
[1] | |
[2] | |
[3] | Create a database for WordPress. |
root@www:~# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 28 Server version: 5.5.46-MariaDB-1ubuntu0.14.04.2 (Ubuntu) Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. # create "wordpress" databse (set any password for "password" section)
MariaDB [(none)]>
create database wordpress; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on wordpress.* to wordpress@'localhost' identified by 'password'; Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) exit Bye |
[4] | Install WordPress. |
root@www:~#
root@www:~# apt-get -y install php5-gd php5-mysqlnd libjs-cropper libphp-phpmailer libphp-snoopy tinymce unzip curl -O https://wordpress.org/latest.zip root@www:~# unzip latest.zip -d /var/www/html/ root@www:~# mv /var/www/html/wordpress/wp-config-sample.php /var/www/html/wordpress/wp-config.php
root@www:~#
vi /var/www/html/wordpress/wp-config.php # line 23: specify DB define('DB_NAME', ' wordpress ');
# line 26: specify DB user define('DB_USER', ' wordpress ');
# line 29: specify DB user's password define('DB_PASSWORD', ' password ');
/etc/init.d/apache2 restart * Restarting web server apache2 ...done. |
[5] | Access to "http://(server's hostname or IP address)/wordpress/" and configure final settings. |
[6] | After configuring, Click "login" button to login. |
[7] | Login with a user you added. |
[8] | This is the admin panel to manage your blog. Refer to the official site to use admin panel. |
[9] | The index page is "http://(hostname or IP address)/wordpress/", access to it and make sure it is shown normally. |
Sponsored Link |