Inertia Posted January 28, 2004 Share Posted January 28, 2004 ok, i have my "users" files stored on a seperate hard dist mounted on /data for example /data/www/mark/public_html/ to which user mark has ftp rights to upload. but when i try and setup a virtual host to use that directory to display the pages uploaded it doesnt work, im fairly sure its because apache doesnt have the rights to show those directorys, how do i give it the rights ? I have this machine co-located, im using webmin , but also have full ssh access to it. Thanks Link to comment Share on other sites More sharing options...
+BudMan MVC Posted January 28, 2004 MVC Share Posted January 28, 2004 chmod -R 755 the public_html dir - this will give rwxr_xr_x which will allow goup and other the rights needed - ie apache will be able to serve them up. You could lock it down more, but it would depend on what group you have apache in, and or what account its running as, etc.. But 755 should make sure that apache can serve them up - you could then tighten them up as you see fit. Link to comment Share on other sites More sharing options...
Inertia Posted January 29, 2004 Author Share Posted January 29, 2004 it seems my problem isnt permisions then , is there anything else that would cause apache to just display its test page on virtual hosts mapped to a differnt drive ? is there any part of any config file i could post to help somone diagnose it ? Link to comment Share on other sites More sharing options...
Inertia Posted January 29, 2004 Author Share Posted January 29, 2004 ok, now it seems apache is reading from that drive fine :D (dunno how :p ) but its not using the default filename as the first loaded page IE index.html or index.htm or default.php, how do i set this please ? Link to comment Share on other sites More sharing options...
Inertia Posted January 29, 2004 Author Share Posted January 29, 2004 ok, i figured that out for myself too, by searching the conf file for the word "default" until i found what i thought was it, added the filenames and it was indeed it :D Link to comment Share on other sites More sharing options...
rezza Veteran Posted January 29, 2004 Veteran Share Posted January 29, 2004 for future reference, you should check out webmin if you haven't already... it gives you a nifty web-based config for all sorts of servers (apache, samba, NFS, FTP, etc etc... and you can even access it from a remote computer! Link to comment Share on other sites More sharing options...
Inertia Posted January 29, 2004 Author Share Posted January 29, 2004 I am using webmin, it is very good, but i couldnt find a way to set the default file in it apart from manualy editing the conf file. Im also planning on installing usermin for when i have a few users on it, before i do that though ive got to figure out how to use disc quota on redhat 9 Link to comment Share on other sites More sharing options...
Inertia Posted January 29, 2004 Author Share Posted January 29, 2004 gettign there, now my server seems to be ignoring .htaccess files when i set them up for authentication, any idea how i get it to abide by them ? Link to comment Share on other sites More sharing options...
Recommended Posts