Q) Why do I get the error "You don't have permission to access /~username on this server" when I try to access a users directory
A) You have to set the permissions of the users directory to 755.
You can do this at the command line by chmod 755 <directory>
Q) Why do I get the error "The requested URL /~username was not found on this server
A) In the configuration file, either srm.conf or httpd.conf, there will be a line defining the directory name for a users html directory
by default this is public_html. The line is "UserDir"
Make sure whatever the directory name is that that directory exists in the user directory
Q) I uploaded the index.htm file I created with my html software but when I visit my site I just get a directory listing with index.htm instead of loading index.html
A) In the configuration file, either srm.conf or httpd.conf, there is a line defining the files to be automatically loaded when a directory is accessed via the web
The line is "DirectoryIndex". The default definition is index.html.
If you wish to use a different file such as index.htm or default.htm then add that filename to this line, save the file and restart apache
Q) I am using <!--#include virtual="filename"--> in my html documents but they don't load into the document when I visit my pages
A) In the configuration file, either access.conf or httpd.conf, there is a section called <Directory> that defines what operations are allowed in specific directories and their sub directories.
Look for the directory setting that applies to the directory you are trying to use include virtual tags in and make sure the "Options" line has "Includes" in it.
For more information on the <Directory> tag see This Page
Q) I am trying to use <!--#exec cgi="cgifile"--> to run embeded programs in my page but they don't load into the document when I visit my pages
A) First make sure there are no errors in the cgi file you are trying to call by running the program from the browser by itself
Second make sure that your server parses your html document for includes and exec tags.
In the configuration file, either srm.conf or httpd.conf, there are a couple lines to check
Check to make sure there is a line "AddType text/html .shtml" or maybe "AddType text/html .html"
Then Check to make sure there is a line "AddHandler server-parsed .shtml" or maybe "AddHandler server-parsed .html"
If there isn't add one version of each of these lines. The server will parse that file type for includes and exec tags then
Third Check to make sure that cgi programs are defined in your configuration.
Check for a line "AddHandler cgi-script .cgi" and/or "AddHandler cgi-script .pl" in your configuration file, either srm.conf or httpd.conf
If not the line defining the file extension you are using for cgi files needs to be added
More information on perl cgi and apache can be found on This Page
Q) I made the necessary changes in my configuration but the server is still doing exactly as it did before the changes
A) Anytime you make changes to apache's configuration files you need to restart apache. Apache only reads the configuration files at startup or upon a restart command.
|
|