WordPress.org

Ready to get started?Download WordPress

Forums

Can't locate the wp-config.php (11 posts)

  1. Stolen
    Member
    Posted 7 years ago #

    I have a problem when I come to the point in the install process where I'm supposed to run the install.php. When I try to run the file in the browser, the following error message is coming up:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../wp-config.php) is not within the allowed path(s): (.:/tmp/:/home/zendurl/public_html/thefirewall/) in /home/zendurl/public_html/stolen/wordpress/wp-admin/install.php on line 3
    There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

    I've seen similar postings in the forum, but none with an error message that is reminiscent of the first lines in mine, that is the cryptic writings about what seems to be some kind of directory problem.

    I can't see that I have done anything wrong in the configuration of the config-file, and I have tried to uppload the WP-files, both in the main directory and in a wordpress-map.

    If anyone have a splendid solution, feel free to inform me (in a simple way).

  2. MichaelH
    Member
    Posted 7 years ago #

    If you put this text
    <? print "hello, world" ?>

    in a file called hi.php and upload that file to your website's root folder, then browse to http://www.yourwebsite.com/hi.php does it display hello, world?

  3. Stolen
    Member
    Posted 7 years ago #

    Yes, it does...

  4. Stolen
    Member
    Posted 7 years ago #

    ...but that doesn't help me...

  5. evilzenscientist
    Member
    Posted 7 years ago #

    Are you running on a hosted server? What kind of access do you have to the server itself?

    Where did you untar the wordpress files?

    From the look at your config I'm guessing your wordpress install should be visible at:

    http://yourdomain/stolen/wordpress

    or

    http://yourdomain/wordpress

    depending on setup.

  6. Stolen
    Member
    Posted 7 years ago #

    Yes, it's a hosted server, some free space provided without charge by zendurl.com. I don't have any access to the server more than through some kind of rather limited controlpanel. Though, I have managed through this panel to set a mySQL-account, and apparantly the php-function is working too.

    I have tried to upload the WordPress files in both the main directory, wich is http://www.zendurl.com/stolen/ and http://www.zendurl.com/stolen/wordpress/. The result is the same at both directories.

    Maybe it's the host server that is the problem, but it seems anyway that WP can connect with the database.

  7. MichaelH
    Member
    Posted 7 years ago #

    Sorry, didn't get back to this soon enough--the idea of the hi.php was just to highlight what folder was acting as your webroot folder.

    It looks like you might have files in both your stolen and stolen/wordpress folders.

    Additional resource just in case:
    Giving_WordPress_Its_Own_Directory

  8. Stolen
    Member
    Posted 7 years ago #

    I have put all the wordpress files back to the webroot folder, but the error message is the still the same. What confuses me the most is this passage: File(../wp-config.php) is not within the allowed path(s): (.:/tmp/:/home/zendurl/public_html/thefirewall/) in /home/zendurl/public_html/stolen/wordpress/wp-admin/install.php on line 3

  9. Stolen
    Member
    Posted 7 years ago #

    I whent in fearless in to the install.php and did some irrational editing, like adding a dot in the line define('WP_INSTALLING', true);
    if (!file_exists('.
    [here is where i added the dot]../wp-config.php'))

    Then I did the same in the line require_once('.../wp-config.php');

    Now I only get the following when trying to run the install.php:

    There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.

  10. Stolen
    Member
    Posted 7 years ago #

    That is, the following message is gone:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../wp-config.php) is not within the allowed path(s): (.:/tmp/:/home/zendurl/public_html/thefirewall/) in /home/zendurl/public_html/stolen/wordpress/wp-admin/install.php on line 3

  11. moshu
    Member
    Posted 7 years ago #

    "open_basedir restriction in effect."

    I'd ask the host about this setting. See also this tut:
    http://ca3.php.net/features.safe-mode

    Quote:

    When a script tries to open a file with, for example, fopen() or gzopen(), the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it.

    I am not a server wizard... but I'd make sure this doesn't affect my site.

Topic Closed

This topic has been closed to new replies.

About this Topic