The Blog of st373n

A Fresh Install

by st373n on Oct.06, 2008, under Asterisk

OK Well fresh install of Leopard 10.5 retail dvd on macbook, the goal to build a clean environment with the usual web bits, php, pear, mysql etc and then the asterisk bits before going on to load it up with usual day to day apps and data.

So first up was the wipe of the harddrive and the install from retail dvd of leopard 10.5, and then the developer tools from the same disk. Next a software update from apple to bring the base os up to date.

Then repeated the software update after a reboot to find any more files, to more updates.

Next up i copied a couple of useful tools from my main machine over to the laptop, Symlinker – a contextual menu plugin for quickly creating symbolic links of files, and a script to toggle hidden files in Leopard on and off.

No next i couldn’t recall if when i last installed mysql i had built it from source or not, so this time i downloaded the latest community edition from the mysql website (version 5.0.67-osx10.5-x86) and installed it along with the startup script and system preference pane and widget, the widget was copied across from my main machine., i added the mysql path to my bash_profile with

echo ‘export PATH=/usr/local/mysql/bin:$PATH’ >> ~/.bash_profile

in the terminal, then executed the mysql_secure_install script setting a root password and removing remote access to the database and deleting the example database.

php is already installed with leopard now so there was no need to install that, but i did need to edit the apache config to tell it to load php there is only one line to edit in /etc/apache2/httpd.conf and that was to remove the hash from the line loading the php5 module.

next up was to install pear, the php extensions by going to curl pear.php.net | get-pear.php in the terminal, following thru the automated process and just editing three variables when promted to

  • Installation Prefix set to /usr/local
  • Binaries Directory set to $prefix/bin
  • PHP Code Directory set to $prefix/share/pear
  • then a quick edit of /etc/php.ini to include the path to pear of /usr/local/share/pear

    Next installed phpMyAdmin to configure the databases and also leech a download manager.

    configured PhpMyAdmin with my mysql details and socket path and logged into it.

    created a database for  wordpress and a user for it.

    downloaded wordpress and installed it into blog folder.

    configuring it  now, ok so has a problem with not being able to connect to mysql, need to resolve that by either editing loads of files to point to where it lives in leopard with apache 2 or fix it a simpler way, well last time i symlinked /tmp/mysql.sock to var/mysql/mysql.sock so i will do that as its quick n easy, and yep all works now ( hence this post to remind me in future when i forget or need to do it all again. )

    next up will be to install some more apps, first though growl and appzapper are two of my frequently used.

    Well thats it for now so the base install is complete. later this week i will compile and install asterisk on the new system with the goal to get it bundled in one place so its easier to manage, the standard install tend to throw files into lots of different places, im thinking somewhere like /usr/asterisk would be nice for the whole install although thats gona require some hacking around with the build paths.

    :,

    Leave a Reply


    Looking for something?

    Use the form below to search the site:

    Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!