LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 11-25-2003, 06:49 PM   #1
DogTags
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Rep: Reputation: 15
Can't access user account web page in browser - ~username


Hi All

Mandrake 9.2

New to linux install and Mandrake, but enjoying the challenge - sorta....

Created one user account when installing mandrake - 'fred'

I created a public_html directory for fred at:

/home/fred/public_html

and I plugged in a placeholder index.html file

However, when I try to call up fred's placeholder page from another computer on the network, I get a Forbidden Error - 403

This other computer is allowed access to the mandrake computer and so far can access the mandrake machine via ftp and ssh.

Would anyone know how to approach this?

I would also like to get cgi working within /home/fred/public_html/cgi-bin

Many thanks
 
Old 11-26-2003, 02:11 PM   #2
Tomasfuego
Member
 
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168

Rep: Reputation: 30
chmod the /home and the /home/fred 711, and /home/fred/public_html should be 744
 
Old 11-27-2003, 02:53 AM   #3
DogTags
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks very much. That solved part of the problem

When I now try to reach http://192.168.2.6/~fred I don't get the Forbidden error, but now I get this error:

Quote:
The connection was refused when attempting to contact 127.0.0.1
I have two computers that are connected through a belkin router. One computer is a winxp machine, and the other is the mandrake box.

The router has assigned the IP of 192.168.2.6 to the mandrake, and it is the mandrake machine that has the /~fred user and page

The error that I mention above occurs when I am trying to reach the /~fred page from the winxp box.

However, if I type in 192.168.2.6/~fred in the mandrake box, the /~fred page is displayed AND the IP changes from 192.168.2.6 to 127.0.0.1

1. why does it change to 127.0.0.1 ?

2. why is the connection refused when coming from the winxp machine? I am able to access the mandrake machine from the win box via ftp and ssh okay.

Thanks for your help

Last edited by DogTags; 11-27-2003 at 02:55 AM.
 
Old 11-28-2003, 03:33 AM   #4
Tomasfuego
Member
 
Registered: Nov 2002
Location: USA
Distribution: Lenny at work
Posts: 168

Rep: Reputation: 30
You may have some funky permissions in your http.conf file ... boy thats weird. Check that to make sure you allow all connections (esp in the /home/*/public_html section) and also take a glance in your /etc/hosts file to make sure nothing funky is going on there either
 
Old 11-29-2003, 12:16 PM   #5
DogTags
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Original Poster
Rep: Reputation: 15
I'll take a look and report back.

Many thanks for your help
 
Old 01-26-2004, 02:02 PM   #6
beny
LQ Newbie
 
Registered: Aug 2003
Posts: 7

Rep: Reputation: 0
Unhappy same problem

I have the same problem since I upgraded to Mandrake 9.2. I think it might be related to the presence of "~" in the address, because all sites I was not able to connect (including my own) have an "~".
Please let me know if you found out the answer to this annoying problem.
Beny
 
Old 01-29-2004, 08:29 AM   #7
DogTags
LQ Newbie
 
Registered: Nov 2003
Posts: 24

Original Poster
Rep: Reputation: 15
I got it to work, but I'm not sure exactly what made the difference.

Here is what I did:

1. I reinstalled MD 9.2, but this time I made the security level "Standard"

I had been using "Higher"

- None
- Standard
- Higher
- Paranoid

(I "think" that those are the right terms. I'm at a different machine at the moment.)

In the Higher mode, I would add my win box IP as an Except IP to the hosts.deny file, but it kept getting over-written each time I booted

2. You have to create the public_html directory and put an index.html file in there. Yeah, I know this is total dummy stuff, but I never used MD. So, I wasn't sure what was what:

/home/fred/public_html/index.html

3. The ~ works fine:

192.168.2.6/~fred/index.html

4. I also found out that you have to include the closing forward slash. Otherwise, I would get an error:

192.168.2.6/~fred

............"uh, couldn't connect to 127.0.0.1"...............

But, when I closed it, it worked fine:

192.168.2.6/~fred/

5. Also, I think I'm remembering that if I was calling a index.php page, I had to include the full url all the way through the page:

192.168.2.6/~fred/index.php

-----------

I still have a lot to learn. I don't feel comfortable with this yet, but I'm glad each time I make progress. I must have installed/re-installed about 8 or 9 times so far. I would love to get familiar enough with it to have a fully working linux office system.

HTH

Last edited by DogTags; 01-29-2004 at 08:30 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
my web browser "mozilla fire fox" isn't rendering the page, rather opening the page amolgupta Linux - Software 2 07-26-2005 12:41 AM
Allow this particular web page access on port 443 ONLY lothario Linux - Software 2 01-14-2005 10:14 PM
Internet connection problem, able to ping but unable to get web page in browser rajnishmishra Linux - Networking 13 07-15-2004 12:54 AM
LQ user web page born4linux LQ Suggestions & Feedback 5 02-19-2003 04:46 PM
Web page user access Cristian Negres Linux - Newbie 2 01-05-2002 12:43 PM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration