installer_wordpress
installer_wordpress
❯ ls -a ~/wordpress
. ..
❯ ls -l /var/www/html
<VirtualHost *:8081>
ServerName zacstech.com
ServerAdmin azza@localhost
DocumentRoot /var/www/html/zacstech.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<VirtualHost *:8081>
ServerName zacstech.com
ServerAdmin azza@localhost
DocumentRoot /var/www/html/zacstech.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
❯ apachectl -t
Syntax OK
ServerName localhost
2. Update Virtual Host Configuration: Edit the default site configuration file:
bash
Copy code
sudo nano /etc/apache2/sites-available/000-default.conf
Change it to:
php
Copy code
<VirtualHost *:8081>
4. Verify Apache is Running on the New Port: Check if Apache is listening on the new port:
bash
Copy code
sudo lsof -i :8081
echap and:wq
sudo systemctl restart apache2
i votre navigateur télécharge le fichier info.php au lieu de l'exécuter et d'afficher la page PHP,
cela signifie que le serveur Apache ne traite pas les fichiers PHP correctement. Voici les étapes pour
résoudre ce problème :
bash
Copy code
dpkg -l | grep libapache2-mod-php
2. Redémarrez Apache : Après avoir réactivé le module, redémarrez Apache pour appliquer
les changements :
bash
Copy code
sudo systemctl restart apache2
Étapes :
2. Ajoutez la ligne suivante à la fin du fichier (ou modifiez la si elle existe déjà) :
apache
Copy code
ServerName localhost
This will clean up packages that were installed as dependencies but are no longer required.
bash
Copy code
sudo rm -rf /var/www/html/phpmyadmin