Notfornoone
Yes, its a double negative.





How to Install PHP 5.3 on Snow Leopard Using Homebrew

Update: Please consider using the PHP formula available at homebrew-php for a more reliable and community-supported installation of PHP. You can also explore additional PHP-related formulae in the homebrew-php repository.

Here's a handy guide on how to install PHP 5.3.3 (the latest version at the time of writing) using Homebrew, a fantastic package manager designed for OS X.

1. If you haven't already, start by installing Homebrew. You can find detailed installation instructions on the Homebrew wiki.

2. Next, get the latest PHP brew and copy it into your Homebrew Formula directory using the following commands:
 
    ```bash
    curl -O raw.github.com/ampt/homebrew/php/Library/Formula/php.rb
    mv php.rb `brew --prefix`/Library/Formula
    ```

3. To see the available installation options for PHP, execute the following command:
 
    ```bash
    brew options php
    ```

4. Now, you can install PHP with your desired configuration. For instance, to install PHP with Apache and MySQL support, use this command:
 
    ```bash
    brew install php --with-apache --with-mysql
    ```

    Or, if you prefer installing php-fpm:

    ```bash
    brew install php --with-fpm
    ```

    Alternatively, you can use this command for the same effect:

    ```bash
    brew install: raw.github.com/ampt/homebrew/php/Library/Formula/php.rb --with-apache --with-mysql
    ```

5. Once the installation is complete, you should be good to go.

6. Note: Depending on your setup, you may want to add the following line to your .bash_profile. This ensures that BASH knows the correct path to the PHP you just installed:

    ```bash
    echo 'export PATH='`brew --prefix php`'/bin:$PATH' >> .bash_profile
    ```

Bonus Points: Installing xdebug

You can also install xdebug using Homebrew, which is a valuable tool for debugging your PHP code:

```bash
brew install xdebug
```

With these steps, you'll have PHP 5.3 installed on your Snow Leopard system, ready to power your web development projects.