Jump to content
  • 0
mrlongshen

Control panel on VPS CentOS

Question

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

11 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

 

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

Share this post


Link to post
Share on other sites
  • 0

 

 

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?

Share this post


Link to post
Share on other sites
  • 0

 

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.

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.