Search Suggest

How to install Wordpress 4.7 in Ubuntu- 16.10

In this toutorial i will install Wordpress 4.7 in Ubuntu- 16.10 . Before install Wordpress server you will need to create a LAMP invironment in server so that all the package and dependencies resolve.

Steps : 1 Install LAMP in server

Steps: 2
Install require php package
$ sudo apt-get install php-cgi php-mysql php-gd libapache2-mod-php

Restart Apache and MySQL service
$ sudo service apache2 restart
$ sudo service mysql restart

Create WordPress database and user in MySQL
mysql> mysql -u root -p

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

mysql> CREATE USER wpadmin@localhost IDENTIFIED BY  'Password_here';

mysql> GRANT ALL PRIVILEGES ON wordpress.* TO wp
admin@localhost;
Query OK, 0 rows affected (0.00 sec)

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

Install Latest WordPress software
$ wget http://wordpress.org/latest.tar.gz
$ tar -zvxf latest.tar.gz
$ cd wordpress/
$ sudo chown -R www-data:www-data /var/www/html
$ sudo cp -rpf * /var/www/html/.
$sudo chown -R www-data:www-data /var/www/html
$ sudo chmod -R 755 /var/www/html

Rename WordPress database connector file
$ sudo mv wp-config-sample.php wp-config.php

define('DB_NAME', 'wordpress');

/** MySQL database username */
define('DB_USER', 'wpadmin');

/** MySQL database password */
define('DB_PASSWORD', 'Redhat@123');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Again Restart service
$ sudo service apache2 restart
$ sudo service mysql restart

URL to access WordPress
http://server-ip-address
 Select Language as preferred and click on Continue
In next screen enter  Site Title name , Username, Password , and email id as per below snapshot. and Click on Install WordPress
Now login WordPress panel using above credential
WordPress Dashboard 

Đăng nhận xét