PHP - Mail.php and Mail/mime.php issues
OK, so PHP is throwing errors and I have no idea why. Basically, opening 'Mail.php' and 'Mail/mime.php' fails. The errors even indicate they're looking in the correct path (/usr/share/pear), so what gives?
Errors: [Sun Feb 08 16:53:31 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: include_once(Mail.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/html/base/includes/base_action.inc.php on line 29 [Sun Feb 08 16:53:31 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'Mail.php' for inclusion (include_path='.:/php/includes:/usr/share/pear:/usr/share/php') in /var/www/html/base/includes/base_action.inc.php on line 29 [Sun Feb 08 16:53:31 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: include_once(Mail/mime.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/html/base/includes/base_action.inc.php on line 30 [Sun Feb 08 16:53:31 2009] [error] [client xxx.xxx.xxx.xxx] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'Mail/mime.php' for inclusion (include_path='.:/php/includes:/usr/share/pear:/usr/share/php') in /var/www/html/base/includes/base_action.inc.php on line 30 I've verified I do have both 'Mail.php' and 'Mail/mime.php' (and even in the correct path mentioned in the error): [root@someids ~]# locate ".php" | egrep -i "(mail|mime)" ... /usr/share/pear/Mail.php /usr/share/pear/Log/mail.php /usr/share/pear/Mail/RFC822.php /usr/share/pear/Mail/mail.php /usr/share/pear/Mail/mime.php /usr/share/pear/Mail/mimeDecode.php /usr/share/pear/Mail/mimePart.php /usr/share/pear/Mail/null.php /usr/share/pear/Mail/sendmail.php /usr/share/pear/Mail/smtp.php ... Pear output: [root@someids ~]# pear install Mail Mail_mime Ignoring installed package pear/Mail Ignoring installed package pear/Mail_mime Nothing to install Yum output: Setting up Install Process Parsing package install arguments Package php-pear-Mail-Mime - 1.4.0-1.el5.centos.noarch is already installed. Package php-pear-Mail - 1.1.14-1.el5.centos.noarch is already installed. Nothing to do Permissions: [root@someids ~]# ll -h /usr/share/pear/ ... drwxr-xr-x 2 root root 4.0K Feb 8 14:25 Mail -rw-r--r-- 1 root root 8.8K Feb 8 14:25 Mail.php ... I've even chowned the above file/folder to apache.apache to no avail. Here's lines 29 and 30 of base_action.inc.php mentioned in the error logs, for reference: include_once("Mail.php"); // r.rioux added for PEAR::Mail include_once("Mail/mime.php"); //r.rioux added for PEAR::Mail attachments Also for reference, this is a CentOS 5.2 and its current primary services are apache, mysql, snort and base (acid). I wanted to keep it as minimal as possible too, so when I was installing the OS, I didn't include ANY additional packages. I just install packages through yum on 'as needed' basis. Is it possible I'm missing a critical php package thats usually included by default? Not sure if this matters, but I've verified sendmail is listening on TCP port 25 and is functioning correctly. I feel like I've tried everything. Any help would be appreciated. |
I'm thinking its a permission issue... SELinux is turned off, and the following doesn't work either:
[root@someids ~]# chmod 777 /usr/share/pear [root@someids ~]# chmod 777 /usr/share/pear/Mail* [root@someids ~]# service httpd restart AHHHHH! |
All times are GMT -5. The time now is 01:01 AM. |