Hi, Here we will see some common file locations that you may want to access while deploying your application to Apache server in ubuntu.
Locations:
Error log file
/var/log/apache2/error.log
Configuration file
/etc/apache2/apache2.conf
Configuration file for default VirtualHost
/etc/apache2/sites-available/000-default.conf
Commands:
before restarting apache server, check syntax errors in apache config files.
apachectl configtest
Restart Apache server
sudo service apache2 restart
Start Apache server
sudo service apache2 start
Stop Apache server
sudo service apache2 stop
Restart Apache server
sudo service apache2 restart