Apache Interview Answers

2 min
6
0
0
Published on updated on
  1. On a fresh install, why does Apache have three config files - srm.conf, access.conf and httpd.conf?

    The first two are remnants from the NCSA times, and generally you should be ok if you delete the first two, and stick with httpd.conf.

  2. What does apachectl graceful do?

    It sends a SIGUSR1 for a restart, and starts the apache server if it’s not running.

  3. When I do ps -aux, why do I have one copy of httpd running as root and the rest as nouser?

    You need to be a root to attach yourself to any Unix port below 1024, and we need 80.

  4. Why do I get the message "… no listening sockets available, shutting down"?

    In Apache 2 you need to have a listen directive. Just put Listen 80 in httpd.conf.

  5. What is ServerType directive?

    It defines whether Apache should spawn itself as a child process (standalone) or keep everything in a single process (inetd). Keeping it inetd conserves resources. This is deprecated, however.

  6. What does htpasswd do?

    It creates a new user in a specified group, and asks to specify a password for that user.

  7. What’s the command to stop Apache?

    kill the specific process that httpd is running under, or killall httpd. If you have apachectl installed, use apachectl stop.

  8. How do you check for the httpd.conf consistency and any errors in it?

    apachectl configtest

  9. If you specify both deny from all and allow from all, what will be the default action of Apache?

    In case of ambiguity deny always takes precedence over allow.

Click on the link to search and apply for Apache Jobs

Answers sourced from www.techinterviews.com

 

Continue reading around the topics :

Comment

In the same category

The best IT jobs for introverts IT Career Advice
Introverts can thrive in IT jobs that require focus, problem-solving, and independent work. There are plenty of roles perfect for those who prefer working behind the scenes.
4 min
data jobs in the UK IT Career Advice
Data jobs in the UK are in high demand, with roles in data science, engineering, and analysis offering excellent career stability. From junior data analysts to senior roles like chief data officer, these positions provide clear growth opportunities with salaries ranging from £25,000 to £100,000+
3 min
Preparing for your Junior Data Analyst interview IT Career Advice
Interviews for a Junior Data Analyst role can be challenging, but preparation is key. Be ready to discuss tools like Excel, SQL, and Python, and share how you've used them in projects. This guide covers key questions and tips to help you feel confident.
4 min

Connecting Tech-Talent

Free-Work, THE platform for all IT professionals.

Free-workers
Resources
About
Recruiters area
2024 © Free-Work / AGSI SAS
Follow us