• Resolved adela465

    (@adela465)


    Hi,

    I am a designer and have designed and coded a few sites. I’m trying to redesign my personal site and decided to try WordPress for a blogging portion. I want to set up a testing site on my Mac. I have followed all the directions that I have been able to find on this website, but I am completely confused. I guess I’ve installed WordPress because when I open install.php, I get this:

    ERROR: %s’), $error); ?>

    checked=”checked” />

    ‘.__(‘Already Installed’).’

    ‘.__(‘You appear to have already installed WordPress. To reinstall please clear your old database tables first.’).’
    ‘);} switch($step) { case 0: case 1: // in case people are directly linking to this display_header(); ?>

    ReadMe documentation at your leisure. Otherwise, just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.’), ‘../readme.html’); ?>

    error) ) wp_die($wpdb->error->get_error_message()); display_header(); // Fill in the data we gathered $weblog_title = isset($_POST[‘weblog_title’]) ? stripslashes($_POST[‘weblog_title’]) : ”; $admin_email = isset($_POST[‘admin_email’]) ? stripslashes($_POST[‘admin_email’]) : ”; $public = isset($_POST[‘blog_public’]) ? (int) $_POST[‘blog_public’] : 0; // check e-mail address $error = false; if (empty($admin_email)) { // TODO: poka-yoke display_setup_form( __(‘you must provide an e-mail address.’) ); $error = true; } else if (!is_email($admin_email)) { // TODO: poka-yoke display_setup_form( __(‘that isn’t a valid e-mail address. E-mail addresses look like: username@example.com’) ); $error = true; } if ( $error === false ) { $wpdb->show_errors(); $result = wp_install($weblog_title, ‘admin’, $admin_email, $public); extract($result, EXTR_SKIP); ?>
    admin
    ‘. $password .’
    ‘; } echo ‘

    ‘. $password_message .’
    ‘; ?>

    I never got a username or password, but I am required to enter both in order to open the site on my computer.

    I’d like to think that I’m an intelligent person and can understand code, but all of this stuff is really over my head (apparently). I don’t want to make a site on WordPress.com because I want to have my own design and layout. Could someone please help? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you really seeing all that code? If so, there is something very wrong. A lot of that text you should never see– like the close PHP (?>) tags among a lot else.

    First, are you sure your server is setup correctly? Apache will execute PHP correctly? And you have a functioning MySQL DB that WP can connect to? I don’t trust those messages you are seeing because you basically have a dump of PHP source code, not properly executed PHP.

    Second, have you edited anything at all besides wp-config.php? If no, maybe you’ve got a corrupt download and should try again with a fresh zip file.

    Thread Starter adela465

    (@adela465)

    I downloaded MAMP and everything is working with that, so I think Apache and MySQL are working. I haven’t touched anything besides the wp-config.php file. I guess I’ll try downloading it again. Thanks.

    Thread Starter adela465

    (@adela465)

    Okay, I tried reinstalling everything and it still doesn’t work. I can’t figure out why I’m seeing all that PHP code and I still can’t open the site on my computer. I’m assuming I should be able to get to an admin screen or something, but I can’t get to that at all. The instructions for installing WordPress using MAMP on a Mac aren’t the same as the instructions for installing on a web server; it seems like some steps are missing or something.

    Here are the instructions for installing using MAMP:

    Step 1: Installing MAMP

    Before you can install MAMP on your Mac, you’ll need to download it from the MAMP website. MAMP requires that your Mac is running Mac OS X 10.4.x or later.

    Once the MAMP download completes, double-click on the MAMP disk image (it should be something like MAMP_1.7.2.dmg), and you should get a MAMP window pop up. Drag the MAMP folder (not MAMP PRO – we’ll save that walk-through for another time) to the Applications folder.

    Step 2: Basic MAMP Settings

    Now that you’ve got MAMP installed on your system, launch MAMP.app (located at /Applications/MAMP/MAMP.app).

    While you’re editing settings, MAMP might prompt you for an administrator password. This is required because MAMP needs to run two processes: mysqld (MySQL) and httpd (Apache), and depending on the settings you set for those processes, you may or may not need to input your password.

    Once you open MAMP, click the Preferences button. Next, click over to “Ports.” The default MAMP ports are 8888 for Apache, and 8889 for MySQL. If you use this configuration, you shouldn’t get asked for your password, but you’d need to include the port number in the URL (localhost:8888). If you’d like to leave the port number out of the URL, change the Apache port to 80. The downside of using port 80 as your MAMP Apache port is that you’ll always be asked for your password.

    On the PHP tab, you can select either PHP version 4, or PHP version 5. This generally won’t effect WordPress, unless you’re using a plugin that requires PHP 5.

    Lastly, on the Apache tab, you’ll need to set a document root. This is where all of your files are going to be for your local web server. An example of a document root is /Users/USERNAME/Sites/wordpress/.

    Once you’re done editing all of the settings, hit OK to save them.

    Step 3: Starting MAMP Servers & Creating The Database

    To start the MAMP Apache and MySQL servers, simply click “Start Servers” from the main MAMP screen. Your MAMP servers have now been started.

    Once the MAMP servers start, the MAMP start page should open in your default web browser. If not, click on “Open start page” in the MAMP window. Once that’s open, select phpMyAdmin from the webpage.

    Under “Create new database”, enter in a database name such as “wordpress”, and press “Create.”

    Step 4: Downloading and Installing WordPress

    Now it’s time to download WordPress. Once you’ve downloaded and unzipped the WordPress download, open up the “wordpress” folder. Click and drag all of the files from the wordpress folder to your MAMP document root (I use /Users/USERNAME/Sites/wordpress/).

    Lastly, we’ve got to run WordPress’ famous 5-minute install. Visit your local site (localhost:port or localhost:port/wordpress), and enter the following information into the database setup form:

    database name: wordpress
    database host/server: localhost
    database user: root
    database password: root

    Once that’s complete, enter a blog name and email address, and you’re ready to use WordPress on your Mac.
    ______________________

    Once I get to Step 4, I try to run the “Famous 5-Minute Install” by putting the information into the wp_config.php file (except for this past time when I tried to go to the install.php file, but I got the same message as before, with all the PHP gibberish). I never see any place to put in my blog name and email address, either. Am I doing something wrong?

    I don’t know if you are doing something wrong but something is going badly wrong.

    Are you running ‘Mac OS X 10.4.x or later’?

    You are using the right ports?

    You started your servers and they are ‘green’?

    You created the database using PHPMyAdmin?

    You unzipped WP and put it into your web root? You can view, for example, license.txt by going to http://localhost/license.txt or http://localhost:8888/license.txt?

    What do you use to edit wp-config.php? You need to use a text editor and save as txt.

    This last time, when you didn’t edit wp-config, you didn’t edit anything else?

    Sorry for not being much help. Your PHP parser is breaking and I am trying to understand why.

    Thread Starter adela465

    (@adela465)

    I actually ended up doing a Google search for “Installing WordPress Locally on Your Mac with MAMP” and found a website with written and video tutorials on how to do it (http://michaeldoig.net/4/installing-wordpress-locally-using-mamp.htm).

    It turns out that I had put my wordpress folder into the wrong location (I had it in the “Sites” folder instead of the “MAMP/htdocs” folder). Then, I had to change the document root for Apache. Now I can log onto WordPress just fine. I just wish the WordPress tutorial had mentioned that!

    Thank you for your help, aplijdi! Hopefully designing this blog will go much more smoothly than installing WordPress was!

    adela – THANK YOU so much for providing that link. The instructions on Michael’s blog are so much more clear when it comes to setting up locally. I think the WP instructions are probably great for developers who would understand that the wordpress folder had to hog into htdocs, and would also know what “Visit your local site…” means. Anyway, after feeling like I wanted to shoot myself in the head all morning, everything is all set up and I’m now very excited to get to work on my blog!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Trying to Install Locally on Mac’ is closed to new replies.