MAC OS X 10.5.7 mit XAMPP 1.0.1

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

MAC OS X 10.5.7 mit XAMPP 1.0.1

Postby Thomas Besorna » 23. June 2009 17:27

Apache startet nicht.

Problem 1:
Der Befehl "ulimit -H -n" in der Zeile <<ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`">> in apachectl liefert bei meinem System "unlimited" zurück; Behebung: das Setzen der MAX FILES auskommentieren; allerdings führt dies zu

Problem 2:
Beim Starten mittels "apachectl start" erhalte ich die folgenden Zeilen:
macbookpro:~ tbe$ /Applications/XAMPP/xamppfiles/bin/apachectl start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

... und beim Starten via XAMPP Control überhaupt nur ein leeres Message Fenster!

Liegt es an meinem System oder an einem Bug bei XAMPP? Bitte um Hilfestellung. DANKE.

TOM
Thomas Besorna
 
Posts: 1
Joined: 23. June 2009 17:17

Re: MAC OS X 10.5.7 mit XAMPP 1.0.1

Postby ralf.krause » 01. August 2009 20:18

Dieses Verhalten liegt wahrscheinlich daran, dass die Rechte der Ordner noch nicht richtig gesetzt sind. Nachdem du den Ordner XAMPP in den Ordner Programme verschoben hast, gehört der Ordner XAMPP nämlich dir und nicht dem Benutzer nobody, mit dem XAMPP arbeitet.

Die Steuerung von XAMPP sollte über XAMPP Control oder über das Script xampp (zu finden über /Programme/XAMPP/xamppfiles/xampp) erfolgen. XAMPP Control und das Script xampp schauen zu Beginn ihrer Arbeit nach, ob die Rechte einmal richtig gesetzt wurden.

Code: Select all
iMac: krause$ /Applications/XAMPP/xamppfiles/xampp
Benutzung: xampp <Aktion>

   start         Starte XAMPP (Apache, MySQL und evtl. weitere)
   startapache   Starte nur den Apache
   startmysql    Starte nur den MySQL
   startftp      Starte nur den ProFTPD

   stop          Stoppe XAMPP (Apache, MySQL und evtl. weitere)
   stopapache    Stoppe nur den Apache
   stopmysql     Stoppe nur den Apache
   stopftp       Stoppe nur den ProFTPD

   reload        Aktualisiere XAMPP (Apache, MySQL und evtl. weitere)
   reloadapache  Aktualisiere nur den Apache
   reloadmysql   Aktualisiere nur den MySQL
   reloadftp     Aktualisiere nur den ProFTPD

   restart       Stoppe und starte XAMPP
   security      berpruefe XAMPPs Sicherheit

  enablessl     Aktiviere die SSL-Unterstuetzung des Apaches
  disablessl    Deaktiviere die SSL-Unterstuetzung des Apaches

   backup        Backup der XAMPP-Konfig, Logs und Daten erstellen

   fix_rights    Zuruecksetzen der Dateiberechtigungen.


Hierin gibt es den Scriptbefehl xampp fix_rights, der die Arbeit erledigt. Zur Ausführung benötigst du root-Rechte.

Code: Select all
iMac: krause$ cd /Applications/XAMPP/xamppfiles
iMac:xamppfiles: krause$ ./xampp fix_rights
Du musst root sein um diese Aktion auszufuehren.
iMac:xamppfiles krause$ sudo ./xampp fix_rights
XAMPP:  Dateiberechtigungen werden ueberprueft...ok.
iMac:xamppfiles: krause$


Danach solltest du auch mit apachectl start den Webserver in Betrieb nehmen können. Ach ja, zum Starten des Apache benötigst du root-Rechte ... die sind zum Belegen des Port 80 (und für alle anderen Ports von 1 bis 1023) nötig.

Code: Select all
iMac:xamppfiles krause$ sudo ./bin/apachectl start
iMac:xamppfiles krause$ ps ax | grep httpd
 2277   ??  Ss     0:00.48 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2278   ??  S      0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2279   ??  S      0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2280   ??  S      0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2281   ??  S      0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2282   ??  S      0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2283   ??  S      0:00.00 /Applications/XAMPP/xamppfiles/bin/httpd -k start
 2285 s000  S+     0:00.00 grep httpd
iMac:xamppfiles krause$


Ich hoffe, diese Angaben und der Code helfen dir, dein Problem zu lösen.
Ralf
ralf.krause
 
Posts: 26
Joined: 26. January 2009 11:10
Operating System: OS X 10.8.2


Return to XAMPP für macOS

Who is online

Users browsing this forum: No registered users and 45 guests