Hi guys. I've just installed SME 7.2. I need to run timetrex time manager. Now, the last hurdle I have while installing timetrex is PEAR. I need to have PHP recognize the pear directory -or so I understand. However, so far no luck. Take a look at this conversation.
If you won't understand the paraphrasing here, please take a look at the following link (
http://forums.timetrex.com/viewtopic.php?p=2188#2188)
While installing timetrex I get,
PHP's PEAR package is not installed. TimeTrex requires PEAR to be installed.
On most Linux distributions installing the php-pear package is enough.
The numbered lines (1,2,3,4) are what the technical guys at timetrex said were possilbe causes of the error above. What follows is my answer.
1. /etc/php.ini isn't the correct php.ini file
phpinfo() gives the following output
Configuration File (php.ini) Path /etc/php.in
2. the include_path in php.ini is incorrect or not properly set.
my phpinfo() shows:
Directive....................Local Value............................................Master Value
include_path .:/usr/share/pear-addons:/usr/share/pear .:/usr/share/pear-addons:/usr/share/pear
3. /usr/share/pear/PEAR.php doesn't actually exist.
[root@vassrv ~]# ls -l /usr/share/pear/PEAR.php
-rw-r--r-- 1 root root 34266 Feb 17 2007 /usr/share/pear/PEAR.php
4. The user that your web server runs as doesn't have permissions to read /usr/share/pear/PEAR.php.
I changed permissions for PEAR.php
[root@vassrv ~]# ls -l /usr/share/pear/PEAR.php
-rwxrwxrwx 1 apache apache 34266 Feb 17 2007 /usr/share/pear/PEAR.php
Finally, the technical lad there had this to say:
Create a file like: test.php that contains the following:
Code:
<?php
require('PEAR.php');
exit;
?>
the run: php test.php
Does it fail and give you an error?
As well are you using ACLs or any other "high" security settings in CentOS? Those can often cause odd problems like this.
Well, I ran the php script and it does not give an error. It goes through without any message
As for the ACL question, I really don't know!
So, what could be the problem?