403 error Forbidden / Directory index forbidden by Options directive

10 posts / 0 new
Last post
#1 Mon, 04/28/2014 - 07:52
mikkyone

403 error Forbidden / Directory index forbidden by Options directive

Hi,

I have in the public_html an index.html file that is not show as it can be seen from the following:

I receive an error, when:

(1) go to  http://tracking-net.com - 403 error Forbidden - You don't have permission to access / on this server

(2) go to https://tracking-net.com - Index of / [ICO] Name Last modified Size Description

For the first case i got an error: Directory index forbidden by Options directive: /home/tracking-net/public_html/

For the second case no error, but not seen / read index.html.

Thanks in advance,

I run php -v and I got the following:

PHP Deprecated: Comments starting with '#' are deprecated in /etc/php.ini on line 386 in Unknown on line 0 Failed loading /usr/local/ioncube/ioncube_loader_lin_5.5.so: /usr/local/ioncube/ioncube_loader_lin_5.5.so: wrong ELF class: ELFCLASS64 PHP 5.5.11 (cli) (built: Apr 6 2014 12:44:25) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

Mon, 04/28/2014 - 10:00
andreychek

Howdy,

Hmm, it does appear that there's something wrong with the ioncube loader that's being used, but I don't think that's the cause of the issue you're seeing at the moment.

Can you verify in $HOME/logs/access_log, that you can see the incoming connection attempt from your IP address, when you try to access the website?

Also, is there a .htaccess file in your public_html folder? If so, do you see the same problem if you try moving it elsewhere?

And lastly, do you receive the same error if you add "/index.html" to the end of the domain name you're browsing to?

-Eric

Mon, 04/28/2014 - 12:25 (Reply to #2)
mikkyone

Hi,

  1. No .htaccess in public_html folder

  2. Mon Apr 28 16:26:42 2014] [error] [client 5.12.170.139] Directory index forbidden by Options directive: /home/tracking-net/public_html/ [Mon Apr 28 16:42:58 2014] [error] [client 5.12.170.139] Directory index forbidden by Options directive: /home/tracking-net/public_html/ [Mon Apr 28 16:50:24 2014] [error] [client 5.12.170.139] Directory index forbidden by Options directive: /home/tracking-net/public_html/ [Mon Apr 28 16:50:42 2014] [error] [client 5.12.170.139] File does not exist: /home/tracking-net/public_html/index.html

chmod of the public_html is set to 755

I manage to fix the ioncube installation:

root@myVPS14748 ~]# php -v PHP 5.3.3 (cli) (built: Dec 11 2013 03:15:48) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

thanks a lot

Mon, 04/28/2014 - 14:29
andreychek

Howdy,

Hmm, you mentioned that there was an index.html file there -- however, one of the errors I see in the logs is this one:

File does not exist: /home/tracking-net/public_html/index.html

That suggests that there isn't actually an "index.html" file in the public_html folder in "/home/tracking-net/public_html/".

If you run this command, what output do you see:

ls -l /home/tracking-net/public_html/

Mon, 04/28/2014 - 14:41
mikkyone

hi

here what I got:

-rwxr-xr-x 1 tracking-net tracking-net 2261 Apr 28 16:44 Index.html
lrwxrwxrwx 1 tracking-net tracking-net    4 Apr 28 16:26 awstats-icon -> icon
lrwxrwxrwx 1 tracking-net tracking-net    4 Apr 28 16:26 awstatsicons -> icon
drwxr-xr-x 9 tracking-net tracking-net 4096 Apr 28 15:13 icon
drwxr-xr-x 2 tracking-net tracking-net 4096 Apr 28 16:41 stats

much obliged

Mihai

Mon, 04/28/2014 - 15:24
andreychek

Howdy,

Ah, filenames are case-sensitive -- it looks like you have the file "Index.html", and not "index.html".

Try renaming that file to have a lower-case "i", that should solve the problem you're seeing.

-Eric

Tue, 04/29/2014 - 03:21 (Reply to #6)
mikkyone

Hi there,

I will rename the index.html and come back. Right now I am not in front of the computer. Thanks again for all the support.

Mihai

Tue, 04/29/2014 - 07:49 (Reply to #7)
mikkyone

Hi,

I just run the line again and got...the same:

lrwxrwxrwx 1 tracking-net tracking-net    4 Apr 29 12:02 awstats-icon -> icon
lrwxrwxrwx 1 tracking-net tracking-net    4 Apr 29 12:02 awstatsicons -> icon
drwxr-xr-x 9 tracking-net tracking-net 4096 Apr 29 09:40 icon
-rw-r--r-- 1 tracking-net tracking-net 2261 Apr 29 12:14 index.html
drwxr-xr-x 2 tracking-net tracking-net 4096 Apr 29 12:04 stats

and what I got - apparently my hostname was written with an "y" - myVPS14748.tracking-net.comy (see below) - from where can I correct this error?

service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for myVPS14748.tracking-net.comy
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

and finally when I try to add the second name server - respectively ns2.tracking-net.com in the Bind Server I get the following error:

Failed to apply changes : Failed to start BIND : Starting named: Error in named configuration: zone
 localhost.localdomain/IN: loaded serial 0 zone localhost/IN: loaded serial 0 zone
 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0 zone
 1.0.0.127.in-addr.arpa/IN: loaded serial 0 zone 0.in-addr.arpa/IN: loaded serial 0 zone tracking-net.com
/IN: NS 'ns2.tracking-net.com' has no address records (A or AAAA) zone tracking-net.com/IN: not loaded 
due to errors. _default/tracking-net.com/IN: bad zone [FAILED] 

So I got to reverse the change and have only one name server ns1.tracking-net.com.

thanks

Mihai

Tue, 04/29/2014 - 09:53
andreychek

Howdy,

Could you try accessing /index.html on that particular domain, and then show us the logs that are generated in $HOME/logs/access_log?

The issue you're seeing with your hostname doesn't appear to be related to this particular issue... I'd suggest solving your original problem first (or opening a new Forum post for your hostname issue), that will help us keep the various topics separate. Thanks!

-Eric

Wed, 04/30/2014 - 03:09 (Reply to #9)
mikkyone

Hi,

First issue...how it seems to work well, it sees the index.html file and is loading it....The only think I do, it was not to log in for half a day...:)

Thanks for you support

Mihai

For the other issue I will follow your advice...

Topic locked