Hello everyone,
I hope you can help a semi-experienced Windows apache user, new to
Linux. I am unable to access files (anything) from http://localhost or
from any of my vhosts.
This is a new install of Linux Mint 17.x with the default Apache/2.4.7
(Ubuntu) install at /etc/apache2
My websites, plain html and PHP are kept on a different hard-drive.
/media/username/Terrabyte/00_Server/htdocs
ERRORS
--------------------------------------------------
The browser give me the following error.
Forbidden
You don't have permission to access / on this server.
Apache/2.4.7 (Ubuntu) Server at test.mydomain.ca Port 80
Logs give me the following error (/var/log/apache2/error.log)
[Wed Mar 09 19:43:48.458202 2016] [core:error] [pid 26732]
(13)Permission denied: [client 127.0.0.1:48727] AH00035: access to /
denied (filesystem path '/media/username/Terrabyte') because search
permissions are missing on a component of the path
ACTIONS TAKEN
--------------------------------------------------
Other than searching the web in-depth, I have read the following and
have followed the instructions here:
https://wiki.apache.org/httpd/13PermissionDenied
This is the current state of permissions
namei -m /media/username/Terrabyte/00_Server/htdocs/domain.ca/index.html
f: /media/username/Terrabyte/00_Server/htdocs/domain.ca/index.html
drwxr-xr-x /
drwxr-xr-x media
drwxr-x--- username
drwxr-x--x Terrabyte
drwxr-x--x 00_Server
drwxr-xr-x htdocs
drwxrwxr-x domain.ca
-rwxrwxr-x index.html
Checking each via terminal confirms these to be true.
CONFIG FILES
--------------------------------------------------
I have the following defined in
/etc/apache2/apache2.conf
/etc/apache2/sites-available/000-default.conf
/etc/apache2/sites-available/000-default-ssl.conf
ServerRoot "/etc/apache2"
DocumentRoot "/media/username/Terrabyte/00_Server/htdocs"
The following has been added to the "Security model" section, a direct
copy of '<Directory /var/www/>'
<Directory /media/username/Terrabyte/00_Server/htdocs/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
SYNTAX:
apachectl configtest tells me that the syntax is OK.
--------------------------------------------------
A final note: I have defined my vhosts in vhosts.conf and have included
it at the end of my apache2.conf. Commenting it out and restarting
apache2 makes no difference.
Not sure what other pertinent information I can offer.
Suggestions?
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org