Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th September 2007, 15:32
alexwalkey alexwalkey is offline
Junior Member
 
Join Date: Sep 2007
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Question index.php is showing up blank

Hi, I've read a few other posts about this but haven't found any conclusive answers.

When I added the site I could see it's standard index.html page no problem. I then upload all of my Joomla stuff and then when I go back and browse to the site it''s just blank, a white screen. I've checked that index.php is in the directoryindex, I've navigated directly to www.mysite.com/index.php and even www.mysite.com/installation/index.php - all blank.

This is the second site I've installed in two days with exactly the same Joomla files - the first site set up fine and still works 100%. (so I'm sure the php files are getting parsed - or is this on a per site basis...?)

The first site (the one that works) is at test.mysite.com, this new one is at www.mysite.com - that's the only difference to the way they were set up that I can see. Both sites are enabled for php...

(I've even deleted the site and re-"set it up" again - same issues...)

Has anyone seen this before? Any ideas?
Reply With Quote
Sponsored Links
  #2  
Old 27th September 2007, 22:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Please have a look at the error.log file of this website.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th September 2007, 09:15
alexwalkey alexwalkey is offline
Junior Member
 
Join Date: Sep 2007
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Hi Till,

Thanks for the quick response. The error log seems filled with useful info (that means nothing to me!), hope it helps:

[Thu Sep 27 11:06:28 2007] [error] [client 192.168.0.156] PHP Warning: require_once(/srv/www/web3/web/includes/version.php): failed to open stream: Operation not permitted in /srv/www/web7/web/includes/joomla.php on line 71
[Thu Sep 27 11:06:28 2007] [error] [client 192.168.0.156] PHP Fatal error: require_once(): Failed opening required '/srv/www/web3/web/includes/version.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/web7/web/includes/joomla.php on line 71
[Thu Sep 27 14:02:40 2007] [error] [client 192.168.0.156] PHP Warning: require_once(): open_basedir restriction in effect. File(/srv/www/web3/web/includes/version.php) is not within the allowed path(s): (/srv/www/web7/) in /srv/www/web7/web/includes/joomla.php on line 71
[Thu Sep 27 14:02:40 2007] [error] [client 192.168.0.156] PHP Warning: require_once(/srv/www/web3/web/includes/version.php): failed to open stream: Operation not permitted in /srv/www/web7/web/includes/joomla.php on line 71
[Thu Sep 27 14:02:40 2007] [error] [client 192.168.0.156] PHP Fatal error: require_once(): Failed opening required '/srv/www/web3/web/includes/version.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/web7/web/includes/joomla.php on line 71
[Thu Sep 27 14:02:40 2007] [error] [client 192.168.0.156] File does not exist: /srv/www/web7/web/favicon.ico
[Thu Sep 27 14:02:40 2007] [error] [client 192.168.0.156] File does not exist: /srv/www/web7/web/favicon.ico

I'm running the openSUSE distro by the way, forgot to mention that first time round.

Thanks again!

-Alex
Reply With Quote
  #4  
Old 28th September 2007, 09:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,651 Times in 4,461 Posts
Default

Do you run PHP as suphp or php as cgi with suexec enabled? Then you must change the owner of the files to be the same then the web administrator user.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 28th September 2007, 09:42
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Beside that, so see the error displayed on the page (you have to decide your own if that makes sense on a prod. server), you can change the logging behaviour in the php.ini whether to log to a file or to screen.

Next thing is, same problem I had, that the pear directory is in none of the open_basedirs of a user when using ISPConfig. For this I opened a bug / FR, to include this directory... but it is not that easy to make it compatible with all platforms, due to the fact that the pear directory differs from distro to distro (e.g. debian: /usr/share/php, rhel/centos: /usr/share/pear).
If you wish I can tell you how to change which line in which file....

Last edited by Ben; 28th September 2007 at 09:45.
Reply With Quote
  #6  
Old 28th September 2007, 14:31
alexwalkey alexwalkey is offline
Junior Member
 
Join Date: Sep 2007
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Thanks Till, Ben,

@Till: I can't really say. I'm afraid my knowledge/involvement at that level is sketchy, but I'm getting better so if you could let me know how I can find that out I will go check it out.

@Ben: Please, if you can tell me that would be great But, surely this is a global thing? Why would one Joomla site work and the other not?

Thanks again,

Alex
Reply With Quote
  #7  
Old 28th September 2007, 14:39
alexwalkey alexwalkey is offline
Junior Member
 
Join Date: Sep 2007
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

One other thing - the first Joomla site was having a bit of trouble with parsing the php files. I looked up some answers here and played around with the config.inc.php file a bit (nothing seemed to work at first so I left it on "addhandler" - what it says to use for OpenSUSE - and a day later it was all ticking along merrily).

Sorry, should've mentioned that in the beginning!
Reply With Quote
  #8  
Old 28th September 2007, 16:29
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Actually I do not know why the other joomla installation about that you talked, works, but regarding this message

Quote:
[Thu Sep 27 14:02:40 2007] [error] [client 192.168.0.156] PHP Warning: require_once(): open_basedir restriction in effect. File(/srv/www/web3/web/includes/version.php) is not within the allowed path(s): (/srv/www/web7/) in /srv/www/web7/web/includes/joomla.php on line 71
(And I guess this line is missing for the messages from Thu Sep 27 11:06:28 2007).

This message means that the setting for open_basedir for that user is not granting access to this file. If it would be an owner problem resulting of safe_modes gid check, then the errormessage would be different.
Reply With Quote
  #9  
Old 29th September 2007, 13:13
alexwalkey alexwalkey is offline
Junior Member
 
Join Date: Sep 2007
Posts: 19
Thanks: 6
Thanked 0 Times in 0 Posts
Default

Hi Ben,

Thanks again for helping. If the line is missing from what I posted then it wasn't logged, I copy-pasted the whole lot so one line missing in the middle is pretty unlikely.

And with regard to your message, how should I fix the ownership problem?

I really don't mean to be rude or ask to be "spoon-fed" a solution, but it seems like you guys know what the problem is.Could I get slightly more specific pointers or instructions? that would really help.

Thanks in advance.

-Alex

ps Are a few of you guys German? I'm actually taking classes at the moment : )
Reply With Quote
  #10  
Old 29th September 2007, 13:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
 
Default

Is PHP Safe Mode switched on for that web site? If so, turn it off in ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
alexwalkey (1st October 2007)
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
Apache exit signal Segmentation fault (11) - PHP - Blank page Salvis Server Operation 12 16th September 2011 17:11
Index Blank CleberDantas Installation/Configuration 16 9th July 2007 22:08
Can't set blank hostname pendland Installation/Configuration 4 31st March 2007 16:21
php files not showing properly (as text) pimvh Server Operation 11 5th October 2006 17:39
Frequent blank page when first opening site? minezamac Installation/Configuration 3 1st May 2006 20:55


All times are GMT +2. The time now is 14:44.


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