mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
Yakkety Yak configs
This commit is contained in:
parent
fa4b66f8c7
commit
8969cad0c8
128 changed files with 6699 additions and 0 deletions
16
install/ubuntu/16.10/templates/web/apache2/phpcgi.sh
Executable file
16
install/ubuntu/16.10/templates/web/apache2/phpcgi.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
# Adding php wrapper
|
||||
user="$1"
|
||||
domain="$2"
|
||||
ip="$3"
|
||||
home_dir="$4"
|
||||
docroot="$5"
|
||||
|
||||
wrapper_script='#!/usr/bin/php-cgi -cphp5-cgi.ini'
|
||||
wrapper_file="$home_dir/$user/web/$domain/cgi-bin/php"
|
||||
|
||||
echo "$wrapper_script" > $wrapper_file
|
||||
chown $user:$user $wrapper_file
|
||||
chmod -f 751 $wrapper_file
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue