LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-29-2003, 09:27 AM   #1
toxicdude
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 19

Rep: Reputation: 0
Apache


can someone help me set up my apache i have it up and running but when i try to access my home directory it gives me a 403 Forbidden error also i can i set it up when i create a new user on the box it will add there public_html folder auto? thanks toxic~
 
Old 09-29-2003, 09:31 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What permissions are on your DocumentRoot and files within?

Make sure that your files and directories have permissions for the webserver to read and execute where appropriate.
 
Old 09-29-2003, 09:37 AM   #3
toxicdude
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
i dunno i am a newbie at this but i would like to get it up am running do i need a .htaccess file in my directory
 
Old 09-29-2003, 09:40 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You don't need an htaccess file.
Do an "ls -la" on the directory where you put your web documents - eg:
ls -la /var/www/html
or
ls -la /home/httpd/html
 
Old 09-29-2003, 09:48 AM   #5
toxicdude
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
total 12
drwxr-xr-x 3 root root 4096 Jul 31 11:40 .
drwxr-xr-x 7 root root 4096 Jul 31 11:40 ..
drwxr-xr-x 2 webalizer root 4096 Sep 28 03:13 usage
but like when i create a new user like /home/newuser/public_html
is that the directory it reads from? im trying to give my friend a account to host a site for him
 
Old 09-29-2003, 09:53 AM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you want to use per user directories then try this tutorial:
http://httpd.apache.org/docs-2.0/howto/public_html.html
 
Old 09-29-2003, 10:24 AM   #7
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
are you talking about like when you try to access www.yourserver.com/~username ?

I had this problem last week where I would put the page in public_html and then it gave me the forbidden message.

check this
ls -l /home
you should have directories with at least read and execute
chmod 755 /home/username
chmod 755 ~/public_html
after that I was able to access the page.
 
Old 09-29-2003, 01:51 PM   #8
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
like Blink_Fluid said, the home directory has to have permission of 755, the public_html directory must have 755 permissions and also you have to make sure you have setup apache to allow users to have web directories (usually just uncomment a section to allow it and do a killall -1 httpd to re-read the config file).
 
Old 09-29-2003, 04:17 PM   #9
toxicdude
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
thanks to Blink_Fluid i have apache running i just followed the steps u gave me and it worked thanks man. ~toxic

Last edited by toxicdude; 09-29-2003 at 04:20 PM.
 
Old 09-29-2003, 04:41 PM   #10
toxicdude
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 9
Posts: 19

Original Poster
Rep: Reputation: 0
also how do i edit how much website i want the limit to be for a person? also how do i start my ftp service so people can connect to the box

Last edited by toxicdude; 09-29-2003 at 05:03 PM.
 
Old 09-30-2003, 01:28 PM   #11
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
vsftpd comes with redhat 9. I tend to run it in standalone mode. Edit vsftpd.conf and uncomment the lines specifiec for standalone mode at the bottom. Then to make the service run on boot:
chkconfig --levels 345 vsftpd on

To start the service:
service vsftpd restart

To limit disk space you will need to look into filesystem quotas look at:
http://www.tldp.org/HOWTO/Quota.html

Or just run a cron job that alerts you and or the user when they are using too much space.
 
  


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
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:34 PM.

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
Open Source Consulting | Domain Registration