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.

Issues Running Local Dev Site Using MAMP

March 16, 2009 4:20pm

Subscribe [3]
  • #1 / Mar 16, 2009 4:20pm

    bittersweet

    1 posts

    I’ve explored the EE forums regarding setting up a local development site and even visited this tutorial.

    I’m using MAMP for local development. I’ve set up plenty of WordPress sites locally without any issues, but I’m not able to get my EE site to display.

    Can anyone provide any additional suggestions?

    What I’ve done

    1) Copied all EE files from live site to my MAMP local site
    2) Using PHPMyAdmin, I exported a copy of MY EE database
    3) I deleted all DB caches
    4) I updated the config file to reflect the new http://localhost URL (site url as well as system folder url) as well as the corrrect username and password of the DB.

    Initially I got a database connection error, but fixed my config settings and now it seems to be connecting the the local DB just fine. But now all I get is a blank page when typing the local address for my site http://localhost. Here is the URL of the blank page that gets returned -  http://localhost/index.php/templatename/login. When I try to log in to the control panel, I get a unstyled login page, but when I submit the log in information, nothing happens.

    The response header for the page shows the following information and it’s not showing domain as localhost.

    Date: Mon, 16 Mar 2009 16:22:09 GMT
    Server: Apache/2.0.59 (Unix) PHP/5.2.5 DAV/2
    X-Powered-By: PHP/5.2.5
    Set-Cookie: exp_last_visit=921874929; expires=Tue, 16-Mar-2010 16:22:09 GMT; path=/; domain=.mydomain.net
    exp_last_activity=1237234929; expires=Tue, 16-Mar-2010 16:22:09 GMT; path=/; domain=.mydomain.net
    exp_tracker=a💯{i:0;s:11:"/isa/login/";}; path=/; domain=.mydomain.net
    Content-Length: 311
    Keep-Alive: timeout=15, max=100
    Connection: Keep-Alive
    Content-Type: text/html

    200 OK

    I’m baffled by this and appreciate any suggestions.

    Thanks…

  • #2 / Mar 16, 2009 4:36pm

    Ingmar

    29245 posts

    Looks like an issue with your setup. A blank page is generally a suppressed PHP error. You might want to turn on error reporting, see if that gives us a hint.

  • #3 / Mar 16, 2009 4:39pm

    Flatulent Badger

    96 posts

    With MAMP (or MAMP Pro as I use) localhost should be localhost:8888

    I have found in the past that if you change or remove the 8888 apache port assignments problems can occur, the same with changing the MySQL 8889. Make sure in your config.php that localhost is referenced as localhost:8888 or localhost:8889 where appropriate.

    Sometimes I have found that EE does not like MAMPs implementation of PHP4 so using PHP5 fixes that issue.

  • #4 / Mar 16, 2009 5:24pm

    Ingmar

    29245 posts

    bittersweet, did any of that help? Let us know how it goes.

  • #5 / Mar 16, 2009 9:50pm

    bittersweet

    1 posts

    According to PHPMyAdmin, error reporting is on. But I’m still not seeing any errors being reported (just the blank page). I’ve also tried changing the ports for Apache and MySQL to what was suggested in this thread (and updated in the config file) and still no luck. I had been using the default ports for Apache and MySQL. I’m also using PHP 5.2.5 and not PHP 4.

    So nothing that has been suggested in working.

    Thanks for your help.

  • #6 / Mar 16, 2009 10:08pm

    Greg Aker

    6022 posts

    bittersweet:

    Error Reporting is found in the php.ini file, read through the file, and you will see the section on error reporting and displaying errors.

    You might also want to look through our Wiki as there are several articles about using MAMP.

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases