Il faut exécuter la commande chown user:group nom-de-fichier exemple : sudo chown www-data:www-data config.php