mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
v-edit-php tuning
This commit is contained in:
parent
6514ea1d38
commit
9d65824606
2 changed files with 15 additions and 6 deletions
|
@ -69,13 +69,18 @@ else
|
||||||
nano "$config_file"
|
nano "$config_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Restarting PHP-FPM service for PHP version $fpm_ver..."
|
echo "Restarting PHP-FPM service for PHP version ${fpm_ver}"
|
||||||
systemctl restart php${fpm_ver}-fpm
|
systemctl restart php${fpm_ver}-fpm
|
||||||
echo "The PHP-FPM service for PHP version 7.0 has been restarted successfully."
|
if [ $? -ne 0 ]; then
|
||||||
|
systemctl status php${fpm_ver}-fpm
|
||||||
|
check_result $E_RESTART "ERROR: php${fpm_ver}-fpm restart failed - please re-run the command and fix the problem !!!"
|
||||||
|
else
|
||||||
|
echo "The PHP-FPM service for PHP version ${fpm_ver} has been restarted successfully."
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Vesta #
|
# Vesta #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
exit 1;
|
exit 0;
|
||||||
|
|
|
@ -52,11 +52,15 @@ $editor_cmd "$php_ini_path"
|
||||||
# Restart the PHP-FPM service for the selected version
|
# Restart the PHP-FPM service for the selected version
|
||||||
echo "Restarting the PHP-FPM service for PHP version $php_version..."
|
echo "Restarting the PHP-FPM service for PHP version $php_version..."
|
||||||
systemctl restart php${php_version}-fpm
|
systemctl restart php${php_version}-fpm
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
echo "The PHP-FPM service for PHP version $php_version has been restarted successfully."
|
systemctl status php${php_version}-fpm
|
||||||
|
check_result $E_RESTART "ERROR: php${php_version}-fpm restart failed - please re-run the command and fix the problem !!!"
|
||||||
|
else
|
||||||
|
echo "The PHP-FPM service for PHP version ${php_version} has been restarted successfully."
|
||||||
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Exit #
|
# Exit #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
exit
|
exit 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue