• I tried Installing WP on my Mac using MAMP.
    This is the first time i try this. SO I’m a NEW at this, sorry for the lack of details.

    copied the files in the local folder
    conected to local:8888
    instalation language page came up
    chose english
    at the next page, insted of going through the instalation , itried to edit the config file myself.

    'NAme:'
    'User'
    'PAssw'
    'Server'

    then i created my own key phrases.
    saved the file
    (in the same folder i created a new sample file(copied from the original)

    When i whent back to my browser, I got an error message saying that a config file already existed and i needed to delete it.

    What did i do wrong??

    Just want to add, Finally i ended up redoing everything throuth browser installation. but i still would like to know what i missed)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Once your wp-config.php is ready with logins and so, you need to delete wp-config-sample.php in same folder, because WordPress detects both files.

    And eventually restart your local webserver, before retrying to setup (no need to restart browser, just refresh page).

    Thread Starter Kaizoku

    (@kaizoku)

    Hi Digico

    As an educational exercise,
    i deleted my WP folder and replaced it with a clean downloaded version.I then deleted the sample file and replaced it with a config file that i filed out.
    when i type loalhost:8888 in my browser i now get a white page.

    What ame i missing? I compered the my config file and the onethat was insataled using the web browser and they look thew same (exept for the AUTh_key)

    Also when i look ate the web instalation( that worked)the SAmple file is still in the foulder.

    Hi Kaizoku,

    What happens if you type:
    https://localhost:80 ?

    In general, I insist on general any local webserver would use port 80. It’s highly possible MAMP doesn’t use port 80 like maybe 8080. You can check that on port used by Apache by MAMP (usually on file like httpd.conf for MAMP). But as I’m not on Mac, I don’t know the file location.

    Just do a full system search to find httpd.conf, you’ll find some files , edit them to see which port it’s using. Then update wp-config.php file with the one you found to run php and thus WordPress on your local web server aka https://localhost:8888. Restart MAMP before every trial.

    A final word, maybe your firewall is blocking a port, thus 8080 or 80 will not work because a software firewall blocks it. You might need to check OS firewalls (we have that in Windows too).

    And another final word, maybe your box, aka your router is blocking some ports, you’d might want to check that too. That applies in general if you have a large fiber connection or like.

    Hope it helps,

    Digico,

    Thread Starter Kaizoku

    (@kaizoku)

    Where to start.

    Found the file, but cant open it. Don’t have the right App to view it, it seems.

    80 gives me an error page: Can’t connect.

    On the reg Installation, if I type localhost:8888, my WP page comes up, with no glitch. But if i replace the folders content with the content of a clean DLDed WP (unzipped), and add the config file, all i get is a white page. no error or anything.
    same thing if i just replace the config file of the working folder with my original one.

    as far as i can tell they’re the same. except for the KEY’s.

    restarted MAMP, Restarted the Browser, same results.

    a mystery

    Thread Starter Kaizoku

    (@kaizoku)

    Does the PHP database have anything to do with this?

    Sorry to read that,

    Yes database is involved in every wordpress page. Even at setup. But it’s a mysql database (hence the MAMP word).

    It means if wp-config.php file is not well setup, WP will fail.

    To access and edit php files, you need a simple text editor, I think one of the most famous is Textmate on iOs/mac (free).

    What you can do is activate this in wp-config.php file:

    /**
    ** ACTIVATE DEBUG MODE **
    */
    define(‘WP_DEBUG’, true);

    It might show the few errors that bugs.

    And other possible issue, is you don’t have rights to rewrite files in web folder in MAMP (should be run as ‘admin’ or ‘root’ in a mac/linux os).

    To help you troubleshoot, you can also use a tool like phpmyadmin in most apache setups.

    Moderator t-p

    (@t-p)

    Thread Starter Kaizoku

    (@kaizoku)

    Hi Tara

    I was looking at that link when i first tried.
    I think i did everything rigth until i reached the 5 min install part where I tried to edit the config fike myself.

    all i ended getting is a white screen.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error Creating a wp-config file’ is closed to new replies.