Breaking

Iniciar Apache y MySQL automaticamente en MAC con XAMPP

En este tutorial aprenderemos a iniciar automaticamente los servicios de Apache y MySQL en un equipo MAC usando el paquete XAMPP


Usando la terminal ingresaremos al siguiente directorio:
cd /Library/LaunchDaemons

Creamos el archivo de configuración para Apache.
sudo nano apachefriends.xampp.apache.start.plist

Ingresaremos el siguiente contenido:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.apache.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startapache</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>

Guardaremos el archivo (control+o, return, control+x)

Creamos el archivo de configuración para MySQL.
sudo nano apachefriends.xampp.mysql.start.plist

Ingresaremos el siguiente contenido:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableTransactions</key>
<true/>
<key>Label</key>
<string>apachefriends.xampp.mysql.start</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/XAMPP/xamppfiles/xampp</string>
<string>startmysql</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/XAMPP/xamppfiles</string>
<key>KeepAlive</key>
<false/>
<key>AbandonProcessGroup</key>
<true/>
</dict>
</plist>

Guardaremos el archivo (control+o, return, control+x)

Finalmente reiniciaremos nuestro equipo y comprobaremos usando el navegador si la configuración se realizo correctamente.

No hay comentarios:

Con la tecnología de Blogger.