LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-13-2004, 05:30 PM   #1
AppleMan
LQ Newbie
 
Registered: Mar 2004
Location: Wales-UK
Distribution: Yellow Dog 3.0.1 - Sirius
Posts: 15

Rep: Reputation: 0
Unhappy Where's the users web directory?


Hi people, I'm a mac user using Yellowdog linux. Since using Mac OSX from the beginning, I understand how a webserver works and I've been using PHP and MySQL for a few years too. Going into linux from MacOSX is proving to be a bit challenging. I can't get my head around where the users store their web files and what is the URL to point to each users web directory.

Any help would be gratefully appreciated.
 
Old 03-13-2004, 05:35 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi AppleMan!

Welcome to LinuxQuestions.org. I'm not familiar with Mac's, nor I understood your questions very well . But the default index.html is usually located at /var/www. When you point your browser to http://your_ip_address or http://localhost/ if apache is running, index.html will be displayed. Apache configuration file is usually located at /etc/apache/httpd.conf. Editing that file you can, for example, enable php.

Hope I did not go to far away from your original questions.

Good luck!

Last edited by Mega Man X; 03-13-2004 at 05:36 PM.
 
Old 03-13-2004, 05:38 PM   #3
codino
LQ Newbie
 
Registered: Feb 2004
Location: Dubai
Distribution: Manrake 9.2
Posts: 9

Rep: Reputation: 0
try /var/www/html/ this is the web server directory

if it is not available check http://localhost/ and if nothing comes out then u have to install the apache web server


i hope this helps
 
Old 03-13-2004, 05:39 PM   #4
AppleMan
LQ Newbie
 
Registered: Mar 2004
Location: Wales-UK
Distribution: Yellow Dog 3.0.1 - Sirius
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for your reply MegaMan.

I know I was confusing, but that's cos I am confused lol!

Ok, so web files are store in /var/www/, and does that go for each user e.g. /var/www/user1/ or /var/www/user2/ etc.? I take it that each users web directory has to be manually created?
 
Old 03-13-2004, 05:44 PM   #5
AppleMan
LQ Newbie
 
Registered: Mar 2004
Location: Wales-UK
Distribution: Yellow Dog 3.0.1 - Sirius
Posts: 15

Original Poster
Rep: Reputation: 0
Right, I gone to /var/www/html and yes, I can access the index.html and other stuff here. But this is the directory for the localhost. What I'm after is a way of other users logging on to linux and creating their own user directory and then they can start serving their own pages.
 
Old 03-13-2004, 05:45 PM   #6
AppleMan
LQ Newbie
 
Registered: Mar 2004
Location: Wales-UK
Distribution: Yellow Dog 3.0.1 - Sirius
Posts: 15

Original Poster
Rep: Reputation: 0
Sorry for being as clear as mud
 
Old 03-13-2004, 06:11 PM   #7
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Good question AppleMan!

I've a few pages on my "server" (very silly ones) and all of them are storaged in different folder as you've described above (localhost/page1, localhost/page2). I think it's only root who can create pages for security reasons. If you wish your users to be able to great accounts remotely, maybe that could be done with an ftp server(?)... Just a guess, since I never needed to do that
 
Old 03-13-2004, 06:16 PM   #8
AppleMan
LQ Newbie
 
Registered: Mar 2004
Location: Wales-UK
Distribution: Yellow Dog 3.0.1 - Sirius
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Megaman X
Good question AppleMan!

I've a few pages on my "server" (very silly ones) and all of them are storaged in different folder as you've described above (localhost/page1, localhost/page2). I think it's only root who can create pages for security reasons. If you wish your users to be able to great accounts remotely, maybe that could be done with an ftp server(?)... Just a guess, since I never needed to do that
Right, so I can only have one 'website' running then. hmmmm that's confused me. See, with Mac OSX each user has a 'Sites' directory for them to run their pages off, and they access their place by pointing to 127.0.0.1/username
 
Old 03-13-2004, 06:24 PM   #9
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
That should be also possible with Linux I believe. Sounds more like an Apache configuration then OS related, but I could be wrong... since I am wrong most of the time
 
Old 03-13-2004, 07:48 PM   #10
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
If on mac, users view their page by 127.0.0.1/user name, then try doing something like this:

Log in as root.
Create directories in the webroot (/var/www/html) to match all of the users, such as:

mkdir /var/www/html/user1
mkdir /var/www/html/user2

Then, create shortcuts to the folders in the users home directory (/home/user1) so they can access thier folders easier.

Use chmod (or chgroup, Im not quite sure) to allow permit the users to view their respective directories.

Good Luck!

edit: I think you need to use chgroup. Try here for help with chgroup: http://nscp.upenn.edu/aix4.3html/cmd...s1/chgroup.htm

Last edited by mattp; 03-13-2004 at 11:14 PM.
 
  


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
Who should own my web directory reesee Linux - Security 4 03-04-2004 01:16 AM
users web rocketgo Linux - Software 5 11-10-2003 08:19 PM
Listing a web directory Radicalm16 Linux - Software 3 06-14-2003 12:05 PM
How can I allow my users to have a web page? romanillo Linux - Newbie 1 11-19-2001 10:19 AM
web directory philfighter Linux - Networking 12 05-22-2001 09:29 AM


All times are GMT -5. The time now is 09:51 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