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