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.


 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

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 ? 

Link to comment
Share on other sites

 

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.

Link to comment
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.   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.



×
×
  • Create New...

Important Information

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