@@ -28,19 +28,20 @@ php_fpm="/etc/init.d/php$version-fpm"
2828
2929# Verify php version format
3030if [[ ! $version =~ ^[0-9]\. [0-9]+ ]]; then
31- echo " The php version format is invalid, it should look like [0-9].[0-9]..."
31+ echo " The specified PHP version format is invalid, it should look like [0-9].[0-9]."
32+ echo " Example: 7.0, 7.4"
3233 exit
3334fi
3435
3536# Check if php version already exists
3637if [ -f " $php_fpm " ] && [ -f " $HESTIA /data/templates/web/php-fpm/PHP-${version/ \. / _} .tpl" ]; then
37- echo " Version already installed.. ."
38+ echo " ERROR: Specified PHP version is already installed."
3839 exit
3940fi
4041
4142# Check if php version is supported
4243if [ ! -f " $HESTIA_INSTALL_DIR /multiphp/$WEB_SYSTEM /PHP-${version// .} .sh" ]; then
43- echo " Version is currently not supported or does not exist.. ."
44+ echo " ERROR: Specified PHP version is not supported or does not exist."
4445 exit
4546fi
4647
@@ -77,7 +78,7 @@ apt-get -y -qq -o Dpkg::Options::="--force-confold" install $mph > /dev/null 2>&
7778BACK_PID=$!
7879
7980# Check if package installation is done, print a spinner
80- echo " Install PHP-$version , please wait..."
81+ echo " Installing PHP-$version , please wait..."
8182spinner=" /-\|"
8283spin_i=1
8384while kill -0 $BACK_PID > /dev/null 2>&1 ; do
9091
9192# Check if installation was sucessfully
9293if [ ! -f " $php_fpm " ]; then
93- echo " Installation failed, please run the following command manualy for debuging :"
94+ echo " ERROR: Installation failed, please run the following command manually for debugging :"
9495 echo " apt-get install $mph "
9596fi
9697
0 commit comments