Archive for the 'Web2.0' Category

SweetCron Quick Install on OSX

Recently heard about SweetCron on Bits und So. Here’s my really quick install guide for OSX:

  1. Get MySQL and install it. By default, a user root with no password exists.
  2. Start the MySQL daemon using the PrefPane
  3. Enable Web Sharing in the Sharing Tab of System Preferences
  4. Enable PHP by editing /etc/apache2/httpd.conf, look for the line which says LoadModule php* and remove the comment sign. Also set AllowOverride for the directory you want to put SweetCron in to All. Note: I had problems with putting it into ~Sites, so you might want to use /Library/Documents/WebServer for it. Restart your webserver using sudo apachectl restart.
  5. You have to add a database for SweetCron to your MySQL installation. For n00bs, the easiest way is to get phpMyAdmin and install it somewhere. Follow the documentation for that, but remember to copy /etc/php.ini.default to /etc/php.ini and put /tmp/mysql.sock in for mysqli.socket. Also use socket as connection type in the phpMyAdmin administration wizard. Do not forget to restart your webserver using sudo apachectl restart after changing the php.ini. In phpMyAdmin itself, you can easily set passwords, add accounts and create a database.
  6. Configure SweetCron as stated in the documentation. In database.php you only need to put in the user and database you just created using phpMyAdmin.
  7. Visit SweetCron in your browser to configure your stuff and enjoy.