Bozhidar Slaveykov 1 年之前
父節點
當前提交
cadce8d19d

+ 1 - 1
.github/workflows/compile-ngix-package.yml

@@ -1,4 +1,4 @@
-name: Compile PhyrePanel Packages
+name: Compile PhyrePanel NGINX Packages
 
 on:
   push:

+ 41 - 0
.github/workflows/compile-php-package.yml

@@ -0,0 +1,41 @@
+name: Compile PhyrePanel PHP Packages
+
+on:
+  push:
+    branches: [ "main" ]
+  pull_request:
+    branches: [ "main" ]
+
+permissions:
+  contents: read
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+
+    permissions:
+      contents: write
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Compile PHP
+      run: |
+        cd compilators/debian/php
+        chmod 775 ./php-compile.sh
+        ./php-compile.sh
+        ls
+
+    - uses: stefanzweifel/git-auto-commit-action@v5
+      with:
+        commit_user_name: Cloud Vision Bot
+        commit_user_email: bobicloudvision@gmail.com
+        commit_author: Cloud Vision Bot <bobicloudvision@gmail.com>
+        commit_message: Upload compiled packages [BOT]
+        repository: ./compilators/debian/php/dist
+        #skip_checkout: true
+        #push_options: '--force'
+        #skip_fetch: true
+        #create_branch: true
+        # status_options: '--untracked-files=no'

+ 28 - 0
compilators/debian/php/php-compile.sh

@@ -0,0 +1,28 @@
+#!/bin/bash
+
+MAIN_DIR=$(pwd)
+
+# Install dependencies
+sudo apt-get update -y
+sudo apt-get install libzip-dev libonig-dev openssl zip unzip git ibgmp-dev gmp-dev libcurl4-openssl-dev libsqlite3-dev libxml2-dev pkg-config build-essential dpkg-dev debhelper autotools-dev libgeoip-dev libssl-dev libpcre3-dev zlib1g-dev -y
+
+# Download PHP source
+wget http://de2.php.net/distributions/php-8.2.0.tar.gz
+tar -zxvf php-8.2.0.tar.gz
+cd php-8.2.0
+
+# Configure PHP
+
+sudo ./configure --prefix=/usr/local/phyre/php \
+        --with-libdir=lib/$(arch)-linux-gnu \
+				--enable-fpm --with-fpm-user=admin --with-fpm-group=admin \
+				--with-openssl \
+				--with-mysqli \
+				--with-gettext \
+				--with-curl \
+				--with-zip \
+				--enable-mbstring
+
+# Compile PHP
+sudo make
+sudo make install

+ 0 - 0
web/sudo/alphaxweb → web/sudo/phyreweb


+ 2 - 2
web/user.sh

@@ -1,6 +1,6 @@
 # Generate a random password
-random_password="wfawfafwafwafaw"
-email="wfafwafwa@abv.bg"
+random_password="$(openssl rand -base64 32)"
+email="email1@phyrepanel.com"
 
 # Create the new phyreweb user
 /usr/sbin/useradd "phyreweb" -c "$email" --no-create-home