• Hi! I’m trying to install a new fresh wordpress and all is fine until i try to login after install. After typing password my screen is blank. I can’t see blog either. After hours of research I came to following conclusion:

    In my main folder /home/***/ i can see wordpress (using .htaccess and index.php)
    In /home/***/wordpress/ i don’t see anything after turning error_display i get:

    Warning: main() [function.main]: open_basedir restriction in effect. File(./wp-blog-header.php) is not within the allowed path(s): (/usr/local/share/httpd/htdocs/home/:/export/share/httpd/htdocs/home/:/var/tmp/) in /export/share/httpd/htdocs/home/***/wordpress/index.php on line 17

    As you can see the file is in allowed folder so i do not undestand why restriction is in effect.. what’s more interesting, I have installed wordpress on another account and everything is fine. The only difference is that another account is in folder /acccount2/
    and not in /home/***/

    There is local entry for account in /home folder in
    homepages.conf:

    <Directory /usr/local/share/httpd/htdocs/home>
    AllowOverride all
    php_admin_value open_basedir “/usr/local/share/httpd/htdocs/home/:/export/share/httpd/htdocs/home/:/var/tmp/”
    </Directory>

    Alias /***/ “/usr/local/share/httpd/htdocs/home/***/”
    Alias /*** “/usr/local/share/httpd/htdocs/home/***”

    Safe mode seems to be turned off (phpinfo() shows it’s off)

    Please help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gumi_kr

    (@gumi_kr)

    full warning:

    Warning: main() [function.main]: open_basedir restriction in effect. File(./wp-blog-header.php) is not within the allowed path(s): (/usr/local/share/httpd/htdocs/home/:/export/share/httpd/htdocs/home/:/var/tmp/) in /export/share/httpd/htdocs/home/***/wordpress/index.php on line 17

    Warning: main(./wp-blog-header.php) [function.main]: failed to open stream: Not owner in /export/share/httpd/htdocs/home/***/wordpress/index.php on line 17

    Fatal error: main() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/local/share/pear’) in /export/share/httpd/htdocs/home/***/wordpress/index.php on line 17

    Looks like you using wordpress from a directory wordpress so the index.php file that is in root needs to have folder wordpress on line 17

    require('./wordpress/wp-blog-header.php');

    Thread Starter gumi_kr

    (@gumi_kr)

    I checked it and it’s not that. I think problem is in apache config, but I don’t know how to change it. To make the problem simplier I have created two files:

    1) test.php:
    <?php
    require(‘test2.php’);
    ?>

    2) test2.php
    <?php
    print(‘akuku’)
    ?>

    when I copy those files to /home/***/ and open test.php everything is fine

    when I copy them to /home/***/wordpress/ i get the same error as before ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘open_basedir problem’ is closed to new replies.