Creating an Install for Mac Using MAMP
Download and Install MAMP
- Go to http://sourceforge.net/project/showfiles.php?group_id=121134
- Download the latest release (like MAMP_MAMP_PRO_1.6.dmg).
- Save to the MAMP_MAMP_PRO_x.x.dmg to your desktop.
- Click on the file to install.
- Open Finder and drag the MAMP icon to the Applications directory. MAPM will only from the Applications directory and only with the MAPM directory name.
- Close the installer and delete the .dmg file if you'd like.
Modify MAMP Files
- Using the Finder, rename Applications/MAPM/MAMP.app to WEC-MAMP.app. And change the color label for this file to blue (right click on the file and select the blue box).
- Turn off color for all the RTF documents by right clicking on them and selecting "x" under "Label." They are red by default and are now less critical.
- Edit MAMP/conf/php5/php.ini and set:
max_execution_time = 300
memory_limit = 64M
post_max_size = 64M
upload_max_filesize = 64M - Edit MAMP/conf/apache/mime.types
add this to the list to get TYPO3 docs to display:
application/vnd.sun.xml.writer sxw - Invoke the local web server by running WEC-MAMP.app. You will see the MAMP control panel.
- Click the "Preferences..." button and Select "Start/Stop" at the top left. Under "Start page url? change /MAMP/ to /.
- Click on "Start Servers" and you should see the red dots change to green dots as each server starts.
Download and Install ImageMagick
- - - - NOTE: SKIP THIS SECTION FOR NOW. IT IS NOT CORRECT. - - -
- Get a copy of ImageMagick from: http://www2.entropy.ch/download/imagemagick-6.1.7.pkg.tar.gz. The filename should look something like this: imagemagick-6.1.7.pkg.tar.gz.
- Using the Terminal program, go to the directory where the tar.gz file is and type:
gzip -dchttp://www2.entropy.ch/download/imagemagick-6.1.7.pkg.tar.gz imagemagick-6.1.7.pkg.tar.gz | tar -xf -
to extract the imagemagick-6.1.7.pkg file. - In Finder, double click on the file to install imagemagick. The files will be placed in /usr/local/bin and will consist of these files:
Magick++-config animate conjure identify montage
Magick-config compare convert import
Wand-config composite display mogrify - TYPO3 will auto-detect these files in this directory, but they need to be moved to the package. Create a directory MAMP/bin/imagemagick. Copy these files to this directory.
Download and Install the WEC Starter Package
- Download the tar.gz version of the WEC Starter Package (example: wec_starter-4_1_3-1_0_0.tar.gz)
- Double click on the tar.gz file to unpack it into a folder. This may take awhile.
- Drag the entire folder to the Applications/MAMP directory. Delete the MAMP/htdocs directory and rename the wec_starter-x_x_x-x_x_x directory to htdocs. Note: this approach ensures the hidden .htaccess file is moved even though Finder will not display it to copy it separately.
- In MAMP/htdocs/typo3/install/ rename index.php to index.phpold and rename index.wec to index.php.
- TO BE DETERMINED: Edit MAMP/htdocs/typo3conf/localconf.php and change
$TYPO3_CONF_VARS["GFX"]["im_path"] = '/usr/local/bin/';
to:
$TYPO3_CONF_VARS['GFX']["im_path"] = PATH_site.'../bin/imagemagick/'; - Invoke the local web server by running WEC-MAMP.app. You will see the MAMP control panel. If needed, click on "Start Servers." You should see the red dots change to green dots as each server starts.
- Your web browser should show the TYPO3 Install Tool. Note: after TYPO3 is setup, this button will display the Frontend website.
- For database parameters, enter:
Username: root
Password: root
Host: localhost - Click continue.
- Under "Create new database (recommended)" enter "wectypo3" and click continue.
- Under "Please select a database dump" choose "wec_starter.sql" and click "Import database."
- Click "Continue to configure TYPO3."
- Scroll down and enter "wec" twice as the new install password, then click "Set new password."
- Click on "5: All Configuration."
- Scroll down to [BE][maxFilesize] and enter 65536.
- Scroll way down and click on the "Write to localconf.php" button to save the change.
- Go to http://localhost:8888/typo3.
- Login with:
Username: admin
Password: password - To avoid the large yellow warning box in the future, click "User Admin" at the left.
- Click the pencil icon next to the admin user. Change the username to "admin" and password to "wec" or set them however you choose. Click the "Save and Exit" icon. Also, enable and set the "basicadmin" and "basicuser" passwords to "wec."
- Click "WEC Config" at the left and "Edit Site Constants" in the upper right.
- Change "Site URL" from "http://demo.webempoweredchurch.org/" to "http://localhost:8888/" and click "Update."
- Go to the "WEC Map Admin" tool at the left and enter the "Google Maps API key":
ABQIAAAA63af2eSVYhOhw45cTWq_XBTb-vLQlFZmc2N8bgWI8YDPp5FEVBTYMctNqOWVVMybSXWQ8EJw5C-JbQ
This comes from here: http://www.google.com/maps/api_signup?url=http://localhost:8888/ Click the Update button - Click on WEC eBible Admin at the left and enter EBIBLE_DEMO in the field and then hit the submit button.
- Turn on eBible by clicking Template on the left, then the root page "First Church" in the page tree, then click on "Click here to edit whole template record. Scroll down to Include static (from extensions):" and add WEC eBible (wec_ebible) to the list of static extension.
- Go to the "WEC Config" tool, select "Manage Add-On Features" at the upper right. Scroll down to the bottom Under "Map" click the "Install" button to enable maps on the Frontend.
- Click "Clear cache in typo3conf" and "Clear FE cache" at the lower left.
- Try different backend (http://localhost:8888/typo3) and frontend (http://localhost:4001) functions to verify that it looks like everything is working.
Version
- Copy the text file in the root directory of a previous install and rename it to reflect the new version number like: wec_starter-4_1_6-1_0_0_fullserver.txt.
- Change the color label for this file to blue (right click on the file and select the blue box).
Create a Mac Install File
- Run Applications/Utilities/Disk Utility.app.
- Click the "New Image" icon to create a new disk image.
Enter a "Save As" name like wec_starter_big.
Set "Volume Name" to WEC-MAMP.
Set "Volume Size" to 500 MB.
Click the Create button. - You will see the new WEC-MAMP disk mount under Devices in the Finder. Drag the MAMP folder that is in Applications folder onto the disk mount to copy the folder and files to it. There is over 350 MB to copy.
- Go back to the Disk Utility and click on the new dmg file at the lower left. Then click the Convert icon on the top.
Set "Save As" to something like wec_starter-4_1_6-1_0_0. This will be the final file users will receive.
Set "Where" to Desktop.
Set "Image Format" to compressed.
Click the "Save" button. - Exit the Disk Utility.
Unmount the disk mount by clicking on the up arrow icon in Finder next to WEC-MAMP.
Delete the large dmg file. - Upload the compressed dmg file to the WEC server for distribution.

