mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 23:50:33 +00:00
update
This commit is contained in:
parent
9119906f2a
commit
d828dd0a1e
10 changed files with 12 additions and 193 deletions
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
CURRENT_IP=$(hostname -I | awk '{print $1}')
|
|
||||||
|
|
||||||
echo " \
|
|
||||||
____ _ ___ ______ _____ ____ _ _ _ _____ _
|
|
||||||
| _ \| | | \ \ / / _ \| ____| | _ \ / \ | \ | | ____| |
|
|
||||||
| |_) | |_| |\ V /| |_) | _| | |_) / _ \ | \| | _| | |
|
|
||||||
| __/| _ | | | | _ <| |___ | __/ ___ \| |\ | |___| |___
|
|
||||||
|_| |_| |_| |_| |_| \_\_____| |_| /_/ \_\_| \_|_____|_____
|
|
||||||
WELCOME TO PHYRE PANEL!
|
|
||||||
OS: CentOS Stream 9
|
|
||||||
You can login at: http://$CURRENT_IP:8443
|
|
||||||
"
|
|
||||||
|
|
||||||
# File can be saved at: /etc/profile.d/greeting.sh
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
wget https://github.com/PhyreApps/PhyrePanelWebCompiledVersions/raw/main/phyre-web-panel.zip
|
|
||||||
unzip -qq -o phyre-web-panel.zip -d /usr/local/phyre/web
|
|
||||||
rm -rf phyre-web-panel.zip
|
|
||||||
|
|
||||||
chmod 711 /home
|
|
||||||
chmod -R 750 /usr/local/phyre
|
|
|
@ -1,62 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
INSTALL_DIR="/phyre/install"
|
|
||||||
|
|
||||||
yum update && yum install ca-certificates wget -y
|
|
||||||
|
|
||||||
mkdir -p $INSTALL_DIR
|
|
||||||
|
|
||||||
cd $INSTALL_DIR
|
|
||||||
|
|
||||||
DEPENDENCIES_LIST=(
|
|
||||||
"openssl"
|
|
||||||
"jq"
|
|
||||||
"curl"
|
|
||||||
"wget"
|
|
||||||
"unzip"
|
|
||||||
"zip"
|
|
||||||
"tar"
|
|
||||||
"mysql-common"
|
|
||||||
"mysql-server"
|
|
||||||
"mysql-client"
|
|
||||||
"lsb-release"
|
|
||||||
"gnupg2"
|
|
||||||
"ca-certificates"
|
|
||||||
"apt-transport-https"
|
|
||||||
"software-properties-common"
|
|
||||||
"supervisor"
|
|
||||||
"libonig-dev"
|
|
||||||
"libzip-dev"
|
|
||||||
"libcurl4-openssl-dev"
|
|
||||||
"libsodium23"
|
|
||||||
"libpq5"
|
|
||||||
"libssl-dev"
|
|
||||||
"zlib1g-dev"
|
|
||||||
)
|
|
||||||
# Check if the dependencies are installed
|
|
||||||
for DEPENDENCY in "${DEPENDENCIES_LIST[@]}"; do
|
|
||||||
yum install -yq $DEPENDENCY
|
|
||||||
done
|
|
||||||
|
|
||||||
# Start MySQL
|
|
||||||
service mysql start
|
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/PhyreApps/PhyrePanel/main/installers/centos-stream-9/greeting.sh
|
|
||||||
mv greeting.sh /etc/profile.d/phyre-greeting.sh
|
|
||||||
|
|
||||||
# Install PHYRE NGINX
|
|
||||||
wget https://github.com/PhyreApps/PhyrePanelNGINX/raw/main/compilators/centos/nginx/dist/phyre-nginx-1.25.5-1.el8.x86_64.rpm
|
|
||||||
sudo dnf install phyre-nginx-1.25.5-1.el8.x86_64.rpm -y
|
|
||||||
|
|
||||||
## Install PHYRE PHP
|
|
||||||
#wget https://github.com/PhyreApps/PhyrePanelNGINX/raw/main/compilators/centos/nginx/dist/phyre-nginx-1.25.5-1.el8.x86_64.rpm
|
|
||||||
#rpm -i phyre-nginx-1.25.5-1.el8.x86_64.rpm -y
|
|
||||||
|
|
||||||
#
|
|
||||||
#service phyre start
|
|
||||||
#
|
|
||||||
#PHYRE_PHP=/usr/local/phyre/php/bin/php
|
|
||||||
#
|
|
||||||
#ln -s $PHYRE_PHP /usr/bin/phyre-php
|
|
||||||
#
|
|
||||||
#curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d '{"os": "ubuntu-22.04"}'
|
|
|
@ -1,14 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
HOSTNAME=$(hostname)
|
|
||||||
IP_ADDRESS=$(hostname -I | cut -d " " -f 1)
|
|
||||||
|
|
||||||
DISTRO_VERSION=$(cat /etc/os-release | grep -w "VERSION_ID" | cut -d "=" -f 2)
|
|
||||||
DISTRO_VERSION=${DISTRO_VERSION//\"/} # Remove quotes from version string
|
|
||||||
|
|
||||||
DISTRO_NAME=$(cat /etc/os-release | grep -w "NAME" | cut -d "=" -f 2)
|
|
||||||
DISTRO_NAME=${DISTRO_NAME//\"/} # Remove quotes from name string
|
|
||||||
|
|
||||||
LOG_JSON='{"os": "'$DISTRO_NAME-$DISTRO_VERSION'", "host_name": "'$HOSTNAME'", "ip": "'$IP_ADDRESS'"}'
|
|
||||||
|
|
||||||
curl -s https://phyrepanel.com/api/phyre-installation-log -X POST -H "Content-Type: application/json" -d "$LOG_JSON"
|
|
|
@ -1,70 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Check dir exists
|
|
||||||
if [ ! -d "/usr/local/phyre/web" ]; then
|
|
||||||
echo "PhyrePanel directory not found."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Go to web directory
|
|
||||||
cd /usr/local/phyre/web
|
|
||||||
|
|
||||||
# Create MySQL user
|
|
||||||
MYSQL_PHYRE_ROOT_USERNAME="phyre"
|
|
||||||
MYSQL_PHYRE_ROOT_PASSWORD="$(tr -dc a-za-z0-9 </dev/urandom | head -c 32; echo)"
|
|
||||||
|
|
||||||
mysql -uroot -proot <<MYSQL_SCRIPT
|
|
||||||
CREATE USER '$MYSQL_PHYRE_ROOT_USERNAME'@'%' IDENTIFIED BY '$MYSQL_PHYRE_ROOT_PASSWORD';
|
|
||||||
GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_PHYRE_ROOT_USERNAME'@'%' WITH GRANT OPTION;
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
MYSQL_SCRIPT
|
|
||||||
|
|
||||||
|
|
||||||
# Create database
|
|
||||||
PHYRE_PANEL_DB_PASSWORD="$(tr -dc a-za-z0-9 </dev/urandom | head -c 32; echo)"
|
|
||||||
PHYRE_PANEL_DB_NAME="phyre$(tr -dc a-za-z0-9 </dev/urandom | head -c 13; echo)"
|
|
||||||
PHYRE_PANEL_DB_USER="phyre$(tr -dc a-za-z0-9 </dev/urandom | head -c 13; echo)"
|
|
||||||
|
|
||||||
mysql -uroot -proot <<MYSQL_SCRIPT
|
|
||||||
CREATE DATABASE $PHYRE_PANEL_DB_NAME;
|
|
||||||
CREATE USER '$PHYRE_PANEL_DB_USER'@'localhost' IDENTIFIED BY '$PHYRE_PANEL_DB_PASSWORD';
|
|
||||||
GRANT ALL PRIVILEGES ON $PHYRE_PANEL_DB_NAME.* TO '$PHYRE_PANEL_DB_USER'@'localhost';
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
MYSQL_SCRIPT
|
|
||||||
|
|
||||||
mysql_secure_installation --use-default
|
|
||||||
|
|
||||||
# Change mysql root password
|
|
||||||
MYSQL_ROOT_PASSWORD="$(tr -dc a-za-z0-9 </dev/urandom | head -c 32; echo)"
|
|
||||||
mysql -uroot -proot <<MYSQL_SCRIPT
|
|
||||||
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by '$MYSQL_ROOT_PASSWORD';
|
|
||||||
FLUSH PRIVILEGES;
|
|
||||||
MYSQL_SCRIPT
|
|
||||||
|
|
||||||
# Save mysql root password
|
|
||||||
echo "$MYSQL_ROOT_PASSWORD" > /root/.mysql_root_password
|
|
||||||
|
|
||||||
# Configure the application
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_ENV "local"
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_URL "127.0.0.1:8443"
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_NAME "PHYRE_PANEL"
|
|
||||||
phyre-php artisan phyre:set-ini-settings DB_DATABASE "$PHYRE_PANEL_DB_NAME"
|
|
||||||
phyre-php artisan phyre:set-ini-settings DB_USERNAME "$PHYRE_PANEL_DB_USER"
|
|
||||||
phyre-php artisan phyre:set-ini-settings DB_PASSWORD "$PHYRE_PANEL_DB_PASSWORD"
|
|
||||||
phyre-php artisan phyre:set-ini-settings DB_CONNECTION "mysql"
|
|
||||||
phyre-php artisan phyre:set-ini-settings MYSQL_ROOT_USERNAME "$MYSQL_PHYRE_ROOT_USERNAME"
|
|
||||||
phyre-php artisan phyre:set-ini-settings MYSQL_ROOT_PASSWORD "$MYSQL_PHYRE_ROOT_PASSWORD"
|
|
||||||
phyre-php artisan phyre:key-generate
|
|
||||||
|
|
||||||
phyre-php artisan migrate
|
|
||||||
phyre-php artisan db:seed
|
|
||||||
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
|
||||||
|
|
||||||
chmod -R o+w /usr/local/phyre/web/storage/
|
|
||||||
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
|
||||||
|
|
||||||
CURRENT_IP=$(hostname -I | awk '{print $1}')
|
|
||||||
|
|
||||||
echo "PhyrePanel downloaded successfully."
|
|
||||||
echo "Please visit http://$CURRENT_IP:8443 to continue installation of the panel."
|
|
|
@ -44,17 +44,6 @@ done
|
||||||
# Start MySQL
|
# Start MySQL
|
||||||
service mysql start
|
service mysql start
|
||||||
|
|
||||||
# Apache modules
|
|
||||||
a2enmod actions
|
|
||||||
a2enmod ssl
|
|
||||||
a2enmod ruid2
|
|
||||||
a2enmod env
|
|
||||||
a2enmod deflate
|
|
||||||
a2enmod expires
|
|
||||||
a2enmod rewrite
|
|
||||||
a2enmod cgi
|
|
||||||
systemctl restart apache2
|
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/PhyreApps/PhyrePanel/main/installers/ubuntu-20.04/greeting.sh
|
wget https://raw.githubusercontent.com/PhyreApps/PhyrePanel/main/installers/ubuntu-20.04/greeting.sh
|
||||||
mv greeting.sh /etc/profile.d/phyre-greeting.sh
|
mv greeting.sh /etc/profile.d/phyre-greeting.sh
|
||||||
|
|
||||||
|
|
|
@ -61,6 +61,8 @@ phyre-php artisan db:seed
|
||||||
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
||||||
|
|
||||||
|
phyre-php artisan phyre:run-repair
|
||||||
|
|
||||||
chmod -R o+w /usr/local/phyre/web/storage/
|
chmod -R o+w /usr/local/phyre/web/storage/
|
||||||
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,9 @@ DEPENDENCIES_LIST=(
|
||||||
"libcurl4-openssl-dev"
|
"libcurl4-openssl-dev"
|
||||||
"libsodium23"
|
"libsodium23"
|
||||||
"libpq5"
|
"libpq5"
|
||||||
|
"apache2"
|
||||||
|
"libapache2-mod-ruid2"
|
||||||
|
"libapache2-mod-php"
|
||||||
"libssl-dev"
|
"libssl-dev"
|
||||||
"zlib1g-dev"
|
"zlib1g-dev"
|
||||||
)
|
)
|
||||||
|
@ -142,6 +145,8 @@ phyre-php artisan db:seed
|
||||||
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
||||||
|
|
||||||
|
phyre-php artisan phyre:run-repair
|
||||||
|
|
||||||
chmod -R o+w /usr/local/phyre/web/storage/
|
chmod -R o+w /usr/local/phyre/web/storage/
|
||||||
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
||||||
|
|
||||||
|
|
|
@ -44,18 +44,6 @@ done
|
||||||
# Start MySQL
|
# Start MySQL
|
||||||
service mysql start
|
service mysql start
|
||||||
|
|
||||||
# Apache modules
|
|
||||||
a2enmod actions
|
|
||||||
a2enmod ssl
|
|
||||||
a2enmod ruid2
|
|
||||||
a2enmod env
|
|
||||||
a2enmod deflate
|
|
||||||
a2enmod expires
|
|
||||||
a2enmod rewrite
|
|
||||||
a2enmod cgi
|
|
||||||
|
|
||||||
systemctl restart apache2
|
|
||||||
|
|
||||||
wget https://raw.githubusercontent.com/PhyreApps/PhyrePanel/main/installers/ubuntu-22.04/greeting.sh
|
wget https://raw.githubusercontent.com/PhyreApps/PhyrePanel/main/installers/ubuntu-22.04/greeting.sh
|
||||||
mv greeting.sh /etc/profile.d/phyre-greeting.sh
|
mv greeting.sh /etc/profile.d/phyre-greeting.sh
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,9 @@ DEPENDENCIES_LIST=(
|
||||||
"libcurl4-openssl-dev"
|
"libcurl4-openssl-dev"
|
||||||
"libsodium23"
|
"libsodium23"
|
||||||
"libpq5"
|
"libpq5"
|
||||||
|
"apache2"
|
||||||
|
"libapache2-mod-ruid2"
|
||||||
|
"libapache2-mod-php"
|
||||||
"libssl-dev"
|
"libssl-dev"
|
||||||
"zlib1g-dev"
|
"zlib1g-dev"
|
||||||
)
|
)
|
||||||
|
@ -144,6 +147,8 @@ phyre-php artisan db:seed
|
||||||
|
|
||||||
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
phyre-php artisan phyre:set-ini-settings APP_ENV "production"
|
||||||
|
|
||||||
|
phyre-php artisan phyre:run-repair
|
||||||
|
|
||||||
chmod -R o+w /usr/local/phyre/web/storage/
|
chmod -R o+w /usr/local/phyre/web/storage/
|
||||||
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue