start wiki at boot up on os x lion

Jump to: navigation, search

greetings,

MediaWiki 1.18.1

PHP 5.3.8 (apache2handler)

MySQL 5.5.16

i'm trying to get os x to start up the wiki at boot up.

i've created a .plist which works when its in ~/Library/LaunchAgents

but when i put this .plist under /Library/LaunchDaemons and reboot, i get lots of error messages in the system.log ...

Jan 31 12:06:41 sect org.me.startwiki[408]: 120131 12:06:41 mysqld_safe Logging to '/Applications/mediawiki-1.18.1-0/mysql/data/mysqld.log'.

Jan 31 12:06:41 sect com.apple.launchd[1] (0x7f97d5001830.anonymous.nohup[628]): Bug: launchd_core_logic.c:9375 (25247):0

Jan 31 12:06:41 sect com.apple.launchd[1] (0x7f97d5001830.anonymous.nohup[628]): Switching sessions is not allowed in the system Mach bootstrap.

which look like they're being caused when mysql starts.

if i time it right i can actually see the wiki main page briefly but then it shuts down.

any ideas?

The Elves Of Dunsimore09:13, 31 January 2012

MediaWiki is not a desktop application. You can't "start" it.

I assume you mean you want to start Apache and MySQL at boot up ?

This is very possible, but depends on which Apache/MySQL you use. If you use the default Apache that comes with OS X, then all you have to do is enable it from the System Preferences > Sharing > Web Sharing and then it will be started right away and also starts when the system boots up (I do this myself as well).

Krinkle17:53, 31 January 2012

hi Krinkle, thanks for the reply.

>MediaWiki is not a desktop application. You can't "start" it.

sure you can, if this were a more typical unix flavour i'd expect to be able to put the command i'm currently using to "start" it...

/Applications/mediawiki-1.18.1-0/ctlscript.sh start

in one of the rc scripts and that (hopefully) would be it. but the equivalent under os x seems to be (i'm new to os x but not unix) to create a .plist file and use launchctl load etc however when i do that i get the errors i mentioned. i was hoping someone had already come across this and knew of a fix otherwise i'll have to go into the mysql start scripts and try to figure out whats offending mach.

cheers,

The Elves Of Dunsimore02:02, 1 February 2012
 

>MediaWiki is not a desktop application. You can't "start" it. sure you can, if this were a more typical unix flavour i'd expect to be able to put the command i'm currently using to "start" it... /Applications/mediawiki-1.18.1-0/ctlscript.sh start

There is no such file called ctlscript.sh in MediaWiki's code base.

Point stands: There no such thing as "starting mediawiki". You can:

  • Start Apache/MySQL
  • and/or: Open a browser and point it to your wiki's URL

Is that what you mean?

Krinkle16:14, 7 February 2012
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox