0

I am new to the LAMP environment. I wanted to create files directly in my home directory instead of always copying it to /var/www. I created a sym link using the following command :

ln -s /var/www ~/workspace/www

Now I can see a sym link www created in ~/workspace. I can access files in wwww. But, I can't modify existing files or create new files.

I know I am missing something. Can someone please help?

P.K
  • 113
  • 5

1 Answers1

0

Most probably the folder /var/www belongs to root and you don't have permission to write there. So the symlink only enables you to read it not modify or create anything. You can always use sudo to modify those contents.

But do not change /var/www permission to gain access to it. This would be a real bad idea.

Here you can find better solution for your problem to access contents of /var/www without even using sudo.

sourav c.
  • 44,715