Skip to content

MR-Amoori/Complete_installation_of_X-UI_panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Complete installation of X-UI panel




Install X-UI Panel

server up to date:

apt update && apt upgrade -y

Also install curl and socat:

apt install curl socat -y

Download and install the Acme script for getting a free SSL certificate:

curl https://get.acme.sh | sh

Set the default provider to Let’s Encrypt:

~/.acme.sh/acme.sh --set-default-ca --server letsencrypt

Register your account for a free SSL certificate:

~/.acme.sh/acme.sh --register-account -m name@gmail.com

Obtain an SSL certificate:

~/.acme.sh/acme.sh --issue -d sub.host.top --standalone

Therefore install the certificate and key to a permanent location:

~/.acme.sh/acme.sh --installcert -d sub.host.top --key-file /root/private.key --fullchain-file /root/cert.crt

Run the X-UI Install Script:

Chinese:
bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
English & Persian:
bash <(curl -Ls https://raw.githubusercontent.com/NidukaAkalanka/x-ui-english/master/install.sh)
English & Persian (Update & Custom Version):
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
English & Persian (ALIREZA01):
bash <(curl -Ls https://raw.githubusercontent.com/alireza0/x-ui/master/install.sh)
Username: admin
Password: admin
Port: 54321

Install google BBR:

type > x-ui > select 15

Enable HTTPS on Panel:

Panel settings:

Panel certificate public key file path: /root/cert.crt Panel certificate key file path: /root/private.key

Open the required ports and close the other ports

ufw enable
ufw allow 22/tcp
ufw allow 2053/tcp
ufw allow 443/tcp
ufw allow 2087/tcp
ufw allow 2083/tcp
ufw allow 2096/tcp
ufw allow 8443/tcp
ufw allow 80/tcp
ufw allow 8080/tcp
ufw allow 8880/tcp
ufw allow 2052/tcp
ufw allow 2082/tcp
ufw allow 2086/tcp
ufw allow 2095/tcp
ufw status

Disable Google reCAPTCHA :

curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/install_kernel.sh && chmod +x ./install_kernel.sh && ./install_kernel.sh
2
12
y
y
1

Install wordpress on ubunto:

Update & Upgrade Server :
apt update -y && apt upgrade -y 
Install Apache :
apt install apache2 -y
Install MySQL :
apt install mariadb-server mariadb-client -y
SecureMariaDB :
mysql_secure_installation

Change Root Password : N

Remove anonymous users: Y

Disallow root login remotely: N

Remove test database: Y

Reload privilege table now? : Y

Install PHP :
apt install php php-mysql -y
Create DataBase :
mysql -u root -p
CREATE DATABASE wordpress_db;
Create Database User:
CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'password';
User Permissions :
GRANT ALL ON wordpress_db.* TO 'wp_user'@'localhost' IDENTIFIED BY 'password';
Exit of Database :
FLUSH PRIVILEGES;
Exit;
Install WP CMS :
cd /tmp && wget https://wordpress.org/latest.tar.gz
Unzip WP :
tar -xvf latest.tar.gz
Change Dir of WP :
cp -R wordpress /var/www/html/
Run to change the ownership :
chown -R www-data:www-data /var/www/html/wordpress/
change permission to WP folder :
chmod -R 755 /var/www/html/wordpress/
Create Upload Dir:
mkdir /var/www/html/wordpress/wp-content/uploads
Change Permissions of Upload Folder:
chown -R www-data:www-data /var/www/html/wordpress/wp-content/uploads/
Move the WordPress directory to /var/www/html and changes in the config file
cd / && cd /var/www/html
rm index.html
cd wordpress
mv * /var/www/html
cd ..
rm -rf wordpress
mv wp-config-sample.php wp-config.php
nano wp-config.php
Install WP by UI:
https://server-ip-address-or-domain/wordpress

About

How to fully install the XUI panel. Get an SSL certificate for the domain. Install Google BBR. IR domains filter and Iran IPs filter to reduce the possibility of being filtered. Installing WordPress on the server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages