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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 30th November 2005, 06:20
crudolphy crudolphy is offline
Member
 
Join Date: Nov 2005
Location: The Woodlands (Near Houston) Texas USA
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default PHP Errors in the "WEB-FTP" module

This was originally started under a thread relating to an eGroupWare install I was trying to do. Because it seemed to not necessarily be related to eGroupWare I have started a new thread. I have copied the error messages over from that thread and they are listed below:


However in ISPconfig when I log into "WEB-FTP" module in the right frame of the page I still have the following:

Warning: main(weblibmodule.inc.php) [function.main]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 238

Warning: main() [function.include]: Failed opening 'weblibmodule.inc.php' for inclusion (include_path='.:/root/ispconfig/php/lib/php') in /home/admispconfig/ispconfig/lib/session.inc.php on line 238

Warning: go_api::uses(ispconfig_isp_web.lib.php) [function.uses]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 126

Warning: go_api::uses() [function.include]: Failed opening 'ispconfig_isp_web.lib.php' for inclusion (include_path='.:/root/ispconfig/php/lib/php') in /home/admispconfig/ispconfig/lib/session.inc.php on line 126

Fatal error: Class 'isp_web' not found in /home/admispconfig/ispconfig/lib/session.inc.php on line 127

And now additionally above this where the icons were I now have the following:

Warning: main(weblibmodule.inc.php) [function.main]: failed to open stream: No such file or directory in /home/admispconfig/ispconfig/lib/session.inc.php on line 238

Warning: main() [function.include]: Failed opening 'weblibmodule.inc.php' for inclusion (include_path='.:/root/ispconfig/php/lib/php') in /home/admispconfig/ispconfig/lib/session.inc.php on line 238


Because I have started with the Ubuntu Breezy How To, and this is not a production server, I would like to help get this solved. When I originally posted this, one of the responses I got from Till asked whether I had seen the other posts regarding this. I have not. Also he states that it couldn't be reproduced and the sources contain no reference to the "missing" file.

Let me say from the outset that if the
/var/www/*/web directory is in it's initial state, i.e with an index.html file and an "error" directory these errors do not occur.

I see this problem when the egroupware directory (with it's subdirectories and files) are in anything below

/var/www/

as an example if I move the egroupware directory to:

/var/www/web1/egroupware
or
/var/www/web1/web/egroupware

the errors occur. If I move the egroupware to

/var/www/egroupware

the errors do not occur. This tells me that something offensive has been introduced to the virtual host area (correct??) when this directory is (moved, created, etc.) in this area.

Second if you examine the errors they occur in one program which is:

session.inc.php

and it concerns the statements at lines 126, 127, and 238. While I am no php programmer these statements appear to be concatenating variables and literals together.

In fact line 126 creates "ispconfig_isp_web.lib.php" where "ispconfig_" is a literal and "lib.php" are literals and the variable "$value" at some point contained the value "isp_web" which appears to come from an array "$modules." "ispconfig_isp_web.lib.php" is a program name that exists in the file "/home/admispconfig/ispconfig/lib/classes" however one of the errors is complaining that it doesn't exist and the include path it is using is "/root/ispconfig/php/lib/php". The error is correct, in that the path is wrong, it is looking in "/root/ispconfig/php/lib/php" when it should be looking in "/home/admispconfig/ispconfig/lib/classes".

Regarding line 238 the code is as follows:

//if(@is_file($go_info["server"]["server_root"] . $go_info["server"]["dir_trenner] . "web" . $go_info["server"]["dir_trenner"] . $go_info["modul"]["path"] . $go_info["server"]["dir_trenner"] . "lib" . $go_info["server"]["dir_trenner"] . "module.inc.php")) {
include($go_info["server"]["server_root"] . $go_info["server"]["dir_trenner] . "web" . $go_info["server"]["dir_trenner"] . $go_info["modul"]["path"] . $go_info["server"]["dir_trenner"] . "lib" . $go_info["server"]["dir_trenner"] . "module.inc.php");
//}

It would seem to me that if the variables "$go_info["server"]["dir_trenner"] were null or empty when this statement completed it would concatenate the literals "weblibmodule.inc.php" which is what the other errors are complaining about not being able to find.

Like I said I am no php programmer so I hope I have interpreted the code correctly. What puzzles me more though is, if my interpretation is correct why would placing the "egroupware" directory cause the variable to contain a null value?

Does this help in any way

Chuck Rudolphy
Reply With Quote
Sponsored Links
 

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
[error] an unkown filter was not added: PHP Arien Installation/Configuration 12 7th October 2006 15:17
Install issues with PHP Part cksrealm Installation/Configuration 7 29th November 2005 19:55
Installation Problems right after php building nagual Installation/Configuration 3 31st October 2005 11:28
Why php as an apache module?? yayien Developers' Forum 6 26th October 2005 19:45
Apache + PHP lola Server Operation 1 25th April 2005 14:41


All times are GMT +2. The time now is 03:36.


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