An apache server in ubunbu cannot access the folder mounted

Problems with the Linux version of XAMPP, questions, comments, and anything related.

An apache server in ubunbu cannot access the folder mounted

Postby stuart3501 » 10. January 2016 15:37

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?
stuart3501
 
Posts: 1
Joined: 10. January 2016 15:36
Operating System: ubuntu

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

Postby Nobbie » 10. January 2016 18:54

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??
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 65 guests