mrlongshen Posted June 30, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share 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 Link to comment Share on other sites More sharing options...
Asura Posted June 30, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 707 Reputation: 168 Joined: 01/26/12 Last Seen: February 7, 2014 Share Posted June 30, 2013 Hi mrlongshen, Just create a symbolic link... ln -sf /root/www /var/www/html Quote Link to comment Share on other sites More sharing options...
Vengeance Posted June 30, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 65 Reputation: 13 Joined: 01/08/12 Last Seen: February 19, 2015 Share 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 Link to comment Share on other sites More sharing options...
mrlongshen Posted June 30, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
michaelsoftman Posted June 30, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 410 Reputation: 29 Joined: 04/04/12 Last Seen: November 28, 2024 Share 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 Link to comment Share on other sites More sharing options...
mrlongshen Posted July 26, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
Asura Posted July 26, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 707 Reputation: 168 Joined: 01/26/12 Last Seen: February 7, 2014 Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.