user homepages
Might be that this thread should've been posted under the newbie-section, but I'll give it a go here anyway.
I'm running a computer with slackware 9.0 on our local network (no inet, which is a problem I'll get to another time), meant to serve ftp and web (http/php, etc). I've created a test-account, with its own home-area (home/test1), and I want this user to have an area in this directory that can be used as a public_html-area - accessible from other computers on the network as "slackware-server/test1" through the http-protocol. How do I do this? I've read several different faq's both on LQ and the respective homepages of the software-distributors - Apache and Slackware - but I haven't found anything regarding the subject. The closest I got was the faq on vhosts on the apache-site, but I'm not sure if that's what I'm looking for. Any help will be appreciated, thank you. And btw, the server is already responding through http as a newly installed apache-server, so I know it's working as it should. Installation also includes both MySQL and PHP, which both work perfectly. |
well if you just want to share the files,nfs would suffice but I don't think that is what you are looking for ,you should configure your apache server ,set up networking and you're done,if that is what I read from your query!
Correct me if i'm wrong? How to do that ? Aren't the apache manuals enough? |
As already mention nfs/samba might be more suitable for sharing files, however to answer the question.
Create public_html under /home/test1. Check that the following is in your httpd.conf Code:
<IfModule mod_userdir.c> HTH & welcome to LinuxQuestions Jamie... |
Quote:
The samba-part could be interesting (it's a windows-network btw, so I guess it would have to be samba in that case), but I've had difficulties setting up samba before, and I figured it would be faster to just setup and use ftp for this purpose. Quote:
I tried just creating the public_html-folder inside the /home/test1 -folder, but I couldn't browse to the index- and php-files I put in there from the windows-computer. Hopefully it will work when I add the lines you mention above here, unless they are included by default..? I haven't tampered alot with the httpd.conf included with the slackware 9.0 installation, but I'll have to check it out on monday - can't reach the linux-comp from here, as it's located at work. Thanks for all the help anyway, I'll get back to this as soon as I can :newbie: |
Check the permissions on the files (644), the permissions and the permission on your /home /home/temp1 and /home/temp1/public_html directorys (711, 711, 755 respectively). Also check that Indexes are allowed on your apache server.
cheers Jamie... |
Quote:
Now I have a home-dir called test1, that contains the public_html-subdir, with an index and a phpinfo-file. I'm not sure about how to set permissions and stuff, so it would be great if you could just give me some insight in to how it's done (chmod / chown ?) The settings in the httpd.conf seems alright, although I'm not sure about the part on allowing indexes either. |
Quote:
Quote:
Code:
Options FollowSymLinks Indexes That make things a little clearer? cheers Jamie... |
Quote:
Absolutely, and thanks for the useful info :) Somehow I managed to make the test1-page work as well, but I'm not sure how I did it. Might be that it had something to do with the permissions, but it seems okay now. Thanks again. |
All times are GMT -5. The time now is 05:59 PM. |