demande si on créé la page info.php
This commit is contained in:
@@ -113,11 +113,18 @@ fi
|
|||||||
|
|
||||||
# Test de la configuration Apache
|
# Test de la configuration Apache
|
||||||
if systemctl is-active --quiet apache2; then
|
if systemctl is-active --quiet apache2; then
|
||||||
echo -e "${YELLOW}Vérification du support de PHP par Apache...${RESET}"
|
read -rp "Voulez-vous tester le support de PHP par Apache ? (o/n) : " test_php
|
||||||
echo "<?php phpinfo(); ?>" > /var/www/html/info.php
|
if [[ "$test_php" =~ ^[oOyY]$ ]]; then
|
||||||
chown www-data:www-data /var/www/html/info.php
|
echo -e "${YELLOW}Vérification du support de PHP par Apache...${RESET}"
|
||||||
chmod 644 /var/www/html/info.php
|
echo "<?php phpinfo(); ?>" > /var/www/html/info.php
|
||||||
echo -e "${GREEN}Vous pouvez tester PHP en accédant à : http://<IP_SERVEUR>/info.php${RESET}"
|
chown www-data:www-data /var/www/html/info.php
|
||||||
|
chmod 644 /var/www/html/info.php
|
||||||
|
echo -e "${GREEN}Vous pouvez tester PHP en accédant à : http://<IP_SERVEUR>/info.php${RESET}"
|
||||||
|
else
|
||||||
|
echo -e "${YELLOW}Test PHP annulé.${RESET}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -e "${RED}Le service Apache n'est pas actif.${RESET}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${GREEN}Installation terminée avec succès ! 🚀${RESET}"
|
echo -e "${GREEN}Installation terminée avec succès ! 🚀${RESET}"
|
||||||
|
|||||||
Reference in New Issue
Block a user