Install wordpress on ubuntu host

1.install lamp

sudo apt-get install lamp-server^

2. download wordpress 

wget https://cn.wordpress.org/wordpress-4.5.3-zh_CN.tar.gz
sudo tar -zxvf wordpress-4.5.3-zh_CN.tar.gz
sudo cp -a ./wordpress /var/www

3.Modify directory of wwwroot

cd /etc/apache2/sites-available
sudo cp 000-default.conf mysite.conf
sudo nano mysite.comf

documentroot  ->  /var/www/wordpress

4. set mysql

mysql -u root -p
mysql> CREATE DATABASE yypwordpress;
mysql> CREATE USER wordpressuser;
mysql> SET PASSWORD FOR wordpressuser= PASSWORD(“password”);
mysql> GRANT ALL PRIVILEGES ON yypwordpress.* TO wordpressuser IDENTIFIED BY ‘lepassword′;
mysql>FLUSH PRIVILEGES;

5 .restart service

service apache2 restart
service mysql restart

 

One Reply to “Install wordpress on ubuntu host”

  1. El artículo está bien .
    À l’heure d’écrire ces lignes, ça fait 19 heures que
    Béatrice Martin a publié la photo suivante de son mari, Alex Peyrat, en compagnie de leur fille Romy.

Leave a Reply

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