Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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 04:36 PM.
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?
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.
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.