open_basedir and symlink problem

I am running into a problem where I can't allow access to a symlink directory in my vhost_ssl.conf file. For some reason PHP (or maybe it's apache) isn't recognizing the symlink path.

/var/www/vhosts/site/ is the real path
/home/httpd/vhosts/site/ would be the path with a symlink (/home/httpd/vhosts -> /var/www/vhosts)

I need to get this to work somehow for a backup server. The primary server doesn't use symlinks while the backup does.

Now the line in the vhost_ssl.conf is as follows:

DocumentRoot /home/httpd/vhosts/site/httpsdocs
<Directory /home/httpd/vhosts/site/httpsdocs>
      <IfModule sapi_apache2.c>
            php_admin_flag engine on
            php_admin_value open_basedir "/var/www/vhosts/site/extraDir:/home/httpd/vhosts/site/httpsdocs:/tmp:/home/httpd/vhosts/site/extraDir2:/home/httpd/vhosts/site/extraDir"
        </IfModule>
      SSLRequireSSL
      Options +Includes +ExecCGI
</Directory>
<Directory /var/www/vhosts/site/httpsdocs>
      php_admin_flag engine on
      php_admin_value open_basedir "/var/www/vhosts/site/httpsdocs:/tmp:/home/httpd/vhosts/site/extraDir2:/var/www/vhosts/site/extraDir;/home/httpd/vhosts/site/extraDir/:/home/httpd/vhosts/site/extraDir2"
      SSLRequireSSL
      Options +Includes +ExecCGI
</Directory>
ShroderAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ravenplCommented:
Try Adding
FollowSymLinks
to the Option List in both <Directory> sections

Options +Includes +ExecCGI +FollowSymLinks
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.