Skip to content

Latest commit

 

History

History
87 lines (53 loc) · 1.18 KB

README.md

File metadata and controls

87 lines (53 loc) · 1.18 KB

Guide to Install Wordpress on Debian 8

Install the dependencies:

$ sudo apt install apache2 libapache2-mod-php5 php5 php5-curl php5-intl php5-mcrypt php5-mysql php5-sqlite php5-xmlrpc mysql-server mysql-client

Position on /var/www/html:

$ cd /var/www/html

Download wordpress:

$ sudo wget http://wordpress.org/latest.tar.gz

Decompress the tar.gz

$ tar -xzvf latest.tar.gz

Delete the tar.gz

$ rm -r latest.tar.gz

Change owner

$ chown www-data: -R wordpress/

Now in mysql

Create a user to wordpress

Enter the console of mysql

$ mysql -u root -p

Create user:

$ CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'userpassword';

Create database

$ CREATE DATABASE wordpressdb;

On the basis of newly created data, we assign the user:

$ GRANT ALL PRIVILEGES ON wordpressdb.* TO 'wordpressuser'@'localhost';

Refresh the database:

$ FLUSH PRIVILEGES;

And exit

$ exit;

Now go to the next path localhost/wordpress in your browser and finish the installation

Passwd: uEJQ3#pIi1p(QO^BM(