apache Flashcards
apache error log
/etc/apache2/logs/error_log
apache config file
/etc/apache2/conf.d/httpd.conf
primary configuration file directory
/etc/apache2/conf.d
contanes include files that add content to the httpd.conf file
/etc/apache2/conf.d/includes
find list of apache modules
httpd -M
apache logs and apache module logs located here
/usr/local/apache/logs
How do you check what port apache is listening on?
give lsof and and netstat example here
what’s the usual apache user?
“nobody”
1xx apache return code
informational, we never see these
2xx apache return code
success code, it’s working, no problem to process
3xx apache return code
redirection, you’ll see these referenced in .htaccess files, but they are not a source of issues
4xx apache return code
client errors
404 not found is most commonly seen when there are tomcat issues, mod_userdir issues, or document root issues
5xx apache return code
server errors
500 internal server error, Most commonly seen when there are permission or script issues. Check the error logs for more information. Sometimes seen with CloudLinux when a site reaches a memory or processor limit part way through processing a request.
503 Service Unavailable. Most commonly seen with CloudLinux when a site reaches one of its limits at an expected juncture.
what two ways can apache connect to other programs
CGI (the common gateway interface) and custom modules