Page 1 of 1

An apache server in ubunbu cannot access the folder mounted

PostPosted: 10. January 2016 15:37
by stuart3501
I used “mount cifs” to mount a folder. According to the request of users, I need to install an apache as a http file server. Then, I use symbolic link, linked all the CIFS folder to /var/www/html I add one in /etc/fstab: “//10.11.11.11/public /CIFS cifs username=smbuser,password=smbuser,uid=www-data,gid=www-data,iocharset=utf8 0 0” to mount this CIFS folder. I can use command line to access this folder. However, the apache server cannot link to this CIFS folder. The log is “AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/package”

I add this in apache2.conf: Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

In “/etc/apache2/sites-enabled/ssl.conf”

I add this config: ServerAdmin webmaster@localhost

DocumentRoot /var/www/html

DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

Ps: I also try to use Alias in apache, but I met the same error log while access the deeper folder under the folder setting in “Alias”

Is anyone can give me an idea?

Re: An apache server in ubunbu cannot access the folder moun

PostPosted: 10. January 2016 18:54
by Nobbie
stuart3501 wrote:In “/etc/apache2/sites-enabled/ssl.conf”


a) that is NOT a Xampp installation (see above, you are in a Xampp forum!).

b) according to the filename, i would suggest (but i am not sure, as it is not a Xampp installation) that this is only for ssl connections (i.e. https: and not http:).

You did not tell us, what you enter into your browser in order to access your files anyway. Probably http://localhost or so??