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.

Installation Problem

July 15, 2010 11:40pm

Subscribe [5]
  • #1 / Jul 15, 2010 11:40pm

    ramonekalsaw

    377 posts

    I’m trying to create a mirror setup of my live site on my localhost using MAMP.

    What I’ve Done

    —Copied my Image, Theme and System directories from my live site into my localhost >MAMP > htdocs directory

    —Imported my live database into MAMP via phyMyAdmin.

    —Made the following changes to the localhost version of config.php:

    $conf['cp_url'] = "//localhost:8888/my_directory/my_system_folder/";
    $conf['db_name'] = "my database name";
    $conf['db_hostname'] = "left empty";
    $conf['db_username'] = "left empty";
    $conf['db_password'] = "left empty";


    Problem

    —When I point the browser to //localhost:8888/my_directory, the index page is not coming up; instead I’m seeing the list of what’s in the Parent Directory.

    —When I click on //localhost:8888/my_directory/my_system_folder I get “Database Error: Unable to select your database”


    Any suggestions as to where I’m going off track?

    Thanks.

  • #2 / Jul 16, 2010 2:52am

    John Henry Donovan

    12339 posts

    ramonekalsaw,

    When you say ‘left empty’ so you mean left empty for this forum post or you actually left them empty?

    Can you run the Server Wizard on your local environment please

    Make sure your local environment has same version of PHP as your live site

  • #3 / Jul 16, 2010 5:29pm

    ramonekalsaw

    377 posts

    ramonekalsaw,
    When you say ‘left empty’ so you mean left empty for this forum post or you actually left them empty?

    I actually left them empty because I wasn’t sure if they applied to a local install, and I’m not at all sure what settings to change for the localhost version of config.php.

    ramonekalsaw,
    Can you run the Server Wizard on your local environment please

    Ran //localhost:8888/wizard.php/

    A. Step 1: Server Check - All requirements are supported (Yes)
    B. Step 2: Check Database:

    a. MySQL Server address—localhost
    b. Database User name—Should I be using my live site’s Database User Name?
    c. Database Password—Should I be using my live site’s Database Password?
    d. Database Name—Same as my live site since that’s where I imported it from.

    Bottomline: What changes do I need to make to my live config.php to conform it to the localhost?

    ramonekalsaw,
    Make sure your local environment has same version of PHP as your live site

    PHP Version 5.1.6 on live server running EE 1.6.8
    PHP Version 5.3.2 on localhost running EE 2.0.2

    Do I need to synch these two up? If so, what’s the best way to do that?

    Thanks.

  • #4 / Jul 16, 2010 5:40pm

    Sue Crocker

    26054 posts

    I’d go another way, creating a new database on MAMP, run the install to match the install you want to use. If it’s the 1.6.9 version, upgrade it first on the main site.

    Make sure that install works, then migrate your tables over.


    Does that help?

  • #5 / Jul 16, 2010 6:37pm

    ramonekalsaw

    377 posts

    I was able to get my downloaded live files to link up to the database by making the following changes to config.php based on these instructions—How to install ExpressionEngine on MAMP.

    $conf[‘db_username’] = “root”;
    $conf[‘db_password’] = “root”;

    So that’s a success ...

    ... but my Control Panel is borked so I’m going to download the system files again ... and cross my fingers : /

  • #6 / Jul 16, 2010 9:00pm

    ramonekalsaw

    377 posts

    I downloaded all of my files from the live server to the localhost again to make sure nothing had gotten corrupted. No errors. I have the Images, System, and Themes directories in the root MAMP > htdocs directory but my control panel is a mess: no theme or structure ... just a bunch of (non-working) links on the page.

    Any suggestions for a fix?

    Thanks.

  • #7 / Jul 17, 2010 10:11am

    Greg Salt

    3988 posts

    Hi Ramone,

    What is shown in your Admin > System Preferences “Theme Folder Path” and “URL to your “themes” folder”?

    Cheers

    Greg

  • #8 / Jul 19, 2010 7:51pm

    ramonekalsaw

    377 posts

    I adjusted my urls/paths in Admin > General Configuration and have the Control Panel working again : ) ... but I’m still not able to connect to my index.php.

    Here’s what I’ve checked in Admin > General Configuration and system file settings:

    —Name of your site’s index page = index.php

    —URL to the root directory of your site = localhost:8888/biomview1

    —$system_path in path.php file is set to my changed system directory name: $system_path = “./my_new_system_name/”;

    When I try to bring up //localhost:8888/biomview1/ I get this error message:

    You have exceeded the allowed page load frequency.

    Regardless of how many times I try to refresh.

    Any suggestions for bringing this installation in for a final landing? 😊

    Thanks.

  • #9 / Jul 20, 2010 2:38am

    John Henry Donovan

    12339 posts

    ramonekalsaw,

    Can you try disabling your Throttling

    CP Home ›  Admin ›  System Preferences ›  Throttling Configuration

  • #10 / Jul 20, 2010 3:37pm

    ramonekalsaw

    377 posts

    ramonekalsaw,

    Can you try disabling your Throttling

    CP Home ›  Admin ›  System Preferences ›  Throttling Configuration

    Thanks, John ... turning off throttling did the trick and now I can access my pages. But why do I need to turn throttling off: Maximum Number of Page Loads is 100?

    I sure wish I knew that message I was getting—You have exceeded the allowed page load frequency—pointed to the throttling feature ... then I’d have those 5 hours of my life back : /

    Thanks for ending that misery ... Ramone ...

  • #11 / Jul 20, 2010 3:51pm

    Ingmar

    29245 posts

    Glad to see you’re finally set. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases