Setup a wordpress website on a VPS

Install packages needed to run wordpress

sudo apt-get install php-gd php-xml php-mbstring php-mcrypt php-xmlrpc -y

Install wordpress

sudo mv latest.tar.gz /var/www/html/ && cd /var/www/html/
sudo tar -zxvf latest.tar.gz 
sudo mv wordpress/* . 
sudo chown -R root:www-data * 
sudo rm latest.tar.gz
  • Open your domain name with browser and follow the wizzard…
  • Manualy create file wp-config.php and put the contents when wizzard prompts
  • Now finish setting up your website from browser..
  • Delete wp-config-sample.php
sudo rm wp-config-sample.php