This commit is contained in:
parent
e313dad836
commit
dea7a6647c
@ -47,13 +47,11 @@ sed -i "s/client_max_body_size 500M;/client_max_body_size ${MAX_UPLOAD_SIZE};/"
|
|||||||
|
|
||||||
# Function to handle signal forwarding and service startup
|
# Function to handle signal forwarding and service startup
|
||||||
function start_services() {
|
function start_services() {
|
||||||
echo "Starting PHP-FPM and Nginx..."
|
echo "Starting PHP-FPM..."
|
||||||
php-fpm83 --nodaemonize &
|
php-fpm83 --nodaemonize && chmod 777 /run/php/php.sock &
|
||||||
PHP_FPM_PID=$!
|
PHP_FPM_PID=$!
|
||||||
|
|
||||||
# Fix permissions
|
echo "Starting Nginx..."
|
||||||
chmod 777 /run/php/php.sock
|
|
||||||
|
|
||||||
nginx -g 'daemon off;' &
|
nginx -g 'daemon off;' &
|
||||||
NGINX_PID=$!
|
NGINX_PID=$!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user