WordPress Setup Script for VPS Ubuntu

Following Blockcode will download latest version of WordPress and install it.

wget -O latest.zip https://wordpress.org/latest.zip
unzip latest.zip
mv wordpress website.com
sudo usermod -aG www-data $USER
sudo chown -R www-data:www-data website.com
sudo chmod -R 774 website.com
cp website.com/wp-config-sample.php website.com/wp-config.php
nano website.com/wp-config.php

Put Following Content after the database credentials in opned file wp-config.php:

define('FS_METHOD','direct');
define( 'WP_HOME', 'https://website.com' );
define( 'WP_SITEURL', 'https://website.com' );

Now rename your website.com folder to your custom name then open your Website url and complete the installation.

Share

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.