Current time: 05-03-2024, 09:50 AM Hello There, Guest! (LoginRegister)


Post Reply 
Error 403 Forbidden
Author Message
milon Offline
Junior Member
*

Posts: 17
Joined: Oct 2007
Reputation: 0
Post: #1
Error 403 Forbidden
Hi,

I have 2 errors after installing on Centos5.3

1) When I add a domain, then goto the domain I get an error 403 forbidden page. This is the domain --> http://www.mostlyharmlessmedia.co.uk

2) When I try to access the webftp, I get: Unable to connect to FTP server localhost on port 21.

I did have trouble getting proftpd to start - I had to comment out
Code:
#DisplayFirstChdir          message
for the service to start.

I'm not certain what information you'll need to assist, so I'll post details when asked. Any help would be greatly appreciated.

Thanks,
10-04-2009 02:53 AM
Find all posts by this user Quote this message in a reply
MicCo Offline
Moderator
*****
Moderators

Posts: 277
Joined: Oct 2006
Reputation: 1
Post: #2
RE: Error 403 Forbidden
Do you have SSH access ?

If yes, can you see the files in the root of the domain, and what is the attributes for the directory and the files ?
10-04-2009 03:16 AM
Visit this user's website Find all posts by this user Quote this message in a reply
milon Offline
Junior Member
*

Posts: 17
Joined: Oct 2007
Reputation: 0
Post: #3
RE: Error 403 Forbidden
Permissions in /var/www/virtual/mostlyharmlessmedia.co.uk/htdocs

are all 777.
10-04-2009 03:48 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #4
RE: Error 403 Forbidden
Should not be 0777. please post output from
Code:
ls -l
10-04-2009 04:13 AM
Visit this user's website Find all posts by this user Quote this message in a reply
milon Offline
Junior Member
*

Posts: 17
Joined: Oct 2007
Reputation: 0
Post: #5
RE: Error 403 Forbidden
[root@maggie htdocs]# ls -l
total 8.0K
drwxrwxrwx 2 vu2004 vu2004 4.0K Oct 3 14:27 images
-rwxrwxrwx 1 vu2004 vu2004 3.3K Oct 3 18:34 index.html
10-04-2009 04:22 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #6
RE: Error 403 Forbidden
Oh, that`s simple Smile
http://www.mostlyharmlessmedia.co.uk/index.html
you miss this directive
Code:
DirectoryIndex [b]index.html[/b] index.cgi index.pl index.php index.xhtml index.htm
in apache conf
(This post was last modified: 10-04-2009 04:25 AM by sci2tech.)
10-04-2009 04:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
MicCo Offline
Moderator
*****
Moderators

Posts: 277
Joined: Oct 2006
Reputation: 1
Post: #7
RE: Error 403 Forbidden
Thanks to sci2tech, it looks like it's working now Cool
10-04-2009 04:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
milon Offline
Junior Member
*

Posts: 17
Joined: Oct 2007
Reputation: 0
Post: #8
RE: Error 403 Forbidden
Thanks for your help.

http://www.mostlyharmlessmedia.co.uk/index.html works

but

http://www.mostlyharmlessmedia.co.uk still gives a 403.
10-04-2009 05:19 AM
Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #9
RE: Error 403 Forbidden
Did you added that directive to apache conf?
If no, you need to add it.
If yes you need to restart apache Big Grin
10-04-2009 05:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
milon Offline
Junior Member
*

Posts: 17
Joined: Oct 2007
Reputation: 0
Post: #10
RE: Error 403 Forbidden
Code:
DirectoryIndex [b]index.html[/b] index.php index.xhtml index.htm index.pl index.cgi index.html.var

In /etc/httpd/conf/httpd.conf


Code:
[root@maggie ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Sat Oct 03 21:37:31 2009] [warn] module fcgid_module is already loaded, skipping
[Sat Oct 03 21:37:31 2009] [warn] module fcgid_module is already loaded, skipping
                                                           [  OK  ]

Output from restarting apache.

But I still have the problem.
10-04-2009 05:40 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)