mrlongshen 22 Posted June 30, 2013 hai all, i would like to ask how to change default directory /var/www/html ? im on root privileged, im using WinSCP, so i create 1 directory for control panel with is /root/www because im lazy to open my vps gui, i want to just use ftp only. what should i config at httpd.conf ? someone can guide me ? i just change the directory, but cannot. please help me. Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted June 30, 2013 virpus.com. kindly please help me. how to config control panel.. if i'm not mistaken. the vps and webhost is always separated. If you have a full VPS and not a RO-server dedicated one that some RO hosters try to sell, you can perfectly install a web server and as many services as you want (just like a dedicated server) given you don't jeopardize your neighboring VPSs or commit abuse your hired services. As far as I'm concerned, Virpus just sells traditional VPSs so it's possible to install more services on it (but again, don't try to abuse your resources). I've never dealt with CentOS (I just don't like it), but I believe its configuration file is located in /etc/httpd/conf/httpd.conf in your CentOS server. Then, look up for the DocumentRoot directive on that file. It should be a line like this one: DocumentRoot "/var/www/html" See that route? That's the directory from where you have your HTML document root. Change it to another already existing directory. Then save the file and reboot your apache server, by issuing only one of the two following sentences (whichever you want) with root privileges (logged in as root or by using the sudo command): /etc/init.d/httpd restartservice httpd restart That's it. Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted June 30, 2013 hai all, i would like to ask how to change default directory /var/www/html ? im on root privileged, im using WinSCP, so i create 1 directory for control panel with is /root/www because im lazy to open my vps gui, i want to just use ftp only. what should i config at httpd.conf ? someone can guide me ? i just change the directory, but cannot. please help me. you should put it on your webhost not on your vps. Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted June 30, 2013 hai all, i would like to ask how to change default directory /var/www/html ? im on root privileged, im using WinSCP, so i create 1 directory for control panel with is /root/www because im lazy to open my vps gui, i want to just use ftp only. what should i config at httpd.conf ? someone can guide me ? i just change the directory, but cannot. please help me. you should put it on your webhost not on your vps. my vps got webhost bro. huhuhu Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted June 30, 2013 hai all, i would like to ask how to change default directory /var/www/html ? im on root privileged, im using WinSCP, so i create 1 directory for control panel with is /root/www because im lazy to open my vps gui, i want to just use ftp only. what should i config at httpd.conf ? someone can guide me ? i just change the directory, but cannot. please help me. you should put it on your webhost not on your vps. my vps got webhost bro. huhuhu where did you host your vps? Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted June 30, 2013 virpus.com. kindly please help me. how to config control panel.. Quote Share this post Link to post Share on other sites
0 Brynner 34 Posted June 30, 2013 virpus.com. kindly please help me. how to config control panel.. if i'm not mistaken. the vps and webhost is always separated. Quote Share this post Link to post Share on other sites
0 mrlongshen 22 Posted July 1, 2013 DocumentRoot "/var/www/html" yes sir i see the route. may i change the route ? Quote Share this post Link to post Share on other sites
0 OnNplay 27 Posted July 1, 2013 Hopefully you may aware of words "route" and "root". Here some details http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-config.html VPS does not have a ftp by default. Install ftp service if you need it. FTP running at port 21 by default. WinSCP by default is connecting to port 22 which belong to Secure Shell (ssh). Quote Share this post Link to post Share on other sites
0 Yamzkie 22 Posted January 12, 2014 Install this http://wiki.lxcenter.org/Kloxo+Installation+Guide it's like cPanel 1 sad reacted to this Quote Share this post Link to post Share on other sites
0 Zirius 1 Posted July 25, 2014 Hopefully you may aware of words "route" and "root". Here some details http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-apache-config.html VPS does not have a ftp by default. Install ftp service if you need it. FTP running at port 21 by default. WinSCP by default is connecting to port 22 which belong to Secure Shell (ssh). Btw, you can still access FTP via SFTP. It is an option for those who do not want to allocate memory to FTP manager. Install this http://wiki.lxcenter.org/Kloxo+Installation+Guide it's like cPanel Kloxo is the way to go and for me the best shot. Quote Share this post Link to post Share on other sites
0 Jguy 215 Posted July 28, 2014 Why would you change the document directory for apache to /root/www? This effectively means you have to BE root to change, update or add or remove ANYTHING in that directory (a bad idea to FTP/SSH directly under root). Not only that I don't think apache would serve files out of that directory because the www-data user or group is not part of the wheel/sudo/root/admin group (and rightfully shouldn't be or else you've just opened up root access to your server from http). Quote Share this post Link to post Share on other sites
hai all, i would like to ask how to change default directory /var/www/html ?
im on root privileged, im using WinSCP, so i create 1 directory for control panel
with is /root/www because im lazy to open my vps gui, i want to just use ftp only.
what should i config at httpd.conf ?
someone can guide me ?
i just change the directory, but cannot.
please help me.
Share this post
Link to post
Share on other sites