ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Fews questions about how to setup MAMP/EE

February 27, 2008 3:21am

Subscribe [7]
  • #1 / Feb 27, 2008 3:21am

    Simon-a

    64 posts

    Hello All 😊

    I’ve got some questions about working with MAMP (or any php/mysql localhost software)…

    I never know how to set up correctly the setting, the type of MySQL charset, etc… Cos I’ve always got bad encoded accents (My site are in French, there’s quite a lot of accent in French like é ç à…)  😉

    I always put the default setting in phpmyadmin, utf8…

    Any ideas ?

    Also, I feel a little dumb about this, but i cannot figure out how to work with template files with mamp ? I cannot find the correct path : :red:

    http://localhost:8888/ee/templates… or /Applications/mamp/htdocs/ee/templates… ?

    It drive me crazy 😉

    Thanks you very much

  • #2 / Feb 27, 2008 11:55am

    Derek Jones

    7561 posts

    Hey Simon, I’ve moved you over to the General Discussion since we do not provide direct support for self-managed servers.  Plus there are many MAMP users here in the forums, and they will be more likely to encounter your thread here.

    I don’t use MAMP myself, I use OS X’s default Apache configuration, so I can’t give specific advice, but anywhere that you need a server path, you’ll be looking at /Applications/... and anywhere that you have a URL, you’ll use the http://localhost:8888/...  You could also modify your /etc/hosts file so that a fake domain can be mapped to http://localhost:8888/ee/ enabling you to access it from, for example http://ee/...

    Oh, and I use CocoaMySQL to manage my local databases.  I find it much more pleasant than phpMyAdmin.  You’ll be fine to select UTF-8 as the charset for your databases.

  • #3 / Feb 27, 2008 12:15pm

    AlanM

    74 posts

    Setting up virtual hosts using MAMP is very easy. And it makes installing any software, like EE, very easy.

    Here’s a thread which discusses virtual host…scroll down to the last post.

    BTW, I changed the Apache Port to 80 through MAMP’s preferences. Though I never needed to include the port when setting up EE.

  • #4 / Feb 27, 2008 12:20pm

    AlanM

    74 posts

    BTW, I set up my virtual sites in my personal Sites directory instead of under the MAMP directory under Applications.

  • #5 / Feb 27, 2008 8:43pm

    Simon Cox

    405 posts

    BTW, I set up my virtual sites in my personal Sites directory instead of under the MAMP directory under Applications.

    Which you can do now with the latest version of Mamp 1.7.1 as it allows you to specify the root folder so you don’t have to have it in Mamp folder in Applications - which is good news!


    Also a good tip is to make a global variable for your root path that gets the site working in Mamp, use the global variable in all the places you need to - such as the path settings in admin - so that once you put the site live you only need change the path in the global variable.  Boyink did a good peice on this technique on his blog or in a post here somewhere.

  • #6 / Feb 27, 2008 8:44pm

    Derek Jones

    7561 posts

    See, I knew this would be a better forum for the thread. :-D

  • #7 / Feb 28, 2008 10:11am

    Simon Cox

    405 posts

    I found that reference for using homepage variables in paths on Boyink.

    This is an especially good technique to use with MAMP.

    The other thing as I found is that using the localhost path means that you will not see the pages styled if you look at it on another computer on your LAN if you have one. I have a Mac and a PC and use them both for different aspects of site building and they are on a little home network. So to get around the localhost URL problem I set up a free subdomain with dyndns.com that points to my home IP address (look up your own ip). My router is configured to pass all requests to the port I set up in MAMP. I can now get to the EE build from my PC by going out to the net and back into the MAC - and it also gives me access from elsewhere if needed. If you use this technique you will need to password protect your site in some way to stop prying eyes before it’s ready!

  • #8 / Feb 29, 2008 3:46pm

    Simon-a

    64 posts

    Thanks a lot!!

    I’ve make a newbie mistake…
    It works perfectly now, I only have to go deeply into the mysql setting, I still have some problems my french entities liek èéà :(

    thanks again

    (PS: Sorry, I’ve been far away from my computer since Tuesday, don’t want to seems rude 😉…)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases