Best practice with symlinks, localhost wiki
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
What I think I want to do is to use a symlink so that I can diddle the innards of a Dokuwiki website I have hosted on localhost:
- The website is installed and seems to be working well on /var/www/html/mysite.org/
- I want to access its files directly (not through a browser) from /home/me/mysite/. I want to avoid the risks of using a file manager with root privileges.
- I think I can do this with a symlink like ln -s /var/www/html/mysite.org/ /home/me/mysite
Is that right? More importantly, is that the best way to do what I'm trying to do?
While I have about a decade of experience with Ubuntus as desktop machines, I am a total noobie with LAMP and using localhost. Since I have lost a couple of weeks in just getting my head around the basics of using Apache and localhost, I'm asking this question in the hope of getting a quick answer and possibly avoiding Yet Another Learning Experience: YALE. (Yeah, becoming proficient in all aspects of LAMP would be great, but right now I just need to get on with a project and don't have the time to study things that are peripheral to the primary goal.)
apache-httpd symlink webserver
add a comment |Â
up vote
0
down vote
favorite
What I think I want to do is to use a symlink so that I can diddle the innards of a Dokuwiki website I have hosted on localhost:
- The website is installed and seems to be working well on /var/www/html/mysite.org/
- I want to access its files directly (not through a browser) from /home/me/mysite/. I want to avoid the risks of using a file manager with root privileges.
- I think I can do this with a symlink like ln -s /var/www/html/mysite.org/ /home/me/mysite
Is that right? More importantly, is that the best way to do what I'm trying to do?
While I have about a decade of experience with Ubuntus as desktop machines, I am a total noobie with LAMP and using localhost. Since I have lost a couple of weeks in just getting my head around the basics of using Apache and localhost, I'm asking this question in the hope of getting a quick answer and possibly avoiding Yet Another Learning Experience: YALE. (Yeah, becoming proficient in all aspects of LAMP would be great, but right now I just need to get on with a project and don't have the time to study things that are peripheral to the primary goal.)
apache-httpd symlink webserver
hey will why don't you use rsync to clone your local work from your home directory to the right directory under /var ? and perhaps git to track your changes? just an idea.
â D'Arcy Nader
Apr 2 at 17:30
That would be one way to do it. However I believe that would introduce the problems of maintaining two identical but separate passels of files, which ---because I know my limitations--- are bound to get messed up over the years. As I understand it, a symlink would provide two separate access points to the same passel of files as both accesses point to the same directory inode. Let's see what other suggestions come forth.
â Will Steward
Apr 2 at 17:49
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
What I think I want to do is to use a symlink so that I can diddle the innards of a Dokuwiki website I have hosted on localhost:
- The website is installed and seems to be working well on /var/www/html/mysite.org/
- I want to access its files directly (not through a browser) from /home/me/mysite/. I want to avoid the risks of using a file manager with root privileges.
- I think I can do this with a symlink like ln -s /var/www/html/mysite.org/ /home/me/mysite
Is that right? More importantly, is that the best way to do what I'm trying to do?
While I have about a decade of experience with Ubuntus as desktop machines, I am a total noobie with LAMP and using localhost. Since I have lost a couple of weeks in just getting my head around the basics of using Apache and localhost, I'm asking this question in the hope of getting a quick answer and possibly avoiding Yet Another Learning Experience: YALE. (Yeah, becoming proficient in all aspects of LAMP would be great, but right now I just need to get on with a project and don't have the time to study things that are peripheral to the primary goal.)
apache-httpd symlink webserver
What I think I want to do is to use a symlink so that I can diddle the innards of a Dokuwiki website I have hosted on localhost:
- The website is installed and seems to be working well on /var/www/html/mysite.org/
- I want to access its files directly (not through a browser) from /home/me/mysite/. I want to avoid the risks of using a file manager with root privileges.
- I think I can do this with a symlink like ln -s /var/www/html/mysite.org/ /home/me/mysite
Is that right? More importantly, is that the best way to do what I'm trying to do?
While I have about a decade of experience with Ubuntus as desktop machines, I am a total noobie with LAMP and using localhost. Since I have lost a couple of weeks in just getting my head around the basics of using Apache and localhost, I'm asking this question in the hope of getting a quick answer and possibly avoiding Yet Another Learning Experience: YALE. (Yeah, becoming proficient in all aspects of LAMP would be great, but right now I just need to get on with a project and don't have the time to study things that are peripheral to the primary goal.)
apache-httpd symlink webserver
asked Apr 2 at 16:46
Will Steward
1
1
hey will why don't you use rsync to clone your local work from your home directory to the right directory under /var ? and perhaps git to track your changes? just an idea.
â D'Arcy Nader
Apr 2 at 17:30
That would be one way to do it. However I believe that would introduce the problems of maintaining two identical but separate passels of files, which ---because I know my limitations--- are bound to get messed up over the years. As I understand it, a symlink would provide two separate access points to the same passel of files as both accesses point to the same directory inode. Let's see what other suggestions come forth.
â Will Steward
Apr 2 at 17:49
add a comment |Â
hey will why don't you use rsync to clone your local work from your home directory to the right directory under /var ? and perhaps git to track your changes? just an idea.
â D'Arcy Nader
Apr 2 at 17:30
That would be one way to do it. However I believe that would introduce the problems of maintaining two identical but separate passels of files, which ---because I know my limitations--- are bound to get messed up over the years. As I understand it, a symlink would provide two separate access points to the same passel of files as both accesses point to the same directory inode. Let's see what other suggestions come forth.
â Will Steward
Apr 2 at 17:49
hey will why don't you use rsync to clone your local work from your home directory to the right directory under /var ? and perhaps git to track your changes? just an idea.
â D'Arcy Nader
Apr 2 at 17:30
hey will why don't you use rsync to clone your local work from your home directory to the right directory under /var ? and perhaps git to track your changes? just an idea.
â D'Arcy Nader
Apr 2 at 17:30
That would be one way to do it. However I believe that would introduce the problems of maintaining two identical but separate passels of files, which ---because I know my limitations--- are bound to get messed up over the years. As I understand it, a symlink would provide two separate access points to the same passel of files as both accesses point to the same directory inode. Let's see what other suggestions come forth.
â Will Steward
Apr 2 at 17:49
That would be one way to do it. However I believe that would introduce the problems of maintaining two identical but separate passels of files, which ---because I know my limitations--- are bound to get messed up over the years. As I understand it, a symlink would provide two separate access points to the same passel of files as both accesses point to the same directory inode. Let's see what other suggestions come forth.
â Will Steward
Apr 2 at 17:49
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f435085%2fbest-practice-with-symlinks-localhost-wiki%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
hey will why don't you use rsync to clone your local work from your home directory to the right directory under /var ? and perhaps git to track your changes? just an idea.
â D'Arcy Nader
Apr 2 at 17:30
That would be one way to do it. However I believe that would introduce the problems of maintaining two identical but separate passels of files, which ---because I know my limitations--- are bound to get messed up over the years. As I understand it, a symlink would provide two separate access points to the same passel of files as both accesses point to the same directory inode. Let's see what other suggestions come forth.
â Will Steward
Apr 2 at 17:49