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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
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.

Code:
[Fri May 21 20:07:04 2010] [error] [client 98.28.57.67] 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 98.28.57.67] 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:

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

<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>
    <Directory /var/www/clients/client1/web10/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # 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
    </IfModule>


</VirtualHost>
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.

Thoughts?
__________________
ColdFusion Coding, Blog, and Forum
www.cfcoding.com
Reply With Quote
Sponsored Links
  #2  
Old 22nd May 2010, 12:26
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,804
Thanks: 840
Thanked 5,613 Times in 4,424 Posts
Default

1) Which PHP method did you select in this website?
2) Post the output of:

ls -la /var/www/www.therealmikelee.com/web/restart.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd May 2010, 18:16
tristanlee85 tristanlee85 is offline
Senior Member
 
Join Date: Apr 2006
Posts: 199
Thanks: 3
Thanked 2 Times in 2 Posts
 
Default

I am using mod_php.

I tried the script at 644 and 755.
Code:
[root@ns ~]# ls -la /var/www/www.therealmikelee.com/web/restart.php 
-rwxr-xr-x 1 web10 client1 167 2010-05-21 20:28 /var/www/www.therealmikelee.com/web/restart.php
__________________
ColdFusion Coding, Blog, and Forum
www.cfcoding.com
Reply With Quote
Reply

Bookmarks

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 19:27.


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