This forum is no longer active. Please post your questions to our new community site

Forums General

MAMP noob question

Subscribe to MAMP noob question 6 post(s), 2 voice(s)

 
Avatar Yogeesh 4 post(s)

Hi BitNami team,

I have installed MAMP stack, Mantis module etc. I am able to start service via terminal. I would like to start shell script during either Mac start-up or log-in. I couldn’t find much information.

Any help is appreciated.

Script is as follows:
#! /bin/sh
/Applications/mampstack-1.2-0/ctlscript.sh start
/Applications/knowledgetree-3.6.1-1/ctlscript.sh start

Best regards,
Yogeesh

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

This post could help you http://bitnami.org/article/how-to-install-servi…

 
Avatar Yogeesh 4 post(s)

Dear beltran,

Thanks a ton. This is exactly what I was looking for.

Best regards,
Yogeesh

 
Avatar Yogeesh 4 post(s)

I tried to install service as indicated by creating plist files. I am running on OSX 10.6.2.

Following is my stack setup:
1. MAMP Stack
a. Mantis
b. Drupal
c. phpBB
d. DokuWiki
2. KnowledgeTree Stack

I am getting following errors:

1. MAMP Stack : No error
a. Mantis:
APPLICATION ERROR #400
Database connection failed. Error received from database was #2002: Can’t connect to local MySQL server through socket ‘/Applications/mampstack-1.2-0/mysql/tmp/mysql.sock’ (2).
b. Drupal:
Site off-line
The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.
c. phpBB:
SQL ERROR [ mysql4 ]
Can’t connect to local MySQL server through socket ‘/Applications/mampstack-1.2-0/mysql/tmp/mysql.sock’ (2) 2002
d. DokuWiki
The datadir (‘pages’) does not exist, isn’t accessible or writable. You should check your config and permission settings. Or maybe you want to run the installer?
2. KnowledgeTree Stack:
[db_error: message=“DB Error: connect failed” code=-24 mode=return level=notice prefix="" info=" [nativecode=Can’t connect to local MySQL server through socket ‘/Applications/knowledgetree-3.6.1-1/mysql/tmp/mysql.sock’ (2)] ** Array"]

Am I missing something?? Please advice…

Everything works fine if I started from terminal.

plist details:
File name: com.bitnami-knowledgetree.service.plist, Label: com.bitnami-mamp-stack.services, Program Arguments: /Applications/knowledgetree-3.6.1-1/ctlscript.sh
File name: com.bitnami-mamp-stack.service.plist, Label: com.bitnami-knowledgetree.services, Program Arguments: /Applications/mampstack-1.2-0/ctlscript.sh

Best regards,
Yogeesh

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

The problem is that OS X services should be daemon process and ctlscript.sh is not a daemon script. When the script finishes, all process are killed. Try to create a different plist for MySQL like I wrote in this post http://bitnami.org/forums/forums/redmine/topics…

I hope it helps.

Forums General