Web Hosting Talk







View Full Version : want to change default folder from "\" to "\www" - Plz help me


looking4hosting
02-23-2005, 11:26 PM
My friend’s dedicated server root directory is just " \ " and index file run from there …. we want it’s default directory " \www " …

Plz help me to configure linux apache server once I get Admin root password … I think it cant configure with out root password ...

I will apprecite if you will write command in detail as I dont know too much about Linux …

You guys may email me at iceberg @ host4dot.com so we also may chat on yahoo or msn..


Note that they dont have cpanel ... and what they have I dont know...

Thanks

eth00
02-24-2005, 12:43 AM
You are going to have to changed the DocumentRoot in the /etc/httpd/conf/httpd.conf to what you want. Yes you are going to need root.

1) Login as root
2) type: pico -w /etc/httpd/conf/httpd.conf
3) Look for DocumentRoot /var/www/html and change it to whatever you want
4) type: service httpd restart to restart apache.


You should really consider hiring somebody to help configure your server. Just because it is new does not mean that it is secure and especially if you are hosting websites you may find them compromised soon.

looking4hosting
02-24-2005, 07:37 AM
At the moment it is \ but I want it's root directory \www ... I already made that directory through FTP but now want to configure as it is still take index file from \ rather then \www …

Thanks