Hallo, ich wollte meine Wordpress Server umziehen und dann das DocumentRoot auf eine andere Festplatte auslagern. Dazu habe ich die Datei /etc/apache2/sites-available/000-default.conf geändert
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com ServerAdmin webmaster@localhost DocumentRoot /hdd/media/webseiten/wordpress # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf </VirtualHost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Rufe ich nun meinen Server an, erhalte ich die Meldung:
Forbidden
You don't have permission to access /index.html on this server. Apache/2.4.18 (Ubuntu) Server at 10.10.20.101 Port 80
Die Berechtigungen in dem Verzeichnis sehen so aus:
christian@cubietruck-orange:/media/hdd/webseiten/wordpress$ ls -alh total 1,3G drwxrwxr-x 2 www-data www-data 4,0K Feb 2 10:32 . drwxrwxr-x 3 www-data www-data 4,0K Feb 2 10:03 .. -rw-rw-r-- 1 www-data www-data 1,3G Feb 2 10:05 20170112_fotoblog_587741c605e983384170112084350_archive.zip -rw-rw-r-- 1 www-data www-data 12K Feb 2 10:32 index.html -rw-rw-r-- 1 www-data www-data 353K Feb 2 10:06 installer.php
Was mache ich falsch?