Avatar of maxman100
maxman100
 asked on

symlink in htaccess go error 500

Hi
 I have centos 6.3 server with "Virtulmin" ext for domain management for each domain I build i must remove the symlink from the htaccess otherwise i get error 500 any suggestion
thanks
Linux Networking

Avatar of undefined
Last Comment
gheist

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
gheist

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
maxman100

ASKER
Thank you for your respond
 I drive the  Virtualmin other than "HOME" default home directory "in my case /var/www/html"
how can map it please concern that I"m newbie in Linux

thanks again
gheist

Apache Documentation is here (middle column - read all)
https://httpd.apache.org/docs/2.4/

You need to add alias in httpd.conf where you attempt to stick symlink.
Daniel McAllister

You can allow sym-links in apache on a directory-by-directory basis, or you may be blocking them on a system-wide basis.

The most common time this shows up is when people upgrade older Apache systems to newer ones (usually in a jump from, say RHEL 5 to RHEL 6)... as the default behavior has changed.

I hope this helps point you in the right direction for complete assistance.

Happy Holidays!

Dan
IT4SOHO
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
gheist

PHP will not work with symlinked directory... And it is a security hole,a nd kills chroot if you wish one etc.
SOLUTION
Daniel McAllister

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
gheist

https:#a38720337 (virtualmin uses PHP)
https:#a38735185 (very detailed explanation for normal systems