Control panel on VPS CentOS

mrlongshen

Noobies
Messages
1,126
Points
0
Age
36
Location
localhost 127.0.0.1
Emulator
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.

 
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.

 
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

 
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?

 
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.

 
Install this http://wiki.lxcenter.org/Kloxo+Installation+Guide
default_smile.png
it's like cPanel

 
  • Upvote
Reactions: sad
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.

Kloxo is the way to go and for me the best shot.

 
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).

 
Back
Top