Jump to content
  • 0

Control panel on VPS CentOS


Question

Posted

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.


 

6 answers to this question

Recommended Posts

Posted

your default webspace is var/www/html if you change this all your other website files should also be moved to this new location. Hence why would you change and also not good to keep website files under root... not preferable..

Posted

your default webspace is var/www/html if you change this all your other website files should also be moved to this new location. Hence why would you change and also not good to keep website files under root... not preferable..

 

ok. i know. but how to config the httpd.conf ? can u help me ? 

Posted

 

Hi mrlongshen,

Just create a symbolic link...

ln -sf /root/www /var/www/html

 

can i locate to my user not root folder ? 

Hi mrlongshen,

 

You can't. Unless you create a different user (other than 'root') and specify a homedir for it.

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...