Directory index forbidden by rule

One of our client installed joomla successfully, and tried to access the administrative URL:: and  got an error.

While checking on Server error logs it displayed:

[error] [client XX.XX.XX.XX]Directory index forbidden by rule: /home/user/public_html/

This error normally occurred due to multiple index files in the “administrator” folder.

Follow the steps in order to remove the error.

Go to directory:

cd home/user/public_html/
[root@server administrator/]# ls -l index*

Open the .htaccess file for the directory and mention the index file to be used.

vi .htaccess

Insert following line:

DirectoryIndex index.php

Save the file.

Try to access the URL now. The error should now be sorted out.