mirror of
https://github.com/myvesta/vesta.git
synced 2024-11-26 23:40:21 -08:00
23 lines
409 B
Bash
Executable File
23 lines
409 B
Bash
Executable File
#!/bin/bash
|
|
# Adding php wrapper
|
|
user="$1"
|
|
domain="$2"
|
|
ip="$3"
|
|
home_dir="$4"
|
|
docroot="$5"
|
|
|
|
wrapper_script="#!/bin/sh
|
|
PHPRC=/usr/local/lib
|
|
export PHPRC
|
|
export PHP_FCGI_MAX_REQUESTS=1000
|
|
export PHP_FCGI_CHILDREN=20
|
|
exec /usr/bin/php-cgi
|
|
"
|
|
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/fcgi-starter"
|
|
|
|
echo "$wrapper_script" > $wrapper_file
|
|
chown $user:$user $wrapper_file
|
|
chmod -f 751 $wrapper_file
|
|
|
|
exit 0
|