How to Install Wordpress on Ubuntu 12.04 LTS

Опубликовано: 03 Август 2026
на канале: Kuyang TJ
1,720
1

How to Install Wordpress on Ubuntu 12.04 LTS

1. to download wordpress type wget http://wordpress.org/latest.tar.gz
2. to untar the file type tar -xzvf latest.tar.gz
3. copy the wordpress sample config by typing cp ~/wordpress/wp-config-sample.php ~/wordpress/wp-config.php
4. edit wp-config.php by typing sudo nano ~/wordpress/wp-config.php and enter you MySQL database name, username, password, and database host
5. transfer the unzipped wordpress files to the root directory of your site, to do that, type sudo rsync -avP ~/wordpress/ /var/www/
6. go to directory www by typing cd /var/www/
7. change owner and group by typing sudo chown www-data:www-data /var/www -R
8. type the following command sudo chmod g+w /var/www -R
9. to install wordpress, just go to your http://website.com/wp-admin/install.php