XAMPP [starten|enden] ohne Passwort abfrage?

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

XAMPP [starten|enden] ohne Passwort abfrage?

Postby Fadi » 15. May 2009 09:41

Hallo zusammen,

Weiß jemand zufällig wie ich XAMPP auf meinem MacBook (Leopard 10.5.6) starten bzw. enden kann, ohne die Passwort abfrage?
Ich bin der einzige Nutzer des MacBooks.

Danke im Voraus.

MfG
Fadi
 
Posts: 1
Joined: 15. May 2009 09:26

Re: XAMPP [starten|enden] ohne Passwort abfrage?

Postby MegaChriz » 18. May 2009 07:54

You can start en stop XAMPP without type your password every time if you write a script in AppleScript that starts XAMPP and a script that stops XAMPP. In that script you specify your password. With XAMPP 0.5 for Mac there was an AppleScript delivered instead of a control panel.

This is what the script looked like (a bit modified):
Code: Select all
-- Xampp starten
set passwort to "" -- Rootpasswort eingeben, oder leer lassen
set befehl to "/Applications/XAMPP/xamppfiles/xampp start"

try
   if passwort is "" then
      set ausgabe to do shell script befehl with administrator privileges
   else
      set ausgabe to do shell script befehl password passwort with administrator privileges
   end if
on error fehler
   display dialog fehler
end try
This script starts a shell script (a command you could also enter in the Terminal).
You need to set the password of the administrator user from your Mac in the second line of above (set passwort to).

In the same way you can write an AppleScript that stops XAMPP:
Code: Select all
-- Xampp stoppen
set passwort to "" -- Rootpasswort eingeben, oder leer lassen
set befehl to "/Applications/XAMPP/xamppfiles/xampp stop"

try
   if passwort is "" then
      set ausgabe to do shell script befehl with administrator privileges
   else
      set ausgabe to do shell script befehl password passwort with administrator privileges
   end if
on error fehler
   display dialog fehler
end try


Sorry I did answer in English, my German is bad
MegaChriz
 
Posts: 158
Joined: 16. February 2009 15:04
Location: Amersfoort, The Netherlands
Operating System: Mac OS X


Return to XAMPP für macOS

Who is online

Users browsing this forum: No registered users and 6 guests