Fixed non starting services
This commit is contained in:
@@ -51,4 +51,5 @@ curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/to
|
|||||||
# custom Welcome page
|
# custom Welcome page
|
||||||
echo "<html><head></head><body>$webserv is functioning normally</body></html>" > /var/www/html/index.html
|
echo "<html><head></head><body>$webserv is functioning normally</body></html>" > /var/www/html/index.html
|
||||||
|
|
||||||
systemctl start apache2 > $OUTPUT 2>&1
|
systemctl start apache2 > $OUTPUT 2>&1
|
||||||
|
systemctl enable apache2 > $OUTPUT 2>&1
|
||||||
@@ -43,4 +43,5 @@ curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/Scripts/to
|
|||||||
# custom Welcome page
|
# custom Welcome page
|
||||||
echo "<html><head></head><body>$webserv is functioning normally</body></html>" > /usr/share/nginx/html/index.html
|
echo "<html><head></head><body>$webserv is functioning normally</body></html>" > /usr/share/nginx/html/index.html
|
||||||
|
|
||||||
systemctl start nginx
|
systemctl start nginx > $OUTPUT 2>&1
|
||||||
|
systemctl enable nginx > $OUTPUT 2>&1
|
||||||
@@ -28,4 +28,5 @@ sed -i -e 's/DOMAINname/'$domain'/g' /etc/nginx/sites-available/"$sitename"_ssl
|
|||||||
# custom Welcome page
|
# custom Welcome page
|
||||||
echo "<html><head></head><body>$webserv is functioning normally</body></html>" > /usr/share/nginx/html/index.html
|
echo "<html><head></head><body>$webserv is functioning normally</body></html>" > /usr/share/nginx/html/index.html
|
||||||
|
|
||||||
systemctl start nginx
|
systemctl start nginx > $OUTPUT 2>&1
|
||||||
|
systemctl enable nginx > $OUTPUT 2>&1
|
||||||
@@ -14,4 +14,5 @@ sed -i 's/; max_input_vars = 1000/max_input_vars = 10000/g' /etc/php/"$phpver"/f
|
|||||||
sed -i 's/upload_max_filesize = 2/upload_max_filesize = 128/g' /etc/php/"$phpver"/fpm/php.ini
|
sed -i 's/upload_max_filesize = 2/upload_max_filesize = 128/g' /etc/php/"$phpver"/fpm/php.ini
|
||||||
sed -i 's/post_max_size = 8/post_max_size = 64/g' /etc/php/"$phpver"/fpm/php.ini
|
sed -i 's/post_max_size = 8/post_max_size = 64/g' /etc/php/"$phpver"/fpm/php.ini
|
||||||
|
|
||||||
systemctl start php${phpver}-fpm
|
systemctl start php${phpver}-fpm
|
||||||
|
systemctl enable php${phpver}-fpm
|
||||||
Reference in New Issue
Block a user