403 Error when serving local dev website via SymLink

Discussion in 'Installation/Configuration' started by Gianpiero Addis, Mar 7, 2018.

  1. Gianpiero Addis

    Gianpiero Addis New Member

    I am trying to set up symlinks to the projects in my home folder (/home/gianpiero/code/) on my machine (Ubuntu 16.04) in order to work on those projects locally and check the results immediately in the browser. However, each time I make a symlink and try to open the website in the browser I get the error:

    You don't have permission to access / on this server.
    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.4.18 (Ubuntu)

    This is what I have done so far:
    1. Create a project directory, e.g. "/home/gianpiero/code/my-project"
    2. Save an "index.php" file in the directory
    3. Create a new website with ISPConfig (v. 3.1dev)
    4. In the directory "/var/www/clients/client1/my-project.test/", remove the directory "web"
    5. Create a symlink as follows: "ln -s /home/gianpiero/code/my-project web"
    If I remove the symlink, create a normal "web" directory in "/var/www/clients/client1/my-project.test/" and save the index.php file there, everything works fine.
    Is there an issue with symlinks? Is there a setting that allows the server to follow symlinks? Since I am only working on local development projects, I don't need high security settings at this stage.

Share This Page