How can I use PEAR from its shared directory in apache2?
I'm running the turnkey linux version of joomla and I need to use PHP's mail functionality to send a notification email from a page (separate from joomla content) . PHP's native stuff is rather plain and I find myself needing the functionality of PEAR. So I've installed PEAR via aptitude, but it has installed to /usr/share/php.
So, my question is, how do I include these files from php scripts? Firstly, the files are owned by root, the www-data user doesn't have access. It also appears that the permissions on the files may need to be modified. Some php files don't have the execute flag (shouldn't they)?
I recognize the point of having a centralized location for updates and sharing, so I don't want to just copy the files to my web directory (/var/www).
Symbolic link maybe?
No, there is no need to symlink. Pear is a "packaging system" on it's own, so you need to "pear install" stuff after you have installed the pear package with aptitude.
I was unaware of the path include directive in the php.ini file. That's what I was missing. Thanks.
|All times are GMT -5. The time now is 03:54 PM.|