Introduction
Welcome to Installing drupal with automatic video conversion support. The installation process is quite long winded but if you follow this guide you shouldn’t run into any problems. I have broken the whole process into two parts this guide for installing MAMP & Drupal and the following guide FFMPEG installation and Drupal for everything else. This way if you wish to just get on and start playing with drupal for a while to become comfortable with it you can.
Overview
There are many components to setting up a drupal system with automatic video conversion. The components needed in this order are : Mamp(or wamp or xammp etc etc), Drupal, Drupals Flash video module, Lame, Faac, Faad, Fink, FFMPEG and a Player.swf file. I will explain more about each component during the installation procedure.
1.1) First of all download Mamp from http://www.mamp.info/en/download.html and install it in your /Applications folder. (you will need to enter in your licence number at this point if you are using mamp pro).
1.2) Also if you are using mamp pro you can copy the contents of the mamp pro directory into mamp directory as it will make it easier later. Then delete the old mamp pro directory. U can also delete the other languages readme files if you so wish.
1.3) Open Mamp pro.
1.4) Change the ports to the ports you wish. I used the default ports (eg Apache 80, MySQL 3306)
1.5) Under run apache/mysql as user make sure it says www/mysql
1.6) Under the MySQL tab you can change the root password if you want (for security reasons I would). All other settings should be as default.
1.7) Launch phpMyAdmin.
1.8) In the create new database textbox enter in a name for the database you wish to create (this will be used by drupal etc later so remember the name of it) then click create
1.9) Now all this has been setup we can stop the apache/mysql servers and exit mamp for the moment.
1.10) Open the folder /Applications/mamp/conf/php5 (or php 4 depending if you changed from the default of php5 in mamp and whether you want to use php4)
1.11) Edit php.ini (I used text Wrangler to edit this file but any text editor will do) and change the line that says memory_limit = 8M to memory_limit = 32M (as 8mb is not big enough for a drupal install)
1.12) Save the file and close it.
2) INSTALLING DRUPAL
Drupal is a free and open source modular framework and content management system (CMS) written in the programming language PHP. Drupal, like many modern CMSs, allows the system administrator to organize the content, customize the presentation, automate administrative tasks, and manage site visitors and contributors. Although there is a sophisticated programming interface, most tasks can be accomplished with little or no programming. Drupal is sometimes described as a "web application framework", as its capabilities extend from content management to enabling a wide range of services and transactions.
2.1) Download and extract drupal (6 rc1 we used). From http://drupal.org/
2.2) Copy the contents of the extracted folder to /Applications/MAMP/htdocs
2.3) Create a Directory called ‘files’ in the /Applications/MAMP/htdocs folder and change its permissions to read & write for everyone. (If it is not already present)
2.4) Create 2 Directories called ‘modules’ and ‘themes’ in /Applications/MAMP/htdocs/sites/all
2.5) Change permissions on the sites folder to read & write for everyone for the moment.
2.6) Open the folder /Applications/mamp/htdocs/sites/default and edit default.settings.php and add the line ini_set('memory_limit', '32M'); save the file and close it.
2.7) If you already have a settings.php file here too (which we shouldn’t if followed previous then you will need to perform steps 2.8 & 2.9, otherwise goto step 2.10
2.8) Edit settings.php and add the line ini_set('memory_limit', '32M');
2.9) Save settings.php and close it
2.10) Open mamp pro and start the servers.
2.11) Open a web browser to http://localhost:80 (or whatever you set your apache port to in mamp)
2.12) Click install drupal in english.
2.13) Make sure mysqli is ticked as the database type.
2.14) Enter in the name of the database you created earlier in mamp.
2.15) Enter in the sql username and password (root/root by default but you should have changed it).
2.16) Then continue (you don’t need to change the advanced settings).
2.17) Enter in your site name (localhost for mine as it for development)
2.18) Enter in your site email address
2.19) Enter in a name for your administrator account
2.20) Enter in an email address for your admin account
2.21) Enter in a password for the admin account
2.22) Click save & continue
Drupal is now installed