sarkariresultupjobs.com
cp -r /var/www/html/sarkariresultupjobs.com /var/www/html/nursejobalert.com
change file permissions to server user from root
sudo chown -R www-data:www-data /var/www/html/jobsarkariz
Copy database in phpMyAdmin
Select database click on operations.
then select copy to
or
new database name and structure and data.
root@murali:~# mysql -u root -p
Enter password:
mysql> create database defence;
Query OK, 1 row affected (0.01 sec)
mysql>
step 4a
change New database name in wp-config.php
nano /var/www/html/facultyplus.pro/wp-config.php
change website name in wp-options table
Nginx server level
add server block
server {
listen 443;
root /var/www/html/pharmajobalert.net/;
server_name pharmajobalert.net;
ssl_certificate /etc/nginx/ssl/pharma.pem;
ssl_certificate_key /etc/nginx/ssl/pharma.key;
location /{
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
add_header Cache-Control: “no-cache, no-store, must-revalidate”;
http2_push_preload on;
}
}
server {
listen 80;
if ($host = pharmajobalert.net) {
return 301 https://$host$request_uri;
}
server_name pharmajobalert.net www.pharmajobalert.net;
return 404;
}
or copy existing come and change values then reload
cp /etc/nginx/sites-enabled/sarkariresultupjobs.com /etc/nginx/sites-enabled/nursejobalert.com
nano /etc/nginx/sites-enabled/nursejobalert.com
including ssl
point
upload ssl
check confit syntax error
nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
and reload
nginx -s reload
and modify in web mode. after accusing the website.
delete categories, posts or modify.
don’t forget to change ownership
sudo chown -R www-data:www-data /var/www/html/facultyplus.pro
example 1
cp -r /var/www/html/defencejobalert.app /var/www/html/pharmajobalert.net
create database pharma;
nano /var/www/html/pharmajobalert.net/wp-config.php
cp /etc/nginx/sites-enabled/defencejobalert.app /etc/nginx/sites-enabled/pharmajobalert.net
server {
listen 443;
root /var/www/html/pharmajobalert.net/;
server_name pharmajobalert.net;
ssl_certificate /etc/nginx/ssl/pharma.pem;
ssl_certificate_key /etc/nginx/ssl/pharma.key;
location /{
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
add_header Cache-Control: “no-cache, no-store, must-revalidate”;
http2_push_preload on;
}
}
server {
listen 80;
if ($host = pharmajobalert.net) {
return 301 https://$host$request_uri;
}
server_name pharmajobalert.net www.pharmajobalert.net;
return 404;
}
sudo chown -R www-data:www-data /var/www/html/pharmajobalert.net