renamed vhost-php-fpm-socket-helper vpanel-php-fpm-socket-helper
This commit is contained in:
parent
feb6276e9e
commit
1d71c4f242
10
install.sh
10
install.sh
|
@ -3,10 +3,10 @@ apt-get install -y sudo
|
||||||
useradd --no-create-home --home-dir /srv/www/html/panel --shell /usr/sbin/nologin --system --user-group vpanel
|
useradd --no-create-home --home-dir /srv/www/html/panel --shell /usr/sbin/nologin --system --user-group vpanel
|
||||||
cp bin/vpanel-verify-access.sh /usr/local/bin/
|
cp bin/vpanel-verify-access.sh /usr/local/bin/
|
||||||
chmod 755 /usr/local/bin/vpanel-verify-access.sh
|
chmod 755 /usr/local/bin/vpanel-verify-access.sh
|
||||||
cp sbin/vhost-php-fpm-socket-helper.sh /usr/local/sbin
|
cp sbin/vpanel-php-fpm-socket-helper.sh /usr/local/sbin
|
||||||
chmod 755 /usr/local/sbin/vhost-php-fpm-socket-helper.sh
|
chmod 755 /usr/local/sbin/vpanel-php-fpm-socket-helper.sh
|
||||||
cp systemd/vhost-php-fpm-socket-helper.service /usr/local/lib/systemd/system/
|
cp systemd/vpanel-php-fpm-socket-helper.service /usr/local/lib/systemd/system/
|
||||||
chmod 644 /usr/local/lib/systemd/system/vhost-php-fpm-socket-helper.service
|
chmod 644 /usr/local/lib/systemd/system/vpanel-php-fpm-socket-helper.service
|
||||||
# set PHP version
|
# set PHP version
|
||||||
PHP_MAJOR_VERSION=`php -r "echo PHP_MAJOR_VERSION;"`
|
PHP_MAJOR_VERSION=`php -r "echo PHP_MAJOR_VERSION;"`
|
||||||
PHP_MINOR_VERSION=`php -r "echo PHP_MINOR_VERSION;"`
|
PHP_MINOR_VERSION=`php -r "echo PHP_MINOR_VERSION;"`
|
||||||
|
@ -23,7 +23,7 @@ update-alternatives --install /run/php/php-fpm-vpanel.sock php-fpm-vpanel.sock /
|
||||||
a2enconf vpanel
|
a2enconf vpanel
|
||||||
service php$phpVersion-fpm restart
|
service php$phpVersion-fpm restart
|
||||||
service apache2 restart
|
service apache2 restart
|
||||||
systemctl enable vhost-php-fpm-socket-helper.service
|
systemctl enable vpanel-php-fpm-socket-helper.service
|
||||||
cp -a panel /srv/www/html/
|
cp -a panel /srv/www/html/
|
||||||
mkdir /srv/www/html/panel/tmp
|
mkdir /srv/www/html/panel/tmp
|
||||||
git clone https://github.com/bcosca/fatfree-core.git /srv/www/html/panel/f3
|
git clone https://github.com/bcosca/fatfree-core.git /srv/www/html/panel/f3
|
||||||
|
|
|
@ -6,7 +6,7 @@ Type=oneshot
|
||||||
# sleep to give time for php-fpm to start first
|
# sleep to give time for php-fpm to start first
|
||||||
# testing showed 2 seconds enough, using 5 for exra buffer
|
# testing showed 2 seconds enough, using 5 for exra buffer
|
||||||
ExecStartPre=sleep 5
|
ExecStartPre=sleep 5
|
||||||
ExecStart=/usr/local/sbin/vhost-php-fpm-socket-helper.sh
|
ExecStart=/usr/local/sbin/vpanel-php-fpm-socket-helper.sh
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user