mrlongshen Posted June 30, 2013 Posted June 30, 2013 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. Quote
Vengeance Posted June 30, 2013 Posted June 30, 2013 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.. Quote
mrlongshen Posted June 30, 2013 Author Posted June 30, 2013 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 ? Quote
michaelsoftman Posted June 30, 2013 Posted June 30, 2013 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. 1 Quote
Asura Posted June 30, 2013 Posted June 30, 2013 Hi mrlongshen, Just create a symbolic link... ln -sf /root/www /var/www/html Quote
mrlongshen Posted July 26, 2013 Author Posted July 26, 2013 Hi mrlongshen, Just create a symbolic link... ln -sf /root/www /var/www/html can i locate to my user not root folder ? Quote
Asura Posted July 26, 2013 Posted July 26, 2013 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. Quote
Question
mrlongshen
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.