Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: nlhaines on November 01, 2012, 01:30:25 PM

Title: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: nlhaines on November 01, 2012, 01:30:25 PM
I'm not sure what exactly went wrong, but at some point I broke my roundcube installation.  Now, when I try to access roundcube I get PHP Fatal error:  require_once(): Failed opening required 'program/include/iniset.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/roundcubemail/index.php on line 31

The file /usr/share/roundcubemail/program/include/iniset.php exists.  Changing permissions does not seem to help.  I also tried modifying index.php with the following

old line 31: require_once 'program/include/iniset.php';
new line 31: require_once(__DIR__ . "/program/include/iniset.php");

When I attempt to access roundcube with these changes I get the same error, with the full path to the file, which I checked.

Running php 5.3.3
Zend Engine 2.3
Roundcube version 0.7.3

I'm trying to check now if open_basedir is causing problems (trying because I'm don't know php).  I don't believe it's set, but I'm not sure.
EDIT:  phpinfo() yields "open_basedir => no value => no value"  when called from the command line....
EDIT:  and also when called from within index.php....

Any help would be greatly appreciated.


Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: SKaero on November 01, 2012, 08:18:06 PM
If the file exists at "/usr/share/roundcubemail/program/include/iniset.php" try changing the require line to:

require_once("/usr/share/roundcubemail/program/include/iniset.php");
Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: nlhaines on November 01, 2012, 09:46:48 PM
Still getting basically the same error: "PHP Fatal error:  require_once(): Failed opening required '/usr/share/roundcubemail/program/include/iniset.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/roundcubemail/index.php"
Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: SKaero on November 01, 2012, 11:00:55 PM
Then its not a path problem its some sort of permission problem. Maybe selinux?
Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: nlhaines on November 01, 2012, 11:28:33 PM
Selinux is disabled, and chmod-ing the entire include directory to 777 doesn't fix the problem.  The files are owned by apache:apache, which I assume is correct.
Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: SKaero on November 01, 2012, 11:36:26 PM
It could be incorrect permissions in the virtual host.
Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: nlhaines on November 01, 2012, 11:59:02 PM
I'm wasn't really aware you could set permissions in a virtual host.  Do I just modify my vhosts.conf file?
Title: Re: Help please - require_once(): Failed opening required 'program/include/iniset.ph
Post by: SKaero on November 03, 2012, 05:35:16 PM
You need to have the <Directory> setup in the virtual host to allow Apache to access it.