Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi i have been trying to configure web server httpd with cricket bandwidth monitor, have symbolic links to the cricket directory and have the following lines in my httpd.conf file
the answer is yes and the links are already relative as per ur suggestion, could there be a global configuration which is blocking sym links?. which is not in httpd.conf?
Where is the cricket directory located? .. is it under the /var/www/html ? It's ahrd to really help when you dont know the setup. Have you tried without +?
Edit: if your symlink target dir is outside the directory for which you enabled FollowSymLinks your apache will not be able to follow the symlink.
Be careful with the directory-path arguments: They have to literally match the filesystem path which Apache uses to access the files. Directives applied to a particular <Directory> will not apply to files accessed from that same directory via a different path, such as via different symbolic links.
Regards
Andy
Last edited by digitalnerds; 05-18-2007 at 06:46 AM.
the cricket directory is in /home/cricket/cricket , the links from /var/www/html are to ths directory .i also have tried without the + to no avail i also have
added
<Directory /home/cricket/cricket>
Options FollowsymLinks ExecCGI
</Directory>
but no change again!
I wasnt clear enough. You may add a new directive for /home/cricket/cricket it doesnt matter. Your /var/www/html will not be able to follow links outside /var/www/html. In your case apache will refuse to follow symlinks inside /var/www/html that leads to /home/cricket/cricket. I repeat myself "if your symlink target dir is outside the directory for which you enabled FollowSymLinks your apache will not be able to follow the symlink." So you do not need to add:
because the most you will is to specify that all symlinks inside /home/cricket/cricket are to be followed within the boundaries of the PATH apache uses to access those files.
I wasnt clear enough. You may add a new directive for /home/cricket/cricket it doesnt matter. Your /var/www/html will not be able to follow links outside /var/www/html. In your case apache will refuse to follow symlinks inside /var/www/html that leads to /home/cricket/cricket. I repeat myself "if your symlink target dir is outside the directory for which you enabled FollowSymLinks your apache will not be able to follow the symlink." So you do not need to add:
because the most you will is to specify that all symlinks inside /home/cricket/cricket are to be followed within the boundaries of the PATH apache uses to access those files.
Regards
Andy
I don't know if you are running the 2.6 kernel with SELinux enabled, but here is something else to consider:
Don't forget to also check SELinux permissions on the directory with
ls -Z /home/cricket/cricket
there is anew twist to the saga, i have just made some adjustments, i had a link pointing to another link in the cricket directory
as in from /var/www/html/cricket to /home/cricket/cricket the second cricket directory is actually a link within the /home/cricket directory to the actual directory- cricket-1.0.5so i suppose thats where the problem was coming from, now i have removed this sym link and have a link from /var/www/html to /home/cricket/cricket-1.0.5 which is the actual cricket config directory,
the symlinks not allowed error in th logs is gone but now the problem is the cgi scripts like grapher.cgi in cricket-1.0.5 are not running
, from the browser u get a text file instead of a graph
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.