Berlin_1946
Supporter, Wikiteam
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Das hier habe ich getestet. rufe sie über den Webbrowser http://deinserver/info.php auf. Klappt das
ja das klappt bei mir. Das hier habe ich auch beachtet.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 | <IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
# php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>
|
Das hier führt zu einer Fehlermeldung, die mir leider nicht weiter hilf 😢 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 | grpc@grpc-MS-7658:~$ sudo a2enmod userdir
Enabling module userdir.
To activate the new configuration, you need to run:
service apache2 restart
grpc@grpc-MS-7658:~$ service apache2 restart
* Restarting web server apache2 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Apr 27 18:10:14 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Sat Apr 27 18:10:14 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
|
Wer kann helfen ❓
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Benutze sudo um den Apache neuzustarten: sudo service apache2 restart
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Hi xabbuh, es kommt eine Fehlermeldung: | grpc@grpc-MS-7658:~$ sudo service apache2 restart
[sudo] password for grpc:
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Apr 29 10:48:30 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Apr 29 10:48:31 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[ OK ]
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Zeige mal bitte die Ausgabe von sudo apache2ctl -S .
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Zeige mal bitte die Ausgabe von sudo apache2ctl -S.
| grpc@grpc-MS-7658:~$ sudo apache2ctl -S
[sudo] password for grpc:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Mon Apr 29 14:19:02 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/000-default:1)
Syntax OK
|
Ich habe das hier gefunden und damit hat sich apache2ctl -S so geändert. | grpc@grpc-MS-7658:~$ apache2ctl -S
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
[Mon Apr 29 16:30:20 2013] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server localhost (/etc/apache2/sites-enabled/000-default:1)
port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default:1)
Syntax OK
|
Hier der Fullstatus: leider kann ich hier nicht weiter. | grpc@grpc-MS-7658:~$ sudo apache2ctl fullstatus
/usr/sbin/apache2ctl: 99: /usr/sbin/apache2ctl: www-browser: not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
|
Der Auszug aus dem error.log : | grpc@grpc-MS-7658:/var/log/apache2$ cat error.log | grep error
[Mon Apr 29 16:28:25 2013] [error] [client 127.0.0.1] File does not exist: /var/www/vnstat
[Mon Apr 29 16:28:25 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Mon Apr 29 16:28:25 2013] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Wie sehen denn Deine VHost Konfigurationen aus (/etc/apache2/sites-enabled/000-default)?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Hi, hier meine /etc/apache2/sites-enabled/000-default 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 | grpc@grpc-MS-7658:/etc/apache2/sites-enabled$ cat 000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/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
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Vermutlich in /etc/apache2/ports.conf gibt es die Option NameVirtualHost. Steht die bei Dir auf *:80?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Hi, so wie ich das beurteilen kann , nein siehe Zeile 12
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 | grpc@grpc-MS-7658:/etc/apache2$ cat ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
# NameVirtualHost *:80
# Listen 80
# siehe : http://wiki.ubuntuusers.de/Apache#Auf-lokales-System-beschraenken
Listen localhost:80
NameVirtualHost *
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Dann nimm mal Zeile 12 raus und dafür Zeile 9 (NameVirtualHost *:80) rein.
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Hi, geändert.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | # If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
# Listen 80
# siehe : http://wiki.ubuntuusers.de/Apache#Auf-lokales-System-beschraenken
# Listen localhost:80
# NameVirtualHost *
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
|
Sry, kannst du mir morgen weiter helfen, ich muss jetzt beenden. Leider.
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Was bekommst Du denn jetzt für eine Ausgabe bei sudo service apache2 restart ?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Hi, | grpc@grpc-MS-7658:~$ sudo service apache2 restart
* Restarting web server apache2
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
[fail]
|
Hier die Statusmeldung: | grpc@grpc-MS-7658:~$ apache2ctl status
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
/usr/sbin/apache2ctl: 99: /usr/sbin/apache2ctl: www-browser: not found
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
|
|
xabbuh
Anmeldungsdatum: 25. Mai 2006
Beiträge: 6411
|
Was sagt denn ls -la /var/log/apache2 ?
|
Berlin_1946
Supporter, Wikiteam
(Themenstarter)
Anmeldungsdatum: 18. September 2009
Beiträge: 9932
|
Hi, | grpc@grpc-MS-7658:~$ ls -la /var/log/apache2
insgesamt 24
drwxr-x--- 2 root adm 4096 Apr 27 14:05 .
drwxr-xr-x 16 root root 4096 Mai 1 09:03 ..
-rw-r----- 1 root adm 7104 Apr 30 16:44 access.log
-rw-r----- 1 root adm 6393 Apr 30 19:06 error.log
-rw-r--r-- 1 root root 0 Apr 27 14:05 other_vhosts_access.log
|
|