LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2002, 03:48 PM   #1
flux113
LQ Newbie
 
Registered: Jul 2002
Location: New Jersey
Distribution: Mandrake 8.2, Red Hat 7.1
Posts: 4

Rep: Reputation: 0
Unhappy Newbie In Desparate Cry For Apache Help :-(


Hello all. I have recently installed Mandrake 8.2. Everything installed great, and my apache web server is running great. So here's the problem..... I've created a user name, and a home directory for my friend, Ben, to telnet to, wich works fine also. I wanted to create a directory in his home directory where he could store webpages that would show up in a browser when you typed in: "www.myserver.com/ben/index.html".

So.... I created a directory called 'www' in his home directory (/home/ben/). And in the httpd.conf file i've included:

Alias /ben/ /home/ben/www

<Directory /home/ben/www>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

Whenever I try to view www.myserver.com/ben/index.html, I get Forbidden
You don't have permission to access /ben/index.html on this server.

I've been trying for day now to get this working myself, but I think i've run out of ideas.
Please, please, please.... help this poor soul.

Thanks,
Will
 
Old 07-06-2002, 05:29 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
what's the permissions of the directory and files ??
 
Old 07-06-2002, 06:23 PM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
I'll give you an E effort
What you actaully want to do change is the UserDir releated
directives? That why on the off change you have more than one friend all they have to do is create a public_html directory in thier home dir?

Of course if you were really their friend you would set
up a subdomain or maybe even full virtual domain for them ............. Cool Beans

For info on setting up virtual (sub)domains see
apache docs at http://httpd.apache.org
 
Old 07-06-2002, 08:20 PM   #4
flux113
LQ Newbie
 
Registered: Jul 2002
Location: New Jersey
Distribution: Mandrake 8.2, Red Hat 7.1
Posts: 4

Original Poster
Rep: Reputation: 0
I chmod'd 777 /home/ben/www, which i wasn't sure if I was supposed to do that, but it didn't help anyway. I was going to look into the userdir thing, but I just thought that I could set up any directory outside of the Document Root with Alias, Am i wrong? Thanks for replying to my post though. I guess I will see if I can learn how to do the Virtual domain thing. :-)
 
Old 07-06-2002, 08:56 PM   #5
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Take a look at this page:
http://httpd.apache.org/docs/mod/mod_userdir.html
 
Old 07-06-2002, 09:03 PM   #6
flux113
LQ Newbie
 
Registered: Jul 2002
Location: New Jersey
Distribution: Mandrake 8.2, Red Hat 7.1
Posts: 4

Original Poster
Rep: Reputation: 0
I just wanted to say thanks to pickledbeans, the userdir worked like a charm, and was easy to config. :-)

Also, i've finally found my error logs, and have noticed something wierd. There are numerous error listed with clients trying to access directories like:
/www/html/winnt/system32/cmd.exe
and /www/html/scripts/root.exe

Are these people trying to 'hack' into my server?
 
Old 07-06-2002, 09:36 PM   #7
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
Are'nt you glad you swithced to Linux
 
Old 07-06-2002, 11:29 PM   #8
rootman147
Member
 
Registered: May 2002
Location: Hangon...find / -name location
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
that is in fact a pathetic script kiddiot hack attempt on a well-known micro$oft vulnerability
 
Old 07-07-2002, 11:07 AM   #9
flux113
LQ Newbie
 
Registered: Jul 2002
Location: New Jersey
Distribution: Mandrake 8.2, Red Hat 7.1
Posts: 4

Original Poster
Rep: Reputation: 0
ok, i've got a new problem....... I had my users servers working yesterday, but now the permissions to my home directories have reset themselves?!?!? I don't know, if this is some sort of security thing or what, but everytime I chmod the home directories they work, then a couple of hours later, something resets them back so that access is forbidden. I hope someone knows what files I need to tweak to fix this. Help would be much appreciated.

Thanks
Will
 
Old 07-08-2002, 03:59 AM   #10
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
i had similar problem
/dev/lp0 permission kept changed..
i thought it might be a line in rc.d
but i never looked at it..

u might want to try
# grep -Ri chmod /etc/ | grep home
 
Old 07-09-2002, 04:36 PM   #11
furrie
LQ Newbie
 
Registered: Dec 2001
Location: Yate, Bristol, England, UK
Distribution: CentOS, Ubuntu, FreeBSD
Posts: 23

Rep: Reputation: 15
Hey Chaps!

I've pointed my domains at my external IP and on my firewall machine, I have Port 80 Forwarding set up to go to the apache server.

The way I see it, once forwarded through the firewall, apache should look at the Requested URL and forward the browser towards the relevant "Virtual Server" and its directory on the server... Have I got it straight or am I missing something?

If, so... Why in hell is it not working?!?

Is it 'cos I am trying to test it from the inside?

I have the default install of Mandrake 8.2 with apache. I use an IP Cop firewall. I have used the Webin system to administer the Mandrake PC (namely the apache bits)...

Any help is greatly appreciated and any more details, just ask ;-)

Cheers!


Chris Phillips (furrie)
 
  


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
Desparate: Can't login OD BruceC Other *NIX 0 10-26-2005 02:35 PM
Desparate JavaScript Help Jaster Programming 3 11-16-2004 12:35 PM
I think I'm gonna cry... frustrations of a Newbie DMWargamerAU Linux - Newbie 11 04-30-2004 04:32 PM
A desperate newbie-cry for help!!! BiOnIcBuNnY Mandriva 5 08-23-2003 11:52 AM
Desparate help on NIS subhasis_ray Linux - Networking 0 05-20-2002 12:27 AM


All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration