trying to run down an issue reported which i suspect an update clipped a pear library, library reference or permission as no code changes were dropped.
PHP Fatal error: Call to undefined function
posix_getpwuid() in /usr/share/pear/Crypt/GPG/Engine.php
is there a listing of the unsafe php functions for asl - is posix_getpwuid function considered a function that needs to be whitelisted?
php, 5.2.13
pear 1.7.2
include_path .:/usr/share/pear:/usr/share/php
safe_mode_include_dir /usr/share/pear
PEAR Library erroring
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: PEAR Library erroring
Nothing in ASL about that one
- mikeshinn
- Atomicorp Staff - Site Admin
- Posts: 4149
- Joined: Thu Feb 07, 2008 7:49 pm
- Location: Chantilly, VA
Re: PEAR Library erroring
meh_,
A couple of ideas, do you have a "php-posix" package installed? If so, check check the permissions and ownership on the PHP code itself. I believe in your case it should be apache.apache.
Also, in case anyone using php 5.3, or 5.2.13 reads this, you need to install php-process.
A couple of ideas, do you have a "php-posix" package installed? If so, check check the permissions and ownership on the PHP code itself. I believe in your case it should be apache.apache.
Also, in case anyone using php 5.3, or 5.2.13 reads this, you need to install php-process.
Michael Shinn
Atomicorp - Security For Everyone
Atomicorp - Security For Everyone
Re: PEAR Library erroring
Hi Mike,
Thanks for the info about php-process.
Is it generally required / recommended for 5.2.13 and 5.3.x or only if your using php-pear?
Thanks for the info about php-process.
Is it generally required / recommended for 5.2.13 and 5.3.x or only if your using php-pear?
Re: PEAR Library erroring
Thanks much for the info Guys.
Package php-common-5.2.13-1.el5.art.i386 is installed
Tried also installing the php-posix package as it was not listed. Yum indicates already installed as part of
Package php-common-5.2.13-1.el5.art.i386
I'll dig into permissions to see if something got modified there. At /usr/share/pear everything is recursively owned by root.root.
Package php-common-5.2.13-1.el5.art.i386 is installed
Tried also installing the php-posix package as it was not listed. Yum indicates already installed as part of
Package php-common-5.2.13-1.el5.art.i386
I'll dig into permissions to see if something got modified there. At /usr/share/pear everything is recursively owned by root.root.
Re: PEAR Library erroring
actually, meant php-process is already installed as well on the second line of my post, to correct.
- mikeshinn
- Atomicorp Staff - Site Admin
- Posts: 4149
- Joined: Thu Feb 07, 2008 7:49 pm
- Location: Chantilly, VA
Re: PEAR Library erroring
Is the function still missing?
Your other option would be to roll back to the version of PHP that had the function. You can do that with this command:
rpm -Uvh --oldpackage /var/cache/yum/atomic/php-(whatever_version).rpm
Your other option would be to roll back to the version of PHP that had the function. You can do that with this command:
rpm -Uvh --oldpackage /var/cache/yum/atomic/php-(whatever_version).rpm
Michael Shinn
Atomicorp - Security For Everyone
Atomicorp - Security For Everyone