Hallo liebe Community,
ich hab es geschafft. XAMPP 1.5.3a läuft einwandfrei. Kann alles über das Control Panel starten und administrieren. SUPER!
Danach hab ich hier die sehr nützlichen leider aber auch unzähligen Beiträge zum Thema vhost gelesen und mich gleich daran gemacht einen vhost einzurichten. Und siehe da. Auch das läuft.
Einen vhost in W:\WEBSRV\xampp\apache\conf\extra\httpd-vhosts.conf ergänzt.
- Code: Select all
NameVirtualHost *:80
<VirtualHost project.local:80>
DocumentRoot W:/WEBSRV/xampp/htdocs/project.local
ServerName project.local
</VirtualHost>
Natürlich auch die Raute # in W:\WEBSRV\xampp\apache\conf\httpd.conf entfernt.
- Code: Select all
Include conf/extra/httpd-vhosts.conf
Und dann noch den DNS-Eintrag in C:\WINDOWS\system32\drivers\etc\host
- Code: Select all
127.0.0.1 localhost
127.0.0.1 project.local
Folgende ULR im Browser: http://project.local/ und schon zaubert mir meine index.php das erste "Hallo Welt!" auf den Schirm.
ABER
Wenn ich jetzt im Control Panel auf Admin... klicke, springt der Browser auf http://localhost/ und zeigt mir wieder mein "Hallo Welt!". Ich will doch aber die XAMPP Willkommensseite sehen?!
Im error.log steht eine Warnung:
- Code: Select all
[Sat Jul 29 16:56:04 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Sat Jul 29 16:56:04 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Sat Jul 29 16:56:06 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Sat Jul 29 16:56:06 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Sat Jul 29 16:56:08 2006] [notice] Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
[Sat Jul 29 16:56:08 2006] [notice] Server built: May 9 2006 14:08:48
[Sat Jul 29 16:56:08 2006] [notice] Parent: Created child process 3676
[Sat Jul 29 16:56:09 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Jul 29 16:56:10 2006] [warn] NameVirtualHost *:80 has no VirtualHosts
[Sat Jul 29 16:56:12 2006] [notice] Child 3676: Child process is running
[Sat Jul 29 16:56:12 2006] [notice] Child 3676: Acquired the start mutex.
[Sat Jul 29 16:56:12 2006] [notice] Child 3676: Starting 250 worker threads.
[Sat Jul 29 16:56:12 2006] [notice] Child 3676: Starting thread to listen on port 443.
[Sat Jul 29 16:56:12 2006] [notice] Child 3676: Starting thread to listen on port 80.
Wenn ich den vhost wieder entferne, den Apache aus dem Control Panel starte, und dann auf Admin... klicke, komme ich wieder zur XAMPP Willkommensseite. URL im Browser ist http://localhost/xampp/! Zwar sind die Warnungen weg, aber trotzdem habe ich noch diese Meldungen in der error.log.
- Code: Select all
[Sat Jul 29 17:02:00 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Sat Jul 29 17:02:00 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Sat Jul 29 17:02:02 2006] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Sat Jul 29 17:02:02 2006] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Sat Jul 29 17:02:04 2006] [notice] Apache/2.2.2 (Win32) DAV/2 mod_ssl/2.2.2 OpenSSL/0.9.8b mod_autoindex_color PHP/5.1.4 mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operations
[Sat Jul 29 17:02:04 2006] [notice] Server built: May 9 2006 14:08:48
[Sat Jul 29 17:02:04 2006] [notice] Parent: Created child process 2636
[Sat Jul 29 17:02:09 2006] [notice] Child 2636: Child process is running
[Sat Jul 29 17:02:09 2006] [notice] Child 2636: Acquired the start mutex.
[Sat Jul 29 17:02:09 2006] [notice] Child 2636: Starting 250 worker threads.
[Sat Jul 29 17:02:09 2006] [notice] Child 2636: Starting thread to listen on port 443.
[Sat Jul 29 17:02:09 2006] [notice] Child 2636: Starting thread to listen on port 80.
Ich vermute mal, dass das zwei verschiedene Ursachen hat. Kann mir jemand sagen, wie ich trotz vhost noch die XAMPP Willkommensseiten erreichen kann? Bitte Bitte Bitte...
Vielen Dank vero
Hier die Lösung:http://community.apachefriends.org/f/viewtopic.php?p=81474#81474