- Home
- Interview Questions
- Linux Server Administrator
61.
What does each of the error codes 200, 300, 400 and 500 in apache mean?
2xx are successful requests, 3xx are redirection, 4xx are client error and 5xx are server error codes.
62.
Create a new Apache VirtualHost configuration for the host www.google.com that sits at /home/google/public_html/ and
default logs on /var/log/httpd/
<VirtualHost *:80> DocumentRoot /home/google/public_html ServerName www.google.com ServerAlias google.com CustomLog /var/log/httpd/google.com.log combined ErrorLog /var/log/httpd/google.com.error.log </VirtualHost>
63.
How do you stop the Apache HTTPD service, through its control script?
The apache control script is called apachectl and you can stop the apache using "apachectl stop"
64.
How can you enable, on a default Linux installation, root remote access through SSH?
Edit ssh configuration on /etc/ssh/sshd_config and enable Root by changing "PermitRootLogin" to "yes".
55.
What is the difference between "apachectl restart" and "apachectl graceful"?
apachectl restart will force the Apache to stop all its processes and restart the service, the apachectl graceful will "advise" the httpd processes to restart only after the finish their current work.