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.
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");
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"
Then its not a path problem its some sort of permission problem. Maybe selinux?
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.
It could be incorrect permissions in the virtual host.
I'm wasn't really aware you could set permissions in a virtual host. Do I just modify my vhosts.conf file?
You need to have the <Directory> setup in the virtual host to allow Apache to access it.