update
This commit is contained in:
parent
2e5c936659
commit
cadce8d19d
5 changed files with 72 additions and 3 deletions
2
.github/workflows/compile-ngix-package.yml
vendored
2
.github/workflows/compile-ngix-package.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Compile PhyrePanel Packages
|
||||
name: Compile PhyrePanel NGINX Packages
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
41
.github/workflows/compile-php-package.yml
vendored
Normal file
41
.github/workflows/compile-php-package.yml
vendored
Normal file
|
@ -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
compilators/debian/php/php-compile.sh
Normal file
28
compilators/debian/php/php-compile.sh
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue