Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Setting up WebServer (Mandrake)

Status
Not open for further replies.

vfear

Technical User
Feb 9, 2001
159
US
I installed mandrake 8.1 and when I got to I get a default website . I installed all the server packages. Can anyone tell me where is the default director for which this is installed? What should I run to configure the web server and please tell me how. I need all the help I can get. Thanks
 
Hi,



The Physical path associated with the root of the apache server is pointed at by the DocumentRoot directive within your httpd.conf file, i.e. /etc/httpd/conf/httpd.conf . In fact, everything to do with the apache config is in that file or the ones it points to - such as /etc/httpd/conf/addon-modules. This is the main peculiarity of the way Mandrake package apache - they use several config files whereas everyone else just uses httpd.conf.



You can check yourself :



$ cat /etc/httpd/conf/httpd.conf | grep DocumentRoot



...but I'm almost certain Mandrake use the same DocumentRoot as redhat which is /var/ So, that means that the default page at is physically at /var/


As to configuring it - if you don't fancy just editing httpd.conf and restarting the server then you could try webmin which is a browser based admin tool for various servers at (assuming you have it installed) or maybe comanche from covalent -->


Of course, the full set of docs is at




Hope this helps
 
Where can you change the path at where the server pulls the site from right now its set to /var/ how can I change that. When I want to ftp to that directory how do I restrict the permissions ??

THanks so much
 
Hi,







To change it from /var/ you just use a regular text editor on the /etc/httpd/conf/httpd.conf file and change the line like :







DocumentRoot "/var/






to







DocumentRoot "/home/httpd/






or whatever else you want.







Then either restart the server with :







# /etc/rc.d/init.d/httpd restart







or simply cause it to reload its config on the fly with :







# killall -HUP httpd







(You must do one of those - apache doesn't just automatically recognise you changed the config file)





On the ftp, thats outside of apache and is a subject in its own right. If you use the wu-ftpd server (not sure if thats the Mandrake default) then, out of the box, it works with the regular linux permissions. So a normal linux userid can login via ftp and have their own permissions similar to if they logged on directly. Depends what you want really - if its highly restricted ftp you need to set up a 'chroot jail' such that the view of the real directory structure is changed for the ftp user to make their '/' really somewhere lower down the tree like /home/joeuser' instead.







Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top