Jump to content
  • 0

Control panel on VPS CentOS


mrlongshen

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

Hi mrlongshen,

Just create a symbolic link...

ln -sf /root/www /var/www/html
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   13
  • Joined:  01/08/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

Why do you even have to change it?  When I had a server I never edited httpd.conf and my CP worked fine on my VPS.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Hi mrlongshen,

Just create a symbolic link...

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

 

can i locate to my user not root folder ? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  707
  • Reputation:   168
  • Joined:  01/26/12
  • Last Seen:  

 

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