This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reaplce YOUR-DOMAIN.EXT with you actual domain or subdomain. Point domain to server IP by editing DNS. | |
To create a new wordpress site, create a dirctory | |
/var/www/YOUR-DOMAIN.EXT/public_html | |
Upload wordpress files inside. | |
Create nginx config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | |
<title>Under Construction</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Bootstrap CSS --> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"> | |
<title>Under Construction</title> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# regex to split $uri to $fastcgi_script_name and $fastcgi_path | |
fastcgi_split_path_info ^(.+?\.php)(/.*)$; | |
# Check that the PHP script exists before passing it | |
try_files $fastcgi_script_name =404; | |
# Bypass the fact that try_files resets $fastcgi_path_info | |
# see: http://trac.nginx.org/nginx/ticket/321 | |
set $path_info $fastcgi_path_info; | |
fastcgi_param PATH_INFO $path_info; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
sudo apt install xfce4 -y | |
wget https://download.nomachine.com/download/8.11/Linux/nomachine_8.11.3_4_amd64.deb | |
sudo dpkg -i nomachine_8.11.3_4_amd64.deb | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
sudo apt update | |
sudo apt install google-chrome-stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://www.fastcartapp.com/sitemap.xml' \ | |
-H 'authority: www.fastcartapp.com' \ | |
-H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \ | |
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8,it;q=0.7' \ | |
-H 'cache-control: no-cache' \ | |
-H 'cookie: secure_customer_sig=; localization=US; cart_currency=USD; _y=fd18e78d-a7a3-4d81-ace9-39e698a4a91c; _s=6fab5005-349f-4347-be62-63ca8f3503f3; _shopify_y=fd18e78d-a7a3-4d81-ace9-39e698a4a91c; _shopify_s=6fab5005-349f-4347-be62-63ca8f3503f3' \ | |
-H 'pragma: no-cache' \ | |
-H 'sec-ch-ua: "Google Chrome";v="111", "Not(A:Brand";v="8", "Chromium";v="111"' \ | |
-H 'sec-ch-ua-mobile: ?1' \ | |
-H 'sec-ch-ua-platform: "Android"' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: [email protected] | |
# Web: https://serverok.in/plesk-mysql-daily-backup-script | |
BACKUP_DATE="$(date +%Y%m%d-%H%M%S)" | |
if [ ! -d "/mysql-backup/" ] | |
then | |
mkdir /mysql-backup/ | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
whmapi1 configureservice service=cpsrvd enabled=1 monitored=0 | |
whmapi1 configureservice service=mysql enabled=1 monitored=0 | |
whmapi1 configureservice service=httpd enabled=1 monitored=0 | |
/scripts/restartsrv_cpsrvd --stop | |
/scripts/restartsrv_mysql --stop | |
/scripts/restartsrv_httpd --stop | |
wget https://raw.githubusercontent.com/serverok/server-setup/master/benchmark/geekbench-5.sh | |
bash ./geekbench-5.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 167.114.61.116:80; | |
listen 443 ssl; | |
ssl_certificate /etc/ssl/scriptinstallation.in.crt; | |
ssl_certificate_key /etc/ssl/scriptinstallation.in.key; | |
server_name www.scriptinstallation.in; | |
access_log /var/log/nginx/scriptinstallation.in.log; | |
root /home/scriptinstallation.in/public_html; | |
index index.php; |