Select Page

Website Migration – Phase I

Export the DB for all the above websites as follow: Become the root usersudo su -Navigate to webside root directory:cd /var/www/{website-url}/Find out the DB that it connects to:grep -ir “‘DB_NAME'” *Export the DB into the domain dir:mysqldump -u...

NGINX BLOCK [Template]

server { root /var/www/{site-URL}/public_html; index index.php index.html index.htm index.nginx-debian.html; server_name {site-URL} www.{site-URL}; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { include snippets/fastcgi-php.conf;...

Website Migration – Phase II

Create the NGINX block for all websites under sites-availablevi /etc/nginx/sites-available/{site-URL}.confCreate an Alias of the sites in sites-enabledln -s /etc/nginx/sites-available/{site-URL}.conf /etc/nginx/sites-enabled/.Create DBs and assign the ownerCREATE...