• 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).

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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 https://www.yourwebsite.com/hi.php does it display hello, world?

    Thread Starter stolen

    (@stolen)

    Yes, it does…

    Thread Starter stolen

    (@stolen)

    …but that doesn’t help me…

    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:

    https://yourdomain/stolen/wordpress

    or

    https://yourdomain/wordpress

    depending on setup.

    Thread Starter stolen

    (@stolen)

    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 https://www.zendurl.com/stolen/ and https://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.

    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

    Thread Starter stolen

    (@stolen)

    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

    Thread Starter stolen

    (@stolen)

    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.

    Thread Starter stolen

    (@stolen)

    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

    “open_basedir restriction in effect.”

    I’d ask the host about this setting. See also this tut:
    https://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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t locate the wp-config.php’ is closed to new replies.