Apache startet nach Änderung des htdocs-Verzeichnisses nicht

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Apache startet nach Änderung des htdocs-Verzeichnisses nicht

Postby N8RD » 29. July 2012 13:13

Hallo liebe Community,

zunächst eine kleine Vorstellung meiner Wenigkeit:
ich bin Wirtschaftsinformatikstudent mit der momentanen Projektaufgabe eine Webseite zu erstellen.
Dazu benutzen meine Gruppe und ich XAMPP.

Nun hätten wir eine Frage:

wir haben in der Datei httpd.conf das Document Root für den htdocs-Ordner geändert. Leider startet der Apache dann nicht mehr. Er hat kurz den Status "startet" wechselt dann aber wieder in den Status "beendet" zurück.

Wo könnte der Fehler begragebn liegen?

Viele Grüße



N8RD
N8RD
 
Posts: 4
Joined: 29. July 2012 13:08
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache startet nach Änderung des htdocs-Verzeichnisses n

Postby Altrea » 29. July 2012 17:11

Hallo N8RD,

Prinzipiell protokolliert der Apache jeden Startversuch (mit etwaigen Fehlerursachen) in der Datei \xampp\apache\logs\error.log
Das wäre also deine erste Anlaufstelle.
Änderst du das DocumentRoot Verzeichnis, solltest du auch daran denken, den <Directory> Eintrag in derselben Datei ebenfalls anzugleichen.

mit freundlichen Grüßen,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6829
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Apache startet nach Änderung des htdocs-Verzeichnisses n

Postby N8RD » 29. July 2012 22:26

Hallo,

danke für deine Rückmeldung.

ich habe mich quasi genau an diese Anleitung gehalten:

m-werk wrote:Hallo,

im Ordner .../Apache2/conf/ gibt es eine Date namens httpd.conf

Diese mit dem Editor öffnen und folgende Einträge ändern:

Original:
#
#DocumentRoot: The directory out of which you will serve your
#documents. By default, all requests are taken from this directory, but
#symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Programme/xampp/Apache2/htdocs" (kann auch anders lauten)

NEU:
#
#DocumentRoot: The directory out of which you will serve your
#documents. By default, all requests are taken from this directory, but
#symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/Persönliches-Verzeichnis"

und weiter unten:
Orignial:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Programme/xampp/Apache2/htdocs"> (kann auch anders lauten)

NEU:

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/Persönliches-Verzeichnis">

Hoffe geholfen zu haben.

lg, m-wer


Kann es sein, dass mein Pfad vielleicht zu lang ist?

Viele Grüße
N8RD
 
Posts: 4
Joined: 29. July 2012 13:08
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache startet nach Änderung des htdocs-Verzeichnisses n

Postby Altrea » 29. July 2012 23:17

Hallo N8RD,

N8RD wrote:ich habe mich quasi genau an diese Anleitung gehalten:
[...]

Wenn du schon zitierst, dann schließe das Zitat bitte in quote-BBTags ein um die Übersichtlichkeit zu fördern.
Weiterhin sollten Zitate soweit möglich mit einem Verweis auf die Quelle versehen werden, damit Aussagen nicht einfach aus dem Zusammenhang gerissen werden.
In deinem Fall bezieht sich die Anleitung auf folgendem Thread: viewtopic.php?t=15657#p66150

N8RD wrote:Kann es sein, dass mein Pfad vielleicht zu lang ist?

Ich kann nicht hellsehen. Du hast uns weder den neuen Pfad genannt, noch was der Apache error.log sagt.
Ohne die Aussagen aus dem Logfile kann ich dir keine passende Hilfe bieten.

mit freundlichen Grüßen,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6829
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64

Re: Apache startet nach Änderung des htdocs-Verzeichnisses n

Postby N8RD » 06. August 2012 18:03

Hallo,
sorry, dass ich mich jetzt erst zurückmelde, aber ich bin umgezogen...

B2T:
1. Der Zitierfehler wird nicht mehr vorkommen;-)

2. Hier mal meine Verzeichnisse, die ich in der httpd.conf geändert habe:

DocumentRoot "C:\Users\Pink Panther\Dropbox\Webprogrammierung\01_Unser Projekt\01_Page_Unsere Version\htdocs"

<Directory "C:\Users\Pink Panther\Dropbox\Webprogrammierung\01_Unser Projekt\01_Page_Unsere Version\htdocs\htdocs">

3. hier (sämtliche) Einträge meiner Logdatei (komisch ist dass für heute wo ich es nochmal versucht habe, nichts gelistet ist?):
---
[Sun Jun 17 13:23:45 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 17 13:23:45 2012] [notice] Digest: done
[Sun Jun 17 13:23:48 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jun 17 13:23:48 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sun Jun 17 13:23:48 2012] [notice] Parent: Created child process 4248
[Sun Jun 17 13:23:51 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 17 13:23:51 2012] [notice] Digest: done
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Child process is running
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Acquired the start mutex.
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Starting 150 worker threads.
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Starting thread to listen on port 443.
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Starting thread to listen on port 443.
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Starting thread to listen on port 80.
[Sun Jun 17 13:23:55 2012] [notice] Child 4248: Starting thread to listen on port 80.
[Sun Jun 17 20:00:54 2012] [notice] Parent: child process exited with status 4294967295 -- Restarting.
[Sun Jun 17 20:02:13 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jun 17 20:02:13 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 17 20:02:13 2012] [notice] Digest: done
[Sun Jun 17 20:02:16 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jun 17 20:02:16 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sun Jun 17 20:02:16 2012] [notice] Parent: Created child process 5660
[Sun Jun 17 20:02:20 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 17 20:02:20 2012] [notice] Digest: done
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Child process is running
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Acquired the start mutex.
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Starting 150 worker threads.
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Starting thread to listen on port 443.
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Starting thread to listen on port 80.
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Starting thread to listen on port 443.
[Sun Jun 17 20:02:23 2012] [notice] Child 5660: Starting thread to listen on port 80.
[Sun Jun 17 20:21:27 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jun 17 20:21:27 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 17 20:21:27 2012] [notice] Digest: done
[Sun Jun 17 20:21:30 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jun 17 20:21:30 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sun Jun 17 20:21:30 2012] [notice] Parent: Created child process 1876
[Sun Jun 17 20:21:33 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 17 20:21:33 2012] [notice] Digest: done
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Child process is running
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Acquired the start mutex.
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Starting 150 worker threads.
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Starting thread to listen on port 443.
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Starting thread to listen on port 80.
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Starting thread to listen on port 443.
[Sun Jun 17 20:21:36 2012] [notice] Child 1876: Starting thread to listen on port 80.
[Sun Jun 17 20:50:29 2012] [notice] Parent: child process exited with status 4294967295 -- Restarting.
[Wed Jun 20 14:24:57 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jun 20 14:24:57 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 20 14:24:57 2012] [notice] Digest: done
[Wed Jun 20 14:24:59 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Wed Jun 20 14:24:59 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jun 20 14:24:59 2012] [notice] Parent: Created child process 3408
[Wed Jun 20 14:25:01 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 20 14:25:01 2012] [notice] Digest: done
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Child process is running
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Acquired the start mutex.
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Starting 150 worker threads.
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Starting thread to listen on port 443.
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Starting thread to listen on port 443.
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Starting thread to listen on port 80.
[Wed Jun 20 14:25:02 2012] [notice] Child 3408: Starting thread to listen on port 80.
[Wed Jun 27 09:32:27 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jun 27 09:32:27 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 27 09:32:27 2012] [notice] Digest: done
[Wed Jun 27 09:32:30 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Wed Jun 27 09:32:30 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jun 27 09:32:30 2012] [notice] Parent: Created child process 3080
[Wed Jun 27 09:32:33 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 27 09:32:33 2012] [notice] Digest: done
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Child process is running
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Acquired the start mutex.
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Starting 150 worker threads.
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Starting thread to listen on port 443.
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Starting thread to listen on port 443.
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Starting thread to listen on port 80.
[Wed Jun 27 09:32:35 2012] [notice] Child 3080: Starting thread to listen on port 80.
[Wed Jun 27 15:04:48 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Wed Jun 27 15:04:48 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 27 15:04:48 2012] [notice] Digest: done
[Wed Jun 27 15:04:51 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Wed Jun 27 15:04:51 2012] [notice] Server built: Sep 10 2011 11:34:11
[Wed Jun 27 15:04:51 2012] [notice] Parent: Created child process 1624
[Wed Jun 27 15:04:54 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jun 27 15:04:54 2012] [notice] Digest: done
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Child process is running
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Acquired the start mutex.
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Starting 150 worker threads.
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Starting thread to listen on port 443.
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Starting thread to listen on port 443.
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Starting thread to listen on port 80.
[Wed Jun 27 15:04:56 2012] [notice] Child 1624: Starting thread to listen on port 80.
[Wed Jun 27 16:50:35 2012] [notice] Parent: child process exited with status 1073807364 -- Restarting.
[Mon Jul 02 13:01:56 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Jul 02 13:01:56 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 02 13:01:56 2012] [notice] Digest: done
[Mon Jul 02 13:02:00 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Jul 02 13:02:00 2012] [notice] Server built: Sep 10 2011 11:34:11
[Mon Jul 02 13:02:00 2012] [notice] Parent: Created child process 2224
[Mon Jul 02 13:02:04 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 02 13:02:04 2012] [notice] Digest: done
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Child process is running
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Acquired the start mutex.
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Starting 150 worker threads.
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Starting thread to listen on port 443.
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Starting thread to listen on port 80.
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Starting thread to listen on port 443.
[Mon Jul 02 13:02:06 2012] [notice] Child 2224: Starting thread to listen on port 80.
[Mon Jul 02 13:03:34 2012] [error] [client ::1] script 'D:/DHBW/Webprogrammierung/XAMPP/htdocs/BlueWaterResort/jfdgj.php' not found or unable to stat
[Mon Jul 02 13:42:54 2012] [error] [client ::1] script 'D:/DHBW/Webprogrammierung/XAMPP/htdocs/BlueWaterResort/Login/index.php' not found or unable to stat
[Tue Jul 03 00:07:54 2012] [notice] Parent: child process exited with status 1073807364 -- Restarting.
[Mon Jul 16 13:36:37 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Jul 16 13:36:37 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 16 13:36:37 2012] [notice] Digest: done
[Mon Jul 16 13:36:40 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Jul 16 13:36:40 2012] [notice] Server built: Sep 10 2011 11:34:11
[Mon Jul 16 13:36:41 2012] [notice] Parent: Created child process 3960
[Mon Jul 16 13:36:44 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 16 13:36:44 2012] [notice] Digest: done
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Child process is running
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Acquired the start mutex.
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Starting 150 worker threads.
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Starting thread to listen on port 443.
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Starting thread to listen on port 80.
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Starting thread to listen on port 443.
[Mon Jul 16 13:36:46 2012] [notice] Child 3960: Starting thread to listen on port 80.
[Mon Jul 16 14:41:52 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Jul 16 14:41:52 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 16 14:41:52 2012] [notice] Digest: done
[Mon Jul 16 14:41:57 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Jul 16 14:41:57 2012] [notice] Server built: Sep 10 2011 11:34:11
[Mon Jul 16 14:41:57 2012] [notice] Parent: Created child process 5076
[Mon Jul 16 14:42:00 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 16 14:42:00 2012] [notice] Digest: done
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Child process is running
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Acquired the start mutex.
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Starting 150 worker threads.
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Starting thread to listen on port 443.
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Starting thread to listen on port 80.
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Starting thread to listen on port 443.
[Mon Jul 16 14:42:03 2012] [notice] Child 5076: Starting thread to listen on port 80.
[Sun Jul 29 14:05:52 2012] [warn] pid file D:/DHBW/Webprogrammierung/XAMPP/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Jul 29 14:05:52 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 29 14:05:52 2012] [notice] Digest: done
[Sun Jul 29 14:05:55 2012] [notice] Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Jul 29 14:05:55 2012] [notice] Server built: Sep 10 2011 11:34:11
[Sun Jul 29 14:05:55 2012] [notice] Parent: Created child process 4896
[Sun Jul 29 14:05:58 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Jul 29 14:05:58 2012] [notice] Digest: done
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Child process is running
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Acquired the start mutex.
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Starting 150 worker threads.
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Starting thread to listen on port 443.
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Starting thread to listen on port 443.
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Starting thread to listen on port 80.
[Sun Jul 29 14:06:00 2012] [notice] Child 4896: Starting thread to listen on port 80.
---

Ich hoffe ihr könnt mir helfen.

Danke und viele Grüße;-)
N8RD
 
Posts: 4
Joined: 29. July 2012 13:08
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache startet nach Änderung des htdocs-Verzeichnisses n

Postby N8RD » 08. August 2012 22:23

Hi Freunde,

keiner eine Idee?

Viele Grüße
N8RD
 
Posts: 4
Joined: 29. July 2012 13:08
XAMPP Version: 5.6.3
Operating System: Windows 7

Re: Apache startet nach Änderung des htdocs-Verzeichnisses n

Postby Altrea » 08. August 2012 22:39

N8RD wrote:keiner eine Idee?

Ideen hätte ich einige, sie laufen aber alle darauf hinaus, dass du das DocumentRoot wieder änderst, und zwar:
  • Kompletter Pfad ohne Sonderzeichen und Whitespaces (Leerzeichen, etc), also nur A-Z, a-z, 0-9 und _
  • kürzeres Verzeichnis, deutlich weniger Unterordner
  • Nicht in einem Dropbox Ordner legen

Laut deinem Logfile konnte Apache aber problemlos gestartet werden, von daher kann ich nicht mehr dazu sagen.

mit freundlichen Grüßen,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 6829
Joined: 17. August 2009 13:05
XAMPP Version: 5.5.19
Operating System: W7Ux64


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 8 guests