Showing posts with label Apache-Tomcat. Show all posts
Showing posts with label Apache-Tomcat. Show all posts

Saturday, February 16, 2013

Apache installation error and solution

libtool: install: error: cannot install `' to a directory not ending /some_directory

Solution-  If ./config --prefix=/mydir didn't get set correctly the first time. Rerunning a failed apache make can be troublesome. You need to first do a make clean, and then retry with the correct --prefix

Thursday, January 24, 2013

The 403 Forbidden error troubelshooting- Apach2

1- Check for URL errors and make sure you're specifying an actual web page file name and extension, not just a directory. Sometimes configuration may be to disallow directory browsing so a 403 Forbidden message when trying to display a folder instead of a specific page.

2- Clear the browser cookies etc.

3- A 403 status code indicates that the client cannot access the requested resource. It means the wrong username and password were sent in the request, or that the permissions on the server do not allow what was being asked.(If user level restrictions enabled/configured in .htaccess etc)

4- No default directory index page is present. Upload Index.html or Index.htm file. Directive DirectoryIndex defines the default index page name. Open your apache configuration file, find out default index file name, and upload the same file to directory:
DirectoryIndex index.html index.cgi index.php index.xhtml

5- Make sure the CGI script requested have executable permissions set on files.

6- Make sure you have permission to use .htaccess file for Apache web server. If Apache has overrides disabled than apache will bump back with a 403 error.

7- Make sure correct directory permissions are set on directory:
Alias /alias_name  /path_to_webdir

<Directory "/alias_name">
        Options +Indexes FollowSymLinks +ExecCGI
        AllowOverride AuthConfig FileInfo
        Order allow,deny
        Allow from all

8- Make sure the underlying file system permissions allow the User/Group under which Apache is running to access the necessary files.Execute permission on directories so that to go through the directories.

Wednesday, July 4, 2012

Enable tomcat servlet reloading

To enable servlet automatic reloading edit install_dir/conf/context.xml and change <Context> To <Context reloadable="true">