WordPress.org

Ready to get started?Download WordPress

Forums

Question re wp-config.php file (4 posts)

  1. kathycam
    Member
    Posted 4 years ago #

    Hello,

    I an new to Word Press and have just created a new account here.
    I am hoping I can get a resolution to my problem.

    I am using the 5 minutes installation guide and am having a problem with step 5: (see below). When I navigate to
    http://eastcoasttechwriter.ca/wordpress/wp-admin/install.php
    I am getting a blank page in my browser.

    In the wp-config.php file there is one place I don't understand
    what I need to put here.

    /** WordPress absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    Can someone please help me.

    =========================

    5.Open /wp-admin/install.php in your browser. This should setup the tables needed for your blog. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the support forums with as much data as you can gather.

  2. Samuel B
    moderator
    Posted 4 years ago #

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');

    you leave that alone except for specific circumstances

    blank pages are usually indicative of php errors or low php memory - check the php error logs and ask host to bump memory to 32M for php

  3. v2belleville
    Member
    Posted 4 years ago #

    you leave that alone except for specific circumstances

    I might be under those specific circumstances and would really appreciate confirmation and hints about how to use this ABSPATH!

    I want to give a blog installed at http://www.host.eu/wordpress, URL like http://www.mydomain.net http://www.mydomain.net/about etc ...

    if I simply set the web adress in wp manager to http://www.mydomain.net, links look like what I want, but pages are not found

    my host gives the possibility to have a directory (www.host.eu/wordpress) poitn to a different domain (www.mydomain.net) but then I get errors, because there is a loop somewere ...

    can someone tell me if a proper seting of define('ABSPATH' could do what I whant ?

    many thks in advance!

    V

  4. v2belleville
    Member
    Posted 4 years ago #

    ok, I still do not know how define('ABSPATH' works..., but my problem:

    I want to give a blog installed at http://www.host.eu/wordpress, URL like http://www.mydomain.net http://www.mydomain.net/about etc ...

    was essentially due to a wrong setting in the blog's .htacess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /<em>wordpress/</em>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /<em>wordpress/</em>index.php [L]
    </IfModule>

    # END WordPress

    the wordpress/ subdirectory should be suppressed, since this path is already given by setting the blog's web address

    in my case, correct .htaccess is

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    have fun! ... ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic