Fatal error: require(): Failed opening required '/usr/share/php/smarty3/Smarty.class.php' (include_path='.:/usr/share/fusiondirectory/include:/usr/share/php:/usr/share/php') in /usr/share/fusiondirectory/include/php_setup.inc on line 334
Hello!
I get this error when opening webpage. This is a new installation of FusionDirectory 1.0.16 from repository "http://repos.fusiondirectory.org/debian-jessie jessie main" on Debian 8 with Nginx + PHP5-FPM.
Nginx is running with account www-data. Directory /usr/share/fusiondirectory/ is ownded by www-data accordingly:
namei -l /usr/share/fusiondirectory/ f: /usr/share/fusiondirectory/ drwxr-xr-x root root / drwxr-xr-x root root usr drwxr-xr-x root root share drwxr-xr-x www-data www-data fusiondirectory
File /usr/share/php/smarty3/Smarty.class.php exists:
ll /usr/share/php/smarty3/ insgesamt 76 -rw-r--r-- 1 root root 3929 Okt 20 2014 debug.tpl drwxr-xr-x+ 2 root root 4096 Okt 8 09:07 plugins -rw-r--r-- 1 root root 12672 Okt 20 2014 SmartyBC.class.php -rw-r--r-- 1 root root 48423 Okt 20 2014 Smarty.class.php drwxr-xr-x+ 2 root root 4096 Sep 18 18:19 sysplugins
Is this an issue caused by incomplete include_path in /usr/share/fusiondirectory/include/php_setup.inc?
cat /usr/share/fusiondirectory/include/php_setup.inc | grep include
ini_set("include_path", ".:$BASE_DIR/include:".PHP_DIR.":".PEAR_DIR);
+Update:+ After modifying files /usr/share/fusiondirectory/include/php_setup.inc by adding this section
/*!
* \brief smarty library path
*/
define ("SMARTY_DIR", "/usr/share/php/smarty"); /*! Define smarty directory */
and /usr/share/fusiondirectory/include/variables_common.inc by editing line
ini_set("include_path", ".:$BASE_DIR/include:".PHP_DIR.":".SMARTY_DIR.":".PEAR_DIR.");
I get 500 error.
THX
(from redmine: issue id 5183, created on 2016-10-09, closed on 2017-06-06)
- Relations:
- copied_to #5182
- Custom Fields:
- Support contract: None