Apache /var/www zu /home/ich/www wechseln

Dieses Thema im Forum "Web- & File-Services" wurde erstellt von Jehova1, 30.01.2014.

  1. #1 Jehova1, 30.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    Servus,
    ich hab gerade ein neues Ubuntu installiert (13.10) und einen neuen Apache.
    Nun will ich, dass mein Apache standardmäßig das verzeichnis /home/me/www als localhost anzeigt.
    Dafür gibt es im Netz auch so einige Anleitungen aber leider funktionieren die bisher nicht:

    Angeblich soll ich die datei /etc/apache2/sites-available/000-default.conf bearbeiten.
    Die sah auf meinem alten System so aus:
    Code:
    <VirtualHost *:80>
    	ServerAdmin webmaster@localhost
    
    	DocumentRoot /home/me/www
    	<Directory />
    	    Options FollowSymLinks
    	    AllowOverride None
    	</Directory>
    	<Directory /home/me/www/>
    	    Options Indexes FollowSymLinks MultiViews
    	    AllowOverride None
    	    Order allow,deny
    	    allow from all
    	</Directory>
    
    	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    	<Directory "/usr/lib/cgi-bin">
    		AllowOverride None
    		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    		Order allow,deny
    		Allow from all
    	</Directory>
    
    	ErrorLog ${APACHE_LOG_DIR}/error.log
    
    	# Possible values include: debug, info, notice, warn, error, crit,
    	# alert, emerg.
    	LogLevel warn
    
    	CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    Aber scheinbar hat sich da einiges geändert.
    In der aktuellen Standard-Datei stehen fast nur Kommentare drin:

    Code:
    <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 /var/www
    
    	# 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
    Wenn ich in dieser neuen Datei das "/var/www" zu "/home/me/www" abändere und Apache neu starte kommt ein Fail. In der error.log steht dann:
    Code:
    
    [Wed Jan 29 18:38:58.627941 2014] [mpm_event:notice] [pid 11880:tid 3074210368] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 18:38:58.628138 2014] [core:notice] [pid 11880:tid 3074210368] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:02:41.966906 2014] [mpm_event:notice] [pid 11880:tid 3074210368] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:02:43.079890 2014] [mpm_event:notice] [pid 12392:tid 3074402880] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:02:43.080074 2014] [core:notice] [pid 12392:tid 3074402880] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:02:56.131366 2014] [authz_core:error] [pid 12393:tid 3020925760] [client 127.0.0.1:46457] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:04:28.564559 2014] [mpm_event:notice] [pid 12392:tid 3074402880] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:04:29.676275 2014] [mpm_event:notice] [pid 12507:tid 3073903168] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:04:29.676460 2014] [core:notice] [pid 12507:tid 3073903168] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:09:23.276826 2014] [mpm_event:notice] [pid 12507:tid 3073903168] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:09:24.385483 2014] [mpm_event:notice] [pid 12675:tid 3074501184] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:09:24.385668 2014] [core:notice] [pid 12675:tid 3074501184] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:09:37.035311 2014] [authz_core:error] [pid 12678:tid 3054496576] [client 127.0.0.1:46602] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:02.431564 2014] [authz_core:error] [pid 12678:tid 3062889280] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:03.419212 2014] [authz_core:error] [pid 12678:tid 3046103872] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:03.621400 2014] [authz_core:error] [pid 12678:tid 3037711168] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:03.808975 2014] [authz_core:error] [pid 12678:tid 3029318464] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:04.008399 2014] [authz_core:error] [pid 12678:tid 3020925760] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:04.221409 2014] [authz_core:error] [pid 12678:tid 3012533056] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:04.401108 2014] [authz_core:error] [pid 12678:tid 3004140352] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:04.604312 2014] [authz_core:error] [pid 12678:tid 2995747648] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:04.823311 2014] [authz_core:error] [pid 12678:tid 2987354944] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:05.009720 2014] [authz_core:error] [pid 12678:tid 2978962240] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:05.185769 2014] [authz_core:error] [pid 12678:tid 2936998720] [client 127.0.0.1:46622] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:11:38.605469 2014] [mpm_event:notice] [pid 12675:tid 3074501184] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:11:39.720157 2014] [mpm_event:notice] [pid 12839:tid 3074308672] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:11:39.720334 2014] [core:notice] [pid 12839:tid 3074308672] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:15:05.183906 2014] [mpm_event:notice] [pid 12839:tid 3074308672] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:15:06.299539 2014] [mpm_event:notice] [pid 12992:tid 3073940032] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:15:06.299850 2014] [core:notice] [pid 12992:tid 3073940032] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:15:10.005426 2014] [authz_core:error] [pid 12993:tid 2944342848] [client 127.0.0.1:46678] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:15:11.027755 2014] [authz_core:error] [pid 12993:tid 2935950144] [client 127.0.0.1:46678] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:15:11.202913 2014] [authz_core:error] [pid 12993:tid 2927557440] [client 127.0.0.1:46678] AH01630: client denied by server configuration: /home/me/www/
    [Wed Jan 29 19:19:46.284500 2014] [mpm_event:notice] [pid 12992:tid 3073940032] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:19:47.391563 2014] [mpm_event:notice] [pid 13145:tid 3074226752] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:19:47.391733 2014] [core:notice] [pid 13145:tid 3074226752] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:25:15.324287 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.html denied (filesystem path '/var/www/html/resume/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.363940 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.cgi denied (filesystem path '/var/www/html/resume/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.363980 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.pl denied (filesystem path '/var/www/html/resume/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364003 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.php denied (filesystem path '/var/www/html/resume/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364026 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.xhtml denied (filesystem path '/var/www/html/resume/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364048 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.htm denied (filesystem path '/var/www/html/resume/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364094 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.html denied (filesystem path '/var/www/html/hannes/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364118 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.cgi denied (filesystem path '/var/www/html/hannes/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364141 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.pl denied (filesystem path '/var/www/html/hannes/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364162 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.php denied (filesystem path '/var/www/html/hannes/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364199 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.xhtml denied (filesystem path '/var/www/html/hannes/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:15.364231 2014] [core:error] [pid 13149:tid 2861464384] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.htm denied (filesystem path '/var/www/html/hannes/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538343 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.html denied (filesystem path '/var/www/html/resume/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538420 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.cgi denied (filesystem path '/var/www/html/resume/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538446 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.pl denied (filesystem path '/var/www/html/resume/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538470 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.php denied (filesystem path '/var/www/html/resume/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538493 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.xhtml denied (filesystem path '/var/www/html/resume/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538519 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.htm denied (filesystem path '/var/www/html/resume/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538561 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.html denied (filesystem path '/var/www/html/hannes/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538586 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.cgi denied (filesystem path '/var/www/html/hannes/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538609 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.pl denied (filesystem path '/var/www/html/hannes/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538633 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.php denied (filesystem path '/var/www/html/hannes/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538657 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.xhtml denied (filesystem path '/var/www/html/hannes/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:17.538682 2014] [core:error] [pid 13149:tid 3020925760] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.htm denied (filesystem path '/var/www/html/hannes/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.375887 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.html denied (filesystem path '/var/www/html/resume/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376014 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.cgi denied (filesystem path '/var/www/html/resume/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376064 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.pl denied (filesystem path '/var/www/html/resume/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376109 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.php denied (filesystem path '/var/www/html/resume/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376155 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.xhtml denied (filesystem path '/var/www/html/resume/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376199 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.htm denied (filesystem path '/var/www/html/resume/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376267 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.html denied (filesystem path '/var/www/html/hannes/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376312 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.cgi denied (filesystem path '/var/www/html/hannes/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376356 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.pl denied (filesystem path '/var/www/html/hannes/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376401 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.php denied (filesystem path '/var/www/html/hannes/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376445 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.xhtml denied (filesystem path '/var/www/html/hannes/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.376488 2014] [core:error] [pid 13149:tid 2995747648] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.htm denied (filesystem path '/var/www/html/hannes/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.599930 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.html denied (filesystem path '/var/www/html/resume/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600036 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.cgi denied (filesystem path '/var/www/html/resume/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600086 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.pl denied (filesystem path '/var/www/html/resume/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600159 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.php denied (filesystem path '/var/www/html/resume/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600206 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.xhtml denied (filesystem path '/var/www/html/resume/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600253 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.htm denied (filesystem path '/var/www/html/resume/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600329 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.html denied (filesystem path '/var/www/html/hannes/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600381 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.cgi denied (filesystem path '/var/www/html/hannes/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600431 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.pl denied (filesystem path '/var/www/html/hannes/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600477 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.php denied (filesystem path '/var/www/html/hannes/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600524 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.xhtml denied (filesystem path '/var/www/html/hannes/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.600570 2014] [core:error] [pid 13149:tid 2970569536] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.htm denied (filesystem path '/var/www/html/hannes/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.840937 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.html denied (filesystem path '/var/www/html/resume/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841061 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.cgi denied (filesystem path '/var/www/html/resume/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841113 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.pl denied (filesystem path '/var/www/html/resume/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841162 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.php denied (filesystem path '/var/www/html/resume/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841209 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.xhtml denied (filesystem path '/var/www/html/resume/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841287 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.htm denied (filesystem path '/var/www/html/resume/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841369 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.html denied (filesystem path '/var/www/html/hannes/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841423 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.cgi denied (filesystem path '/var/www/html/hannes/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841475 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.pl denied (filesystem path '/var/www/html/hannes/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841522 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.php denied (filesystem path '/var/www/html/hannes/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841570 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.xhtml denied (filesystem path '/var/www/html/hannes/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:18.841617 2014] [core:error] [pid 13149:tid 2945391424] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.htm denied (filesystem path '/var/www/html/hannes/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051102 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.html denied (filesystem path '/var/www/html/resume/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051216 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.cgi denied (filesystem path '/var/www/html/resume/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051267 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.pl denied (filesystem path '/var/www/html/resume/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051316 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.php denied (filesystem path '/var/www/html/resume/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051365 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.xhtml denied (filesystem path '/var/www/html/resume/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051413 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/resume/index.htm denied (filesystem path '/var/www/html/resume/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051531 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.html denied (filesystem path '/var/www/html/hannes/index.html') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051630 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.cgi denied (filesystem path '/var/www/html/hannes/index.cgi') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051682 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.pl denied (filesystem path '/var/www/html/hannes/index.pl') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051730 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.php denied (filesystem path '/var/www/html/hannes/index.php') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051778 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.xhtml denied (filesystem path '/var/www/html/hannes/index.xhtml') because search permissions are missing on a component of the path
    [Wed Jan 29 19:25:19.051825 2014] [core:error] [pid 13149:tid 3062889280] (13)Permission denied: [client 127.0.0.1:46816] AH00035: access to /html/hannes/index.htm denied (filesystem path '/var/www/html/hannes/index.htm') because search permissions are missing on a component of the path
    [Wed Jan 29 19:31:21.994023 2014] [mpm_event:notice] [pid 13145:tid 3074226752] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:31:23.101867 2014] [mpm_event:notice] [pid 13512:tid 3074730560] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:31:23.102045 2014] [core:notice] [pid 13512:tid 3074730560] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:31:52.403573 2014] [mpm_event:notice] [pid 13512:tid 3074730560] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:31:53.509845 2014] [mpm_event:notice] [pid 13654:tid 3074038336] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:31:53.510024 2014] [core:notice] [pid 13654:tid 3074038336] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 19:45:00.115978 2014] [mpm_event:notice] [pid 13654:tid 3074038336] AH00491: caught SIGTERM, shutting down
    [Wed Jan 29 19:46:08.606519 2014] [mpm_event:notice] [pid 1023:tid 3074071104] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Wed Jan 29 19:46:08.616256 2014] [core:notice] [pid 1023:tid 3074071104] AH00094: Command line: '/usr/sbin/apache2'
    [Wed Jan 29 20:01:30.754693 2014] [mpm_event:notice] [pid 1023:tid 3074071104] AH00491: caught SIGTERM, shutting down
    [Thu Jan 30 12:24:49.312775 2014] [mpm_event:notice] [pid 993:tid 3073940032] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Thu Jan 30 12:24:49.345280 2014] [core:notice] [pid 993:tid 3073940032] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Jan 30 12:32:54.618378 2014] [mpm_event:notice] [pid 993:tid 3073940032] AH00491: caught SIGTERM, shutting down
    [Thu Jan 30 12:50:50.564665 2014] [mpm_event:notice] [pid 996:tid 3074587200] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
    [Thu Jan 30 12:50:50.597180 2014] [core:notice] [pid 996:tid 3074587200] AH00094: Command line: '/usr/sbin/apache2'
    
    
    Kann mir jemand sagen, was das problem ist?
    Gruß, Jehova
     
  2. Anzeige

    Schau dir mal diese Kategorie an. Dort findest du bestimmt etwas.
    Registrieren bzw. einloggen, um diese und auch andere Anzeigen zu deaktivieren
  3. #2 HeadCrash, 30.01.2014
    HeadCrash

    HeadCrash Routinier

    Dabei seit:
    16.05.2009
    Beiträge:
    482
    Zustimmungen:
    1
    Ort:
    Bayern
    Servus,

    Bau mal unter der DocumentRoot-Anweisung ein
    Code:
    	<Directory /home/me/www/>
    	    Order allow,deny
    	    allow from all
    	</Directory>
    
    mit ein.

    Wahrscheinlich gibt es irgendwo in der httpd.conf eine Anweisung die erstmal den Zugriff auf alles auser "var/www" verbietet.

    mfg
    HeadCrash
     
  4. #3 Jehova1, 30.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    Hi HeadCrash,
    hab ich gemacht,
    leider Ist alles beim Alten, auch im Error Log.
    Seltsamerweise läuft der Apache trotz des "Fail" beim Neustart weiter; Er greift immer noch auf /var/www zu.
    Aber danke für die Antwort!
     
  5. #4 HeadCrash, 30.01.2014
    HeadCrash

    HeadCrash Routinier

    Dabei seit:
    16.05.2009
    Beiträge:
    482
    Zustimmungen:
    1
    Ort:
    Bayern
    Wie sehen die Verzeichnisrechte für /home/me/www aus? Darf der User www-data in das Verzeichnis?
     
  6. #5 Jehova1, 30.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    Wie finde ich das heraus?
     
  7. #6 HeadCrash, 30.01.2014
    HeadCrash

    HeadCrash Routinier

    Dabei seit:
    16.05.2009
    Beiträge:
    482
    Zustimmungen:
    1
    Ort:
    Bayern
    Code:
    ls -ld  /home/me
    
    ls -ld /home/me/www
    
    Außerdem solltes du eventuell mal einen Syntaxcheck über die Apachekonfiguration jagen
    "sudo apache2ctl -S" oder "sudo apache2ctl configtest"
     
  8. #7 Jehova1, 30.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    Code:
    me@me-Lenovo-3000-G530:~$ ls -ld  /home/me
    drwxr-xr-x 25 me me 4096 Jan 30 14:28 /home/me
    me@me-Lenovo-3000-G530:~$ ls -ld  /home/me/www
    drwxrwxr-x 5 me me 4096 Jan 30 13:40 /home/me/www
    me@me-Lenovo-3000-G530:~$ ^C
    me@me-Lenovo-3000-G530:~$ ^C
    me@me-Lenovo-3000-G530:~$ 
    
    Code:
    me@me-Lenovo-3000-G530:~$ sudo apache2ctl -S
    [sudo] password for me: 
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
    VirtualHost configuration:
    *:80                   is a NameVirtualHost
             default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
             port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
    ServerRoot: "/etc/apache2"
    Main DocumentRoot: "/var/www"
    Main ErrorLog: "/var/log/apache2/error.log"
    Mutex watchdog-callback: using_defaults
    Mutex default: dir="/var/lock/apache2" mechanism=fcntl 
    PidFile: "/var/run/apache2/apache2.pid"
    Define: DUMP_VHOSTS
    Define: DUMP_RUN_CFG
    User: name="www-data" id=33
    Group: name="www-data" id=33
    me@me-Lenovo-3000-G530:~$ 
    
    
    Code:
    me@me-Lenovo-3000-G530:~$ sudo apache2ctl configtest
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
    Syntax OK
    
    Hoffe du kannst damit was anfangen :)
     
  9. #8 HeadCrash, 30.01.2014
    HeadCrash

    HeadCrash Routinier

    Dabei seit:
    16.05.2009
    Beiträge:
    482
    Zustimmungen:
    1
    Ort:
    Bayern
    Sind die Ausgaben mit oder ohne deine Änderungen?

    Ist die "/etc/apache2/sites-enabled/000-default.conf" ein Link auf "/etc/apache2/sites-available/000-default.conf"? Sollte eigentlich.
     
  10. #9 tgruene, 30.01.2014
    tgruene

    tgruene Routinier

    Dabei seit:
    02.02.2012
    Beiträge:
    418
    Zustimmungen:
    0
    Sieht so aus, als wuerden da noch weitere Konfigurationsdateien eingelesen, die DocumentRoot auf '/var/www' setzen. Welche Rueckgabe erhaeltst Du denn mit dem Befehl "grep -r DocumentRoot /etc/apache2/" ?
     
  11. #10 Jehova1, 30.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    @HeadCrash
    die Ausgaben sind mit den Änderungen (mit dem hinzugefügten <directory>...</directory>)

    und ja, da ist ein link "000-default.conf" in der sites-enabled auf die entsprechende datei in der sites-available.

    @tgruene:
    Code:
    me@me-Lenovo-3000-G530:~$ grep -r DocumentRoot /etc/apache2/
    /etc/apache2/sites-available/me-space.conf~:	DocumentRoot /home/me/www
    /etc/apache2/sites-available/default-ssl.conf:		DocumentRoot /var/www
    /etc/apache2/sites-available/000-default-my.conf:	DocumentRoot /var/www
    /etc/apache2/sites-available/000-default.conf:	DocumentRoot /home/me/www
    /etc/apache2/sites-available/000-default.conf~:	DocumentRoot /home/me/www
    /etc/apache2/sites-available/000-default-untouched.conf:	DocumentRoot /var/www
    /etc/apache2/sites-available/me-space.conf:	DocumentRoot /home/me/www
    /etc/apache2/sites-enabled/000-default.conf~:	DocumentRoot /var/www
    
     
  12. #11 tgruene, 31.01.2014
    tgruene

    tgruene Routinier

    Dabei seit:
    02.02.2012
    Beiträge:
    418
    Zustimmungen:
    0
    Du hast keine Konfigurationsdatei in 'sites-enabled'. Die '~'-Dateien sind Sicherungsdateien vom Texteditor und duerften von Apache ignoriert werden. Damit greift Apache vermutlich auf eine default-Konfiguration zurueck. Loesch am besten die ~-Dateien und setzt den Link von sites-enabled nach sites-available/000-default.conf neu.
     
  13. #12 Jehova1, 31.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    Ok, der Link ist da und zeigt auch auf die richtige datei.
    Ich habe ihn auch mal mit a2dissite und a2ensite raus und wieder rein gemacht.

    Code:
    me@me-Lenovo-3000-G530:~$ sudo a2dissite 000-default.conf 
    Site 000-default disabled.
    To activate the new configuration, you need to run:
      service apache2 reload
    
    me@me-Lenovo-3000-G530:~$ sudo a2ensite 000-default.conf 
    Enabling site 000-default.
    To activate the new configuration, you need to run:
      service apache2 reload
    
    me@me-Lenovo-3000-G530:~$ service apache2 reload 
     * Reloading web server apache2                                                  * 
    
    Dann kommt unter der adresse localhost im Browser nicht mehr "It works", sondern "403 Forbidden".

    Aber der Grep-Befehl findet die 000-default.conf noch immer nicht...
    Code:
    me@me-Lenovo-3000-G530:~$ grep -r DocumentRoot /etc/apache2/
    /etc/apache2/sites-available/default-ssl.conf:		DocumentRoot /var/www
    /etc/apache2/sites-available/000-default-my.conf:	DocumentRoot /var/www
    /etc/apache2/sites-available/000-default.conf:	DocumentRoot /home/me/www
    /etc/apache2/sites-available/000-default-untouched.conf:	DocumentRoot /var/www
    /etc/apache2/sites-available/me-space.conf:	DocumentRoot /home/me/www
    me@me-Lenovo-3000-G530:~$ 
    
    Wenn ich nun die 000-default.conf in 000-default2.conf umbenenne findet er sie. Wenn ich sie wieder zurück-benenne findet er sie wieder nicht. ... Macht keinen Sinn
     
  14. #13 Jehova1, 31.01.2014
    Jehova1

    Jehova1 Routinier

    Dabei seit:
    22.08.2006
    Beiträge:
    333
    Zustimmungen:
    0
    Ort:
    Wo die wilden Kerle wohnen
    Hi nochmal,
    ich hab mein Problem jetzt anderweitig behoben.
    Ich bin dieser Anleitung gefolgt und habe eine alternative Site angelegt.

    Jetzt rufe ich den Server via me.local auf und er greift auf ~/public_html/me zu. Naja, fast so gut.

    Aber vielen Dank für die Hilfe Jungs!
     
  15. Anzeige

    Vielleicht findest du HIER Antworten.
    Registrieren bzw. einloggen, um diese und auch andere Anzeigen zu deaktivieren
  16. #14 RedTopcat, 03.02.2014
    RedTopcat

    RedTopcat Jungspund

    Dabei seit:
    30.09.2005
    Beiträge:
    16
    Zustimmungen:
    0
    Ort:
    Worms
    Hi,
    hattest Du eigentlich einmal versucht ganz einfach das www-Verzeichnis aus /var nach /home/me/ zu verschieben und dann das Verzeichnis /home/me/www nach /var als www zu verlinken? Habe auf diese weise schon viel umgebogen.
     
  17. #15 karloff, 03.02.2014
    Zuletzt bearbeitet: 03.02.2014
    karloff

    karloff Routinier

    Dabei seit:
    09.07.2007
    Beiträge:
    317
    Zustimmungen:
    0
    Ort:
    ~/
    Sollte eigentlich auch recht einfach über die fstab gehen.
    Code:
    /home/me/www    /var/www    none    bind,nodev,noexec,gid=www-data,uid=www-data,nonempty     0  0
    
    /var/www sollte leer sein, sonst werden wird das "übergemountet" und ist nicht mehr so leicht dran zu kommen, ungetestet.
     
Thema:

Apache /var/www zu /home/ich/www wechseln

Die Seite wird geladen...

Apache /var/www zu /home/ich/www wechseln - Ähnliche Themen

  1. apache2: Link zu /var/www erstellen, Konfiguration

    apache2: Link zu /var/www erstellen, Konfiguration: Hallo, da ich ein wenig in PHP programmieren möchte, hab ich mir apache2 und PHP5 installiert. Funktioniert auch alles. Ich habe mir in...
  2. Update auf Apache >=2.4.12 unter Debian Jessie

    Update auf Apache >=2.4.12 unter Debian Jessie: Hi, aufgrund eines Bugs in Apache 2.4 benötige ich zum Deployment von Seafile unter Debian Jessie das Paket apache2 in der Version >= 2.4.12...
  3. Centos und Apache (VirtualHost)

    Centos und Apache (VirtualHost): Hallo, ich bin gerade dabei die Firmenseiten unserer Unternehmensgruppe neu zu gestalten. Insgesammt sind es 3 Unternehmen. Als Server wurde mir...
  4. Apache Software Foundation gibt sich neues Logo

    Apache Software Foundation gibt sich neues Logo: Die Apache Software Foundation hat ihr Webseitendesign überarbeitet und sich ein neues Logo gegeben. Die Organisation sieht sich mit über 350...
  5. Apache Log-Meldung File does not exist

    Apache Log-Meldung File does not exist: Hallo zusammen, in der Logdatei von Apache wird folgende Meldung ausgegeben: … [Thu Jan 07 14:36:03 2016] [error] [client 111.222.333.444] File...