troubleshooting Question

Internal Server Error when accessing page through symbolic link

Avatar of haidermosawi
haidermosawi asked on
Apache Web Server
8 Comments1 Solution217 ViewsLast Modified:

First off: My host provides me with two directories:

1- /usr/home/(account name)
2- /usr/www/users/(account name)/(domain directory)

I placed my web files in the home directory, and created a symbolic link to access the directory that should be accessible to the public (I'm using symfony, so that's a single directory - called web).

With this set up I get an "Access Forbidden" error. So I added a .htaccess file in my domain directory (/usr/www/users/(account name)/(domain directory) i.e. it's in the same folder as my symbolic link).

I now get an Internal Server Error, which I can't seem to brush off. The contents of my .htaccess file are:

AddDefaultCharset utf-8
AddType application/x-httpd-php5cgi .php

<VirtualHost *:80>
  DocumentRoot "/usr/home/username/domaindir/web"
  <Directory "/usr/home/username/domaindir/web">
   AllowOverride All
   Allow from All

Note: I used to have a passwd file in my web directory, which I removed in the hope of fixing the Access Forbidden problem.

Any help will be highly appreciated.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros