Ich bin ein Anfänger, was den Gebrauch von Apache betrifft, wollte mir endlich mal Ruby in Ruby on Rails anschauen und habe mir ein Problem eingehandelt, das ich alleine nicht lösen kann.
Mein Versuch war, Ruby on Rails in XAMPP 1.8 zu installieren und bin nach Anleitung vorgegangen: http://www.andriets.com/development-en/ruby/ruby-xampp-en.html
Bis zu Punkt 8 ging alles gut. Dort sollte ich in die httpd.conf folgenden Text kopieren:
Listen 3000
LoadModule rewrite_module modules/mod_rewrite.so
################
# RUBY
################
ServerName rails
DocumentRoot "D:/Projects/xampp/htdocs/dev-ruby/APPLICATION_NAME/public"
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
################
# RUBY
################
Ich nehme mal an, das bedeutet ungerfähr, dass auf Port 3000 von nun an Rails laufen soll. Stimmt das?
Gelesen, getan, ich habe diese Zeilen einfach ans Ende von httpd.conf kopiert und gespeichert. Danach startete der Apache aus dem XAMPP Control-Panel nicht mehr. In der error.log steht Folgendes:
[Wed Dec 12 12:35:45.831445 2012] [core:warn] [pid 2552:tid 252] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Dec 12 12:35:45.864447 2012] [ssl:warn] [pid 2552:tid 252] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 12 12:35:45.916450 2012] [mpm_winnt:notice] [pid 2552:tid 252] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Dec 12 12:35:45.916450 2012] [mpm_winnt:notice] [pid 2552:tid 252] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Dec 12 12:35:45.916450 2012] [core:notice] [pid 2552:tid 252] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 12 12:35:45.918450 2012] [mpm_winnt:notice] [pid 2552:tid 252] AH00418: Parent: Created child process 3420
[Wed Dec 12 12:35:46.345475 2012] [ssl:warn] [pid 3420:tid 264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 12 12:35:46.381477 2012] [mpm_winnt:notice] [pid 3420:tid 264] AH00354: Child: Starting 150 worker threads.
[Wed Dec 12 13:01:48.070844 2012] [core:warn] [pid 2616:tid 256] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Dec 12 13:01:48.135848 2012] [ssl:warn] [pid 2616:tid 256] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 12 13:01:48.187851 2012] [mpm_winnt:notice] [pid 2616:tid 256] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Dec 12 13:01:48.187851 2012] [mpm_winnt:notice] [pid 2616:tid 256] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Dec 12 13:01:48.187851 2012] [core:notice] [pid 2616:tid 256] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 12 13:01:48.189851 2012] [mpm_winnt:notice] [pid 2616:tid 256] AH00418: Parent: Created child process 2552
[Wed Dec 12 13:01:48.695880 2012] [ssl:warn] [pid 2552:tid 268] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 12 13:01:48.731882 2012] [mpm_winnt:notice] [pid 2552:tid 268] AH00354: Child: Starting 150 worker threads.
[Wed Dec 12 14:13:03.665526 2012] [core:warn] [pid 2756:tid 256] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Dec 12 14:13:03.713529 2012] [ssl:warn] [pid 2756:tid 256] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 12 14:13:03.764532 2012] [mpm_winnt:notice] [pid 2756:tid 256] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Wed Dec 12 14:13:03.764532 2012] [mpm_winnt:notice] [pid 2756:tid 256] AH00456: Server built: Aug 18 2012 12:41:37
[Wed Dec 12 14:13:03.765532 2012] [core:notice] [pid 2756:tid 256] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 12 14:13:03.767532 2012] [mpm_winnt:notice] [pid 2756:tid 256] AH00418: Parent: Created child process 2528
[Wed Dec 12 14:13:04.159554 2012] [ssl:warn] [pid 2528:tid 268] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Dec 12 14:13:04.196556 2012] [mpm_winnt:notice] [pid 2528:tid 268] AH00354: Child: Starting 150 worker threads.
Ich werde daraus nicht schlau. Dieses Logfile betrifft 1 erfolgreichen Versuch, Apache zu starten, mehrere erfolglose, und schließlich am Ende wieder einen erfolgreichen, nachdem ich das Listen 3000 ... wieder aus der httpd.conf gelöscht habe.
Kann jemand einen Fehler entdecken/vermuten? Vielen Dank!!