Apache HTTPd Frequently Asked Questions


Where can I find the manual?

The manuals can be found at http://httpd.apache.org/docs/ (Apache 1) and http://httpd.apache.org/docs-2.0 (Apache 2).

What version should I download?

Use Apache 2 in prefork mode (the default).

I have file in an 'images', 'icons' or 'cgi-bin' directory, but Apache says they don't exist (404). What's wrong?

By default, Apache aliases the images, icons and cgi-bin directories to other locations. This can be fixed by removing or commenting out (by placing a # at the start of the line) the offending line, which will look something like the one below.

ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

I made changes to php.ini / Apache configuration files, but they don't change anything. What's wrong?

You must restart Apache for these changes to take effect. Use the command 'apachectl restart' or the icon on your Start menu to do this.

I'm trying to setup a webserver on my home internet connection, but it's not working. What could be wrong?

There are a number of things which could go wrong. Here's a checklist:

Can I set up multiple sites on a local network (intranet) server?

Yes. To allow yours and other computers to recognise the additional domains, you can either set up a DNS server for your LAN, which is outside the remit of this channel (you should be able to find some tutorials and resources using a search engine tho) or you can set up the 'hosts' file on each computer.

The hosts file is a plain text file that allows you to tell the computer where to look for domains (as well as using a DNS server). The hosts file is usually looked at before querying a DNS server. The hosts file is usually in the format:

<IP address> <Domain name>

There's usually atleast one entry for 'localhost': localhost

The hosts file can be opened using any text editor - it's just a plain text file (with no extension). On Windows 95/98 the hosts file is located at C:\Windows\System. On Windows XP it's usually located somewhere under C:\Windows\System32 (you'll have to search for a file called 'hosts' as I'm not sure of the exact location). Under linux it's in /etc.

If you want this to work for all computers on a network, you'll have to change the hosts file on every computer.

I have a really urgent / complex problem that needs solving immediately, and no one's in #apache. What can I do?

If you haven't already done so, check your error logs (these are usually in /var/log or {apache directory}/log. Then search the manual and Google. If you are still stuck, you could try asking on irc.freenode.net #apache (but be warned, they won't tolerate people who aren't willing to atleast try to help themselves).

If you have any additional FAQ's to add here, please contact Athon_Solo on irc.quakenet.org #apache. Do NOT PM / msg him directly (those methods are on ignore). Ask for him on the channel politely.

Author: Allen Brooker
Last Updated: 2004-12-05