SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
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.
I had one opensuse 13.2 server. I am trying to access a website with symlink, but i gets below error in apache logs,
Code:
[core:error] [pid 1337] [client 192.168.1.101:46119] AH00037: Symbolic link not allowed or link target not accessible: /srv/www, referer: http://192.168.1.102/owncloud/
Dear Experts,
I had one opensuse 13.2 server. I am trying to access a website with symlink, but i gets below error in apache logs,
Code:
[core:error] [pid 1337] [client 192.168.1.101:46119] AH00037: Symbolic link not allowed or link target not accessible: /srv/www, referer: http://192.168.1.102/owncloud/
my server config files
Code:
linux:~ # cat /etc/apache2/default-server.conf
DocumentRoot "/srv/www/htdocs"
<Directory "/srv/www/htdocs">
Options +FollowSymlinks +Multiviews
AllowOverride All
Require all granted
</Directory>
A few things, and you may have already tried them:
Did you restart apache after making this change? If not...try that first. You *MUST* restart Apache after making config file changes, before they will take effect.
Things are case-sensitive....it should be "MultiViews" not "Multiviews"
I had already posted the outputs of all your cmds except /. please find below
Except I had not GIVEN YOU ANY COMMANDS....did you not read/understand my post??? Again:
Did you restart apache after making this change? If not...try that first. You *MUST* restart Apache after making config file changes, before they will take effect.
Things are case-sensitive....it should be "MultiViews" not "Multiviews"
Try specifying the options without the + signs.
Additional from yesterday: did you check the error logs for Apache after you RESTARTED IT with the mis-cased option??
There are no 'commands' to try, and nothing to do with permissions.
I did changes suggested by you now
1) Multiviews to MultiViews
2) Removed + sign
3) Most imp (I was doing everytime after making changes in config files)
3a) Check syntax by cmd apache2ctl configtest. If its results me syntax ok then
3b) /etc/init.d/apache2 restart
Code:
but still no effect
Lastly. I know that you had not given me any cmds but ember1205 asked me to post them which i already posted before his reply.
I replied to both of you. I apologies if it got personally to you.
I did changes suggested by you now
1) Multiviews to MultiViews
2) Removed + sign
3) Most imp (I was doing everytime after making changes in config files)
3a) Check syntax by cmd apache2ctl configtest. If its results me syntax ok then
3b) /etc/init.d/apache2 restart
but still no effect
Interesting...did you try "service apache2 restart", instead of the init.d command you posted? And did you actually check the error logs (typically in /var/log/apache2/error_log). I would run:
Code:
cat /dev/null > /var/log/apache2/error_log
service apache2 restart
So I could see a 'fresh' (and small) set of data from the apache startup. You could also try putting "Options All" as a test, and see if symlinks work for you then. If so, there may be a typo....which I see in your original post. As said before...those options are case sensitive, and from the Apache sample config file, it should be "FollowSymLinks"...you have a lower-case "l".
linux:~ # cat /dev/null > /var/log/apache2/error_log
linux:~ # service apache2 restart
linux:~ # cat /var/log/apache2/error_log
[Tue Nov 01 14:37:02.962836 2016] [mpm_prefork:notice] [pid 1084] AH00170: caught SIGWINCH, shutting down gracefully
AH00557: httpd2-prefork: apr_sockaddr_info_get() failed for linux
AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Tue Nov 01 14:37:03.134143 2016] [ssl:warn] [pid 1194] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Nov 01 14:37:03.139504 2016] [mpm_prefork:notice] [pid 1194] AH00163: Apache/2.4.10 (Linux/SUSE) PHP/5.6.1 OpenSSL/1.0.1k-fips configured -- resuming normal operations
[Tue Nov 01 14:37:03.139579 2016] [core:notice] [pid 1194] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Tue Nov 01 14:45:01.705603 2016] [core:error] [pid 1269] [client 192.168.1.101:52003] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
[Tue Nov 01 14:45:01.759908 2016] [core:error] [pid 1269] [client 192.168.1.101:52003] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
[Tue Nov 01 14:45:01.770377 2016] [core:error] [pid 1269] [client 192.168.1.101:52003] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
Code:
Please note: These logs are after changing the Options to All from previous
linux:~ # cat /dev/null > /var/log/apache2/error_log
linux:~ # service apache2 restart
linux:~ # cat /var/log/apache2/error_log
[Tue Nov 01 14:37:02.962836 2016] [mpm_prefork:notice] [pid 1084] AH00170: caught SIGWINCH, shutting down gracefully
AH00557: httpd2-prefork: apr_sockaddr_info_get() failed for linux
AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Tue Nov 01 14:37:03.134143 2016] [ssl:warn] [pid 1194] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Nov 01 14:37:03.139504 2016] [mpm_prefork:notice] [pid 1194] AH00163: Apache/2.4.10 (Linux/SUSE) PHP/5.6.1 OpenSSL/1.0.1k-fips configured -- resuming normal operations
[Tue Nov 01 14:37:03.139579 2016] [core:notice] [pid 1194] AH00094: Command line: '/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -D FOREGROUND'
[Tue Nov 01 14:45:01.705603 2016] [core:error] [pid 1269] [client 192.168.1.101:52003] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
[Tue Nov 01 14:45:01.759908 2016] [core:error] [pid 1269] [client 192.168.1.101:52003] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
[Tue Nov 01 14:45:01.770377 2016] [core:error] [pid 1269] [client 192.168.1.101:52003] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
Ok...and did you read ALL of my last post??? Did you see the part where I suggested you use "All", and that you check the FollowSymLinks directive, because you don't have the right case??? Might want to do/try the things suggested, instead of posting back one thing at a time.
These logs are after changing Options to All from my previous Options
Code:
linux:~ # cat /etc/apache2/conf.d/owncloud.conf
Alias /owncloud "/srv/www/htdocs/owncloud/"
<Directory "/srv/www/htdocs/owncloud">
Options All
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /srv/www/htdocs/owncloud
SetEnv HTTP_HOME /srv/www/htdocs/owncloud
</Directory>
<Directory "/srv/www/htdocs/owncloud/data/">
# just in case if .htaccess gets disabled
Require all denied
</Directory>
## Please enable this manually, if needed. See also
## https://doc.owncloud.org/server/8.2/admin_manual/issues/index.html#apple-ios
# Redirect 301 /.well-known/carddav /owncloud/remote.php/carddav
# Redirect 301 /.well-known/caldav /owncloud/remote.php/caldav
<Directory "/srv/www>
Options All
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
Please provide output of ALL of the directories that I asked for earlier. You believe that you already have, but you have not - you have yet to provide output of
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.