Posts Tagged Mac
[MAMP stack] OpenGoo install in Mac OS X 10.5
Posted by admin in Web design & development on April 21, 2009
DON’T READ THIS! READ THIS.
Or How to setup a MAMP Stack on… Mac OS X: a proper write up.
Please disregard the gubbins on this post…
[OK - this was going to be a simple step-by-step account of how to install a particular project management system on a Mac OS X box. That particular project stalled but I learnt a few things about how to get a [M]AMP stack setup to the point a which I can continue… ]
Need a project management package. So far requirements and research lead to Open Goo.
- Download package from OpenGoo.
- Create a MySQL database for it.
- Download and instal PHP My Admin. Nice documentation.
-
- [unstuff it and put the folder into ~/Sites/ , for example]
- virtualhost it
- setup config.inc.php with blowfish key
- fix socket error (?)
- http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html: edit (with TextWrangler of course) /etc/php.ini so that ”mysql.default_socket = /tmp/mysql.sock”
- Fix mcrypt error: “Cannot load mcrypt extension. Please check your PHP configuration”
- Ditch the default OS X PHP install in favour of Marc Liyanage’s packaged instal of PHP for Mac OS X
- If already set up the Apple version of PHP – make sure it’s disabled: ”
LoadModule php5_module“ in/private/etc/apache2/httpd.confshoul commented out - Download and run Marc’s installer from the link above. RTFM mind – but it’s a cinch. The new PHP files will now be in
/usr/local/php5. - Also ditch any previously installed MySQL
- sudo rm /usr/local/mysql
- sudo rm -rf /usr/local/mysql*
- sudo rm -rf /Library/StartupItems/MySQLCOM
- sudo rm -rf /Library/PreferencePanes/My*
- edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
- sudo rm -rf /Library/Receipts/mysql*
- sudo rm -rf /Library/Receipts/MySQL*
- If already set up the Apple version of PHP – make sure it’s disabled: ”
- install to match the PHP package to MySQL 5.0.77
- Create a privileged MySQL user. (Any user may log in without a password to get an anonymous session: “No Privileges”. Mac OS X user account – or _mysql. At this stage log in without a password.)
- Ye-har! Who’d of guessed… Apple’s MySQL documentation was where to find simple instructions for how to give the MySQL root user a password – and hence succeed to log inwith privileges. Terminal command:
/usr/local/mysql/bin/mysqladmin -u root password sniggle. Where sniggle is your choice for a secure password. - For each DB user you should add that user with an MySQL query:
CREATE USER 'user1'@'localhost' IDENTIFIED BY'pass1';
Quick and dirty DVD editing in iMovie
Got your own content want to re-edit quick-like using iMovie. Use MPEG Streamclip to export to MPEG-4. Import into iMovie. Edit.
If you’ve got a bunch of VOB files on a DVD of non-copy protected stuff (home movie telecine etc) use the same tool to convert the DVD into a AVI or other format file. Don’t forget that if you’re on a Mac you may want to watch any resultant AVI using VLC!
Transmit / CODA FTP glitches
Posted by admin in Web design & development on February 22, 2009
Eureka. D’oh. ho-hum.
Delete as appropriate.
My email to transmit-at-panic.com:
Hi,
I’m sure it may be because I hadn’t RTFM in a while but I’ve just discovered that Transmit carries out Synchronisations based on its cache. I had always assumed that a mirror sync would update the cache first. I now realise this must have been causing some of my troubles with old files eventually reappearing on my server.
I use CODA to work on the site and Transmit to keep a set of rolling backups. (SVN has only just become an option for me.) I’ve been working on the site using CODA while Transmit stays open. I will now be making sure that I keep the syncing process separate (and restart Transmit before any sync operation) to avoid the glitches that have been troubling me. Obviously I’m looking to get my SVN server up and running as soon as possible.
Perhaps a notice in the Transmit UI to warn of this might be helpful.
Thanks
Update
Date: 25 February 2009 00:55:08 GMT+01:00
Subject: Re: Sync issuesHi Gabriel,
This will be vastly improved in a future version of Transmit.
–
Les
Panic Inc.
Great stuff! Lets hope that new version is around the corner. I reckon it may well be. TBC.
MySQL and phpMyAdmin on Mac 10.5 Leopard
Posted by admin in Web design & development on February 19, 2009
[Update! Lots of gotcha's with using the Apple package of PHP - found that its easier to do a couple of resets as noted here]
Following on from PHP and SSI set-up on a Mac OS X 10.5, now it’s time for MySQL database work. Everything is plain sailing to start with: get and install both MySQL and phpMyAdmin. Then the first snag – phpMyAdmin cannot make a secure connection to MySQL without mcrypt (a PHP encryption extension) – and PHP as shipped with Mac OS X doesn’t come with this.
No solutions here I’m afraid – I’m in a hurry to get the development copy of a site I’m working on ASAP so have just commented out the blowfish and cookies lines in the phpMyAdmin config.inc.php file.
Must get this fixed…
Next problem: default MySQL setup looks in the wrong place for the socket connection. In Leopard the socket sits here /private/tmp/mysql.sock. Edit two lines in the MySQL sections of /etc/php.ini so as to get:
mysql.default_socket = /private/tmp/mysql.sock and
mysqli.default_socket = /private/tmp/mysql.sock
Next problem…