Friday, July 10, 2009

Pear Module in Ubuntu doesn’t work

I have tried this tips to install and configure Pear Module and check the Pear Module but when run my script this error still appear

Warning: require_once(System.php): failed to open stream:
No such file or directory in /path/to/check_pear.php on line 2

After did some checking, i found the culprit which is apparmor. I added pear include_path into apparmor.d/usr.sbin.apache2 then restart apparmor daemon.

Done, and now my php script can call pear module.