update
This commit is contained in:
parent
e3ed79c9b0
commit
ae940da7d4
18 changed files with 76 additions and 76 deletions
2
.github/workflows/compile-ngix-package.yml
vendored
2
.github/workflows/compile-ngix-package.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Compile AlphaXPanel Packages
|
||||
name: Compile PhyrePanel Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
6
.github/workflows/php.yml_
vendored
6
.github/workflows/php.yml_
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Test AlphaXPanel
|
||||
name: Test PhyrePanel
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -17,8 +17,8 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install AlphaXPanel
|
||||
- name: Install PhyrePanel
|
||||
run: |
|
||||
wget https://raw.githubusercontent.com/CloudVisionApps/AlphaXPanel/main/installers/install.sh
|
||||
wget https://raw.githubusercontent.com/CloudVisionApps/PhyrePanel/main/installers/install.sh
|
||||
chmod +x install.sh
|
||||
sudo ./install.sh
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# AlphaXPanel
|
||||
# PhyrePanel
|
||||
|
||||
## Introduction
|
||||
AlphaXPanel is a web-based panel for AlphaX. It is written in PHP and uses the Laravel framework.
|
||||
PhyrePanel is a web-based panel for linux. It is written in PHP and uses the Laravel framework.
|
||||
|
||||
## Installation
|
||||
To install AlphaXPanel, you need to run this commands:
|
||||
To install PhyrePanel, you need to run this commands:
|
||||
```
|
||||
wget https://raw.githubusercontent.com/CloudVisionApps/AlphaXPanel/main/installers/install.sh && chmod +x install.sh && ./install.sh
|
||||
wget https://raw.githubusercontent.com/CloudVisionApps/PhyrePanel/main/installers/install.sh && chmod +x install.sh && ./install.sh
|
||||
```
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source: alphax-nginx
|
||||
Package: alphax-nginx
|
||||
Source: phyre-nginx
|
||||
Package: phyre-nginx
|
||||
Priority: optional
|
||||
Version: 1.22.0
|
||||
Section: web
|
||||
|
|
|
@ -4,7 +4,7 @@ wget http://nginx.org/download/nginx-1.20.0.tar.gz
|
|||
tar -zxvf nginx-1.20.0.tar.gz
|
||||
cd nginx-1.20.0
|
||||
|
||||
./configure --prefix=/usr/local/alphax/nginx
|
||||
./configure --prefix=/usr/local/phyre/nginx
|
||||
./configure
|
||||
--prefix=/var/www/html
|
||||
--sbin-path=/usr/sbin/nginx
|
||||
|
|
|
@ -12,23 +12,23 @@ tar -zxvf nginx-1.20.0.tar.gz
|
|||
cd nginx-1.20.0
|
||||
|
||||
# Configure nginx
|
||||
sudo ./configure --prefix=/usr/local/alphax/nginx
|
||||
sudo ./configure --prefix=/usr/local/phyre/nginx
|
||||
sudo make
|
||||
sudo make install
|
||||
|
||||
sudo mkdir $MAIN_DIR/alphax-nginx-1.20.0
|
||||
PACKAGE_MAIN_DIR=$MAIN_DIR/alphax-nginx-1.20.0
|
||||
sudo mkdir $MAIN_DIR/phyre-nginx-1.20.0
|
||||
PACKAGE_MAIN_DIR=$MAIN_DIR/phyre-nginx-1.20.0
|
||||
|
||||
# Create debian package directories
|
||||
sudo mkdir -p $PACKAGE_MAIN_DIR/DEBIAN
|
||||
sudo mkdir -p $PACKAGE_MAIN_DIR/usr/local/alphax
|
||||
sudo mkdir -p $PACKAGE_MAIN_DIR/usr/local/phyre
|
||||
sudo mkdir -p $PACKAGE_MAIN_DIR/etc/init.d
|
||||
|
||||
# Copy nginx compiled files
|
||||
sudo mv /usr/local/alphax/nginx $PACKAGE_MAIN_DIR/usr/local/alphax
|
||||
sudo mv /usr/local/phyre/nginx $PACKAGE_MAIN_DIR/usr/local/phyre
|
||||
|
||||
# Rename nginx to alpha-nginx
|
||||
sudo mv $PACKAGE_MAIN_DIR/usr/local/alphax/nginx/sbin/nginx $PACKAGE_MAIN_DIR/usr/local/alphax/nginx/sbin/alphax-nginx
|
||||
sudo mv $PACKAGE_MAIN_DIR/usr/local/phyre/nginx/sbin/nginx $PACKAGE_MAIN_DIR/usr/local/phyre/nginx/sbin/phyre-nginx
|
||||
|
||||
# Copy debian package META file
|
||||
sudo cp $MAIN_DIR/control $PACKAGE_MAIN_DIR/DEBIAN
|
||||
|
@ -40,14 +40,14 @@ sudo chmod +x $PACKAGE_MAIN_DIR/DEBIAN/postinst
|
|||
sudo chmod +x $PACKAGE_MAIN_DIR/DEBIAN/postrm
|
||||
|
||||
# Copy ALPHAX series files
|
||||
sudo cp $MAIN_DIR/alphax $PACKAGE_MAIN_DIR/etc/init.d/alphax
|
||||
sudo chmod +x $PACKAGE_MAIN_DIR/etc/init.d/alphax
|
||||
sudo cp $MAIN_DIR/phyre $PACKAGE_MAIN_DIR/etc/init.d/phyre
|
||||
sudo chmod +x $PACKAGE_MAIN_DIR/etc/init.d/phyre
|
||||
|
||||
# Make debian package
|
||||
sudo dpkg-deb --build $PACKAGE_MAIN_DIR
|
||||
sudo dpkg --info $MAIN_DIR/alphax-nginx-1.20.0.deb
|
||||
sudo dpkg --contents $MAIN_DIR/alphax-nginx-1.20.0.deb
|
||||
sudo dpkg --info $MAIN_DIR/phyre-nginx-1.20.0.deb
|
||||
sudo dpkg --contents $MAIN_DIR/phyre-nginx-1.20.0.deb
|
||||
|
||||
# Move debian package to dist folder
|
||||
sudo mkdir -p $MAIN_DIR/dist
|
||||
sudo mv $MAIN_DIR/alphax-nginx-1.20.0.deb $MAIN_DIR/dist
|
||||
sudo mv $MAIN_DIR/phyre-nginx-1.20.0.deb $MAIN_DIR/dist
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
|
||||
# Create nginx service
|
||||
cat > /etc/systemd/system/alphax-nginx.service << EOF
|
||||
cat > /etc/systemd/system/phyre-nginx.service << EOF
|
||||
[Unit]
|
||||
Description=alphax-nginx
|
||||
Description=phyre-nginx
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/local/alphax/nginx/sbin/nginx
|
||||
ExecReload=/usr/local/alphax/nginx/sbin/nginx -s reload
|
||||
ExecStop=/usr/local/alphax/nginx/sbin/nginx -s quit
|
||||
ExecStart=/usr/local/phyre/nginx/sbin/nginx
|
||||
ExecReload=/usr/local/phyre/nginx/sbin/nginx -s reload
|
||||
ExecStop=/usr/local/phyre/nginx/sbin/nginx -s quit
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
|
@ -18,5 +18,5 @@ EOF
|
|||
|
||||
# Start nginx service
|
||||
systemctl daemon-reload
|
||||
systemctl enable alphax-nginx.service
|
||||
systemctl start alphax-nginx.service
|
||||
systemctl enable phyre-nginx.service
|
||||
systemctl start phyre-nginx.service
|
||||
|
|
|
@ -1,22 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
### BEGIN INIT INFO
|
||||
# Provides: alphax
|
||||
# Provides: phyre
|
||||
# internal nginx
|
||||
# Required-Start: $local_fs $remote_fs $network $syslog
|
||||
# Required-Stop: $local_fs $remote_fs $network $syslog
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: starts the alphax control panel
|
||||
# Short-Description: starts the phyre control panel
|
||||
# Description: starts nginx using start-stop-daemon
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||
NGINX_DAEMON=/usr/local/alphax/nginx/sbin/alphax-nginx
|
||||
NGINX_NAME=alphax-nginx
|
||||
NGINX_DESC=alphax-nginx
|
||||
NGINX_PID=/run/alphax-nginx.pid
|
||||
NGINX_CONF=/usr/local/alphax/nginx/conf/nginx.conf
|
||||
NGINX_DAEMON=/usr/local/phyre/nginx/sbin/phyre-nginx
|
||||
NGINX_NAME=phyre-nginx
|
||||
NGINX_DESC=phyre-nginx
|
||||
NGINX_PID=/run/phyre-nginx.pid
|
||||
NGINX_CONF=/usr/local/phyre/nginx/conf/nginx.conf
|
||||
|
||||
set -e
|
||||
|
||||
|
@ -52,11 +52,11 @@ case "$1" in
|
|||
;;
|
||||
|
||||
status)
|
||||
status_of_proc -p $NGINX_PID "$NGINX_DAEMON" alphax-nginx
|
||||
status_of_proc -p $NGINX_PID "$NGINX_DAEMON" phyre-nginx
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: alphax {start|stop|restart|status}" >&2
|
||||
echo "Usage: phyre {start|stop|restart|status}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
|
@ -7,5 +7,5 @@ if [ "$1" != "configure" ]; then
|
|||
fi
|
||||
|
||||
# Touch and set permisions on default log files on installation
|
||||
update-rc.d alphax defaults > /dev/null
|
||||
invoke-rc.d alphax start || true
|
||||
update-rc.d phyre defaults > /dev/null
|
||||
invoke-rc.d phyre start || true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
update-rc.d alphax remove > /dev/null 2>&1
|
||||
update-rc.d phyre remove > /dev/null 2>&1
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
user alphaxweb;
|
||||
user phyreweb;
|
||||
|
||||
server {
|
||||
listen 3036;
|
||||
listen [::]:3036;
|
||||
server_name _;
|
||||
root /usr/local/alpha-x-panel/web/public;
|
||||
root /usr/local/phyre/web/public;
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#!/bin/bash
|
||||
MAIN_DIR="/alpha-x-panel/raw-repo"
|
||||
MAIN_DIR="/phyre/raw-repo"
|
||||
|
||||
apt-get update && apt-get install ca-certificates
|
||||
|
||||
apt install -y git
|
||||
cd /
|
||||
mkdir -p /alpha-x-panel/raw-repo
|
||||
git clone https://github.com/CloudVisionApps/AlphaXPanel.git /alpha-x-panel/raw-repo
|
||||
mkdir -p /phyre/raw-repo
|
||||
git clone https://github.com/CloudVisionApps/PhyrePanel.git /phyre/raw-repo
|
||||
|
||||
HELPERS_DIR=$MAIN_DIR"/shell/helpers/ubuntu"
|
||||
. $HELPERS_DIR"/common.sh"
|
||||
|
@ -93,23 +93,23 @@ rm -rf /var/www/html/*
|
|||
cp $MAIN_DIR/samples/sample-index.html /var/www/html/index.html
|
||||
|
||||
# Add NGINX config
|
||||
cp $MAIN_DIR/configurations/ubuntu/nginx/panel.conf /etc/nginx/sites-available/alphaxpanel.conf
|
||||
cp $MAIN_DIR/configurations/ubuntu/nginx/panel.conf /etc/nginx/sites-available/PhyrePanel.conf
|
||||
|
||||
# Create a symbolic link
|
||||
if [ -f /etc/nginx/sites-enabled/alphaxpanel.conf ]; then
|
||||
rm -rf /etc/nginx/sites-enabled/alphaxpanel.conf
|
||||
if [ -f /etc/nginx/sites-enabled/PhyrePanel.conf ]; then
|
||||
rm -rf /etc/nginx/sites-enabled/PhyrePanel.conf
|
||||
fi
|
||||
ln -s /etc/nginx/sites-available/alphaxpanel.conf /etc/nginx/sites-enabled/alphaxpanel.conf
|
||||
ln -s /etc/nginx/sites-available/PhyrePanel.conf /etc/nginx/sites-enabled/PhyrePanel.conf
|
||||
|
||||
# Restart NGINX
|
||||
systemctl restart nginx
|
||||
|
||||
mkdir -p /usr/local/alpha-x-panel/web
|
||||
cp -r $MAIN_DIR/web/* /usr/local/alpha-x-panel/web
|
||||
cp $MAIN_DIR/web/.env.example /usr/local/alpha-x-panel/web/.env.example
|
||||
mkdir -p /usr/local/phyre/web
|
||||
cp -r $MAIN_DIR/web/* /usr/local/phyre/web
|
||||
cp $MAIN_DIR/web/.env.example /usr/local/phyre/web/.env.example
|
||||
|
||||
# Install Composer
|
||||
cd /usr/local/alpha-x-panel/web
|
||||
cd /usr/local/phyre/web
|
||||
|
||||
php8.2 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
php8.2 -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||
|
@ -119,15 +119,15 @@ php8.2 -r "unlink('composer-setup.php');"
|
|||
COMPOSER_ALLOW_SUPERUSER=1 php8.2 composer.phar install --no-dev --optimize-autoloader --no-interaction
|
||||
|
||||
# Create database
|
||||
PANEL_DB_NAME="alphaxpanel_db"
|
||||
PANEL_DB_USER="alphaxpanel_user"
|
||||
PANEL_DB_PASSWORD="alphaxpanel_password"
|
||||
PANEL_DB_NAME="PhyrePanel_db"
|
||||
PANEL_DB_USER="PhyrePanel_user"
|
||||
PANEL_DB_PASSWORD="PhyrePanel_password"
|
||||
create_mysql_db_and_user $PANEL_DB_NAME $PANEL_DB_USER $PANEL_DB_PASSWORD
|
||||
|
||||
# Configure the application
|
||||
cp .env.example .env
|
||||
|
||||
sed -i "s/^APP_NAME=.*/APP_NAME=AlphaXPanel/" .env
|
||||
sed -i "s/^APP_NAME=.*/APP_NAME=PhyrePanel/" .env
|
||||
sed -i "s/^DB_DATABASE=.*/DB_DATABASE=$PANEL_DB_NAME/" .env
|
||||
sed -i "s/^DB_USERNAME=.*/DB_USERNAME=$PANEL_DB_USER/" .env
|
||||
sed -i "s/^DB_PASSWORD=.*/DB_PASSWORD=$PANEL_DB_PASSWORD/" .env
|
||||
|
@ -137,7 +137,7 @@ php8.2 artisan key:generate
|
|||
php8.2 artisan migrate
|
||||
php8.2 artisan db:seed
|
||||
|
||||
sudo chmod -R o+w /usr/local/alpha-x-panel/web/storage/
|
||||
sudo chmod -R o+w /usr/local/alpha-x-panel/web/bootstrap/cache/
|
||||
sudo chmod -R o+w /usr/local/phyre/web/storage/
|
||||
sudo chmod -R o+w /usr/local/phyre/web/bootstrap/cache/
|
||||
|
||||
#systemctl status php8.2-fpm.service
|
||||
|
|
|
@ -37,11 +37,11 @@ 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
|
||||
|
||||
INSTALLER_URL="https://raw.githubusercontent.com/CloudVisionApps/AlphaXPanel/main/installers/${DISTRO_NAME}/${DISTRO_VERSION}/install.sh"
|
||||
INSTALLER_URL="https://raw.githubusercontent.com/CloudVisionApps/PhyrePanel/main/installers/${DISTRO_NAME}/${DISTRO_VERSION}/install.sh"
|
||||
|
||||
INSTALLER_CONTENT=$(wget ${INSTALLER_URL} 2>&1)
|
||||
if [[ "$INSTALLER_CONTENT" =~ 404\ Not\ Found ]]; then
|
||||
echo "AlphaXPanel not supporting this version of distribution"
|
||||
echo "PhyrePanel not supporting this version of distribution"
|
||||
echo "Distro: ${DISTRO_NAME} Version: ${DISTRO_VERSION}"
|
||||
echo "Exiting..."
|
||||
exit 1
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<div class="flex flex-col bg-gray-50 justify-center h-screen text-center">
|
||||
<div>
|
||||
<h1 class="text-3xl font-bold">
|
||||
Welcome to AlphaXPanel!
|
||||
Welcome to PhyrePanel!
|
||||
</h1>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
@ -16,7 +16,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'name' => 'AlphaX - Hosting Panel',
|
||||
'name' => 'PhyrePanel - Web Hosting Control Panel',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div class="w-[36rem]">
|
||||
<div>
|
||||
<h1 class="text-3xl font-bold">
|
||||
Welcome to AlphaXPanel!
|
||||
Welcome to PhyrePanel!
|
||||
</h1>
|
||||
</div>
|
||||
<div>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<div>
|
||||
<h2 class="text-2xl">Let's make installation!</h2>
|
||||
<p>
|
||||
Please fill in the form below to install AlphaXPanel.
|
||||
Please fill in the form below to install PhyrePanel.
|
||||
</p>
|
||||
</div>
|
||||
<div class="m-auto w-1/2 my-6">
|
||||
|
@ -59,10 +59,10 @@
|
|||
|
||||
<div class="mt-6 text-sm">
|
||||
<p>
|
||||
<a href="https://alphaxpanel.com" class="text-blue-500 hover:text-blue-700">AlphaXPanel</a> is a free and open-source web hosting control panel written in PHP.
|
||||
<a href="https://PhyrePanel.com" class="text-blue-500 hover:text-blue-700">PhyrePanel</a> is a free and open-source web hosting control panel written in PHP.
|
||||
</p>
|
||||
<p>
|
||||
AlphaXPanel is designed to work with either Apache or Nginx as a web server running on Ubuntu 20.04 LTS.
|
||||
PhyrePanel is designed to work with either Apache or Nginx as a web server running on Ubuntu 20.04 LTS.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Defaults:root !requiretty
|
||||
|
||||
# sudo is limited to alphaxpanel scripts
|
||||
alphaxweb ALL=NOPASSWD:/usr/local/alphaxpanel/bin/*
|
||||
# sudo is limited to PhyrePanel scripts
|
||||
phyreweb ALL=NOPASSWD:/usr/local/PhyrePanel/bin/*
|
||||
|
|
12
web/user.sh
12
web/user.sh
|
@ -2,11 +2,11 @@
|
|||
random_password="wfawfafwafwafaw"
|
||||
email="wfafwafwa@abv.bg"
|
||||
|
||||
# Create the new alphaxweb user
|
||||
#/usr/sbin/useradd "alphaxweb" -c "$email" --no-create-home
|
||||
# do not allow login into alphaxweb user
|
||||
echo alphaxweb:$random_password | sudo chpasswd -e
|
||||
# Create the new phyreweb user
|
||||
#/usr/sbin/useradd "phyreweb" -c "$email" --no-create-home
|
||||
# do not allow login into phyreweb user
|
||||
echo phyreweb:$random_password | sudo chpasswd -e
|
||||
|
||||
mkdir -p /etc/sudoers.d
|
||||
cp -f /usr/local/alpha-x-panel/web/sudo/alphaxweb /etc/sudoers.d/
|
||||
chmod 440 /etc/sudoers.d/alphaxweb
|
||||
cp -f /usr/local/phyre/web/sudo/phyreweb /etc/sudoers.d/
|
||||
chmod 440 /etc/sudoers.d/phyreweb
|
||||
|
|
Loading…
Reference in a new issue