Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 22nd May 2010, 07:11
tristanlee85 tristanlee85 is offline
Senior Member
Join Date: Apr 2006
Posts: 199
Thanks: 3
Thanked 2 Times in 2 Posts
Default PHP pages displaying blank

After tracking it down, the error seems to be related to the open_basedir (according to the error log), but the file being access does seem to be within the list of directories.

[Fri May 21 20:07:04 2010] [error] [client] PHP Warning:  Unknown: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client1/web10/web:/var/www/clients/client1/web10/tmp:/var/www/www.therealmikelee.com/web:/srv/www/www.therealmikelee.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin) in Unknown on line 0
[Fri May 21 20:07:04 2010] [error] [client] PHP Fatal error:  Can't load /var/www/www.therealmikelee.com/web/restart.php, open_basedir restriction. in Unknown on line 0
And the vhost file:

<Directory /var/www/www.therealmikelee.com>
    AllowOverride None
    Order Deny,Allow
    Deny from all

<VirtualHost *:80>
      DocumentRoot /var/www/www.therealmikelee.com/web
    ServerName www.therealmikelee.com
    ServerAdmin webmaster@www.therealmikelee.com

    ErrorLog /var/log/ispconfig/httpd/www.therealmikelee.com/error.log

    ErrorDocument 400 /error/400.html
    ErrorDocument 401 /error/401.html
    ErrorDocument 403 /error/403.html
    ErrorDocument 404 /error/404.html
    ErrorDocument 405 /error/405.html
    ErrorDocument 500 /error/500.html
    ErrorDocument 503 /error/503.html
    <Directory /var/www/www.therealmikelee.com/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    <Directory /var/www/clients/client1/web10/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all

    # mod_php enabled
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fwebmaster@www.therealmikelee.com"	
    php_admin_value upload_tmp_dir /var/www/clients/client1/web10/tmp
    php_admin_value session.save_path /var/www/clients/client1/web10/tmp
    php_admin_value open_basedir /var/www/clients/client1/web10/web:/var/www/clients/client1/web10/tmp:/var/www/www.therealmikelee.com/web:/srv/www/www.therealmikelee.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web10 client1

I've tried adjusting the open_basedir value to just the /var/www/www.therealmikelee.com/web value there I know the file is and it still errors out.

ColdFusion Coding, Blog, and Forum
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 22:13
Error when install ISPConfig 2 with components built from source X-admin Installation/Configuration 5 30th April 2010 14:22
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18

All times are GMT +2. The time now is 12:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.