For this tutorial I used PHP 4.3.4, MySQL 4.0.18 Standard and ImageMagick 5.5.7 together with the TYPO3 Quickstart Site 3.6.1. Read the download instructions on the corresponding pages, especially if you use Microsoft Internet Explorer you may have to rename the downloaded files in case of the MySQL download.
Check that your web server (Personal Websharing) is running. You can check this using the Sharing-Panel in the System Preferences. If it is not running, you will get some error messages when you try to reload Apache later on in this tutorial...
I recommend to follow the instructions on Marc Liyanage's Site. Be aware there's a difference between OS X 10.1 and 10.2/10.3! If you have installed the PHP module using Marc's installer everything is done. You can proceed with the installation of MySQL. Marc's new installer will also update the Apache configuration, so you do no longer have to edit the httpd.conf! The installer will try start (or restart if already running) your Apache web server, so the new module should be auto-activated
If you're not familiar with Unix I recommend the official binary package (the .dmg-file). This is only available for OS X 10.2 and later. If you would like to install TYPO3 (and MySQL) on a 10.1 system, I recommend following the instructions on Marc Liyanage's Site . Also read the »ReadMe.txt« on the disk image! If you install MySQL for the first time, you have to set a password for the MySQL root user. The root user is the super user which has all privileges on the database and can execute all MySQL commands. This is done with the following command issued in the Terminal
/usr/local/mysql/bin/mysqladmin -u root password <PASSWORD>
where <PASSWORD> is the desired MySQL root password. Remember this password! You will need it anytime you want to create new MySQL users, maintain your databases and so on!
You can use my SQL-script to do that (you can edit it with a text editor). It will create a database called typo3db and a user typo3 with the password typo3 (you can change that if you edit the script in any text editor). It also sets up the right privileges for that user. Download the script to your hard disk and put it in the folder where you have all the other required software for this tutorial. Open a new Terminal window to execute the following command. You can enter the script name by typing the complete path to the script or by simple drag and drop the file on the terminal window! If you like the easy way type only the first part including the < and a space an do the drag and drop operation. The Terminal will insert the complete path for you and the command should look like this:
/usr/local/mysql/bin/mysql -u root -p < /<path>/<to>/<the>/<script>/create_typo3_user.sql
Press RETURN to execute the command. You will be ask you for the MySQL root password you set in step 4. You can now close the Terminal window with COMMAND + W or simply type logout followed by by pressing RETURN.
No need to explain in detail, simply double click the package in the Finder and follow the instructions in the installer.
Unzip the TYPO3 ZIP-archive (using StuffIt Expander for example) and copy or move the folder to your web server's document root. The document root is your web server's main document repository. Normally it is located in /Library/WebServer/Documents/ . (see screen shots). Copy or move the TYPO3 folder (in my case the folder quickstart ) there.
Open the file index.php in /Library/WebServer/Documents/<foldername>/typo3/install/ in a text editor (like BBEdit or JEdit , even TextEdit will do) and make two slashes (//) in front of the die(...) function to enable the TYPO3 install tool. Beware that you do not insert line breaks because this will cause some errors later on (TextEdit, like in the screen shot, will only wrap the line virtually, not inserting breaks, so it's ok). Save your changes and close the document.
Open a new Terminal-window ( COMMAND + N in the Terminal application ), change to the web server document root using the command
cd /Library/WebServer/Documents/
and type
sudo chown -R :www <foldername>
hit the RETURN- key and type
sudo chmod -R g+w <foldername>
(where <foldername> is the name of the folder containing your TYPO3 files). With this commands you will change the owner (chown = change owner) and modify the permissions (chmod = change mode) of the TYPO3 folder so the web server application can modify the files in there. If you're done, you can close the Terminal window.
Open a web-browser and go to http://127.0.0.1/<foldername>/. The TYPO3 site should open with the Install Tool in 1-2-3-Mode.
In the first step, you have to enter your MySQL user name, the password and the host name of the database server. Because it's all on the same machine, you should enter localhost as the host name. The user name created with my SQL-script was typo3 and the password also typo3. The database is called typo3db. Enter the appropriate values and click on the button »Update localconf.php« to update your configuration and save the changes.
If you succeed, you should be able to select the database typo3db in step 2 and save your changes with a click on the button »Update localconf.php«.
Step 3 is for importing the data into the database. After doing that (select database.sql from the pull down and click on »Import database«) you should click on »Continue to configure TYPO3 (Recommended)« and proceed with the last step in this tutorial.
The last thing you have to do is to click on »1: Basic Configuration«, scroll down to the bottom of the page and select your ImageMagick binary in the pull down. Save your changes by pressing the button »Update localconf.php«.
That's it. You should now have a working TYPO3 installation! You can start by logging in to the TYPO3-Back end of your installation with a web browser http://127.0.0.1/<foldername>/typo3/