Page 1 of 1

php script problems since update

Posted: Mon Dec 13, 2010 8:09 pm
by webfeatus
Dec 14 07:12:00 Updated: php-mysql-5.2.15-1.el5.art.i386
Dec 14 07:12:00 Updated: php-devel-5.2.15-1.el5.art.i386
Dec 14 07:11:57 Updated: php-xml-5.2.15-1.el5.art.i386
Dec 14 07:11:57 Updated: mod_security-2.5.13-2.el5.art.i386
Dec 14 07:11:56 Updated: php-mbstring-5.2.15-1.el5.art.i386
Dec 14 07:11:56 Updated: php-imap-5.2.15-1.el5.art.i386
Dec 14 07:11:56 Updated: php-gd-5.2.15-1.el5.art.i386
Dec 14 07:11:55 Updated: apr-util-1.2.7-11.el5_5.2.i386
Dec 14 07:11:52 Updated: php-5.2.15-1.el5.art.i386
Dec 14 07:11:51 Updated: php-cli-5.2.15-1.el5.art.i386
Dec 14 07:11:51 Updated: php-pdo-5.2.15-1.el5.art.i386
Dec 14 07:11:50 Updated: php-common-5.2.15-1.el5.art.i386

Now Horde displays errors:

Code: Select all

Warning: Unknown: open_basedir restriction in effect. File(/usr/share/psa-horde/index.php) is not within the allowed path(s): (/usr/share/psa-horde:/etc/psa-webmail/horde:/etc/psa:/tmp:/var/tmp:/var/log/psa-horde:/usr/share/doc:/usr/share/psa-pear) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/usr/share/psa-horde/index.php' (include_path='/usr/share/psa-horde:/usr/share/psa-horde/lib:/usr/share/psa-pear:.') in Unknown on line 0
In fact all hosted domains are experiencing this open base directory or safe mode issue:

Code: Select all

Warning: Unknown: open_basedir restriction in effect. File(/var/www/vhosts/easytees.com.au/httpdocs/index.php) is not within the allowed path(s): (/var/www/vhosts/easytees.com.au/httpdocs:/tmp) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Warning: Unknown: open_basedir restriction in effect. File(/var/www/vhosts/easytees.com.au/httpdocs/index.php) is not within the allowed path(s): (/var/www/vhosts/easytees.com.au/httpdocs:/tmp) in Unknown on line 0

Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0

Fatal error: Unknown: Failed opening required '/var/www/vhosts/easytees.com.au/httpdocs/index.php' (include_path='.:') in Unknown on line 0
Any assistance appreciated.

Re: php script problems since update

Posted: Tue Dec 14, 2010 11:43 am
by nachtmarkt

Re: php script problems since update

Posted: Tue Dec 14, 2010 8:23 pm
by webfeatus
These updates seemed to create the open_basedir restriction problem:
Dec 14 07:12:00 Updated: php-mysql-5.2.15-1.el5.art.i386
Dec 14 07:12:00 Updated: php-devel-5.2.15-1.el5.art.i386
Dec 14 07:11:57 Updated: php-xml-5.2.15-1.el5.art.i386
Dec 14 07:11:56 Updated: php-mbstring-5.2.15-1.el5.art.i386
Dec 14 07:11:56 Updated: php-imap-5.2.15-1.el5.art.i386
Dec 14 07:11:56 Updated: php-gd-5.2.15-1.el5.art.i386
Dec 14 07:11:52 Updated: php-5.2.15-1.el5.art.i386
Dec 14 07:11:51 Updated: php-cli-5.2.15-1.el5.art.i386
Dec 14 07:11:51 Updated: php-pdo-5.2.15-1.el5.art.i386
Dec 14 07:11:50 Updated: php-common-5.2.15-1.el5.art.i386

I updated again:
Dec 14 11:24:12 Updated: php-devel-5.2.15-2.el5.art.i386
Dec 14 11:24:10 Updated: php-mysql-5.2.15-2.el5.art.i386
Dec 14 11:24:09 Updated: php-imap-5.2.15-2.el5.art.i386
Dec 14 11:24:09 Updated: php-mbstring-5.2.15-2.el5.art.i386
Dec 14 11:24:09 Updated: php-gd-5.2.15-2.el5.art.i386
Dec 14 11:24:09 Updated: php-xml-5.2.15-2.el5.art.i386
Dec 14 11:24:09 Updated: php-5.2.15-2.el5.art.i386
Dec 14 11:24:09 Updated: php-cli-5.2.15-2.el5.art.i386
Dec 14 11:24:08 Updated: php-pdo-5.2.15-2.el5.art.i386
Dec 14 11:24:08 Updated: php-common-5.2.15-2.el5.art.i386

Second set seemed to fix the problem.

After reading: http://atomicorp.com/forums/viewtopic.php?p=26790
I checked...

# cat 'zend.ini' | less
zend_extension=/usr/lib/php/zend/ZendOptimizer-5.2.so
# cat 'ioncube.ini' | less
zend_extension=/usr/lib/php/ioncube/ioncube_loader_lin_5.2.so

I can only assume that the second update has taken care of this.

Re: php script problems since update

Posted: Wed Dec 15, 2010 12:50 am
by scott
I couldn't reproduce it myself, and as you might have noticed the zend & ioncube packages didn't change. Its not clear that there was ever really a problem there.

Re: php script problems since update

Posted: Wed Dec 15, 2010 1:28 am
by DerFalk
All fine.. no problems with this on my CentOs5 i386

:D

Re: php script problems since update

Posted: Wed Dec 15, 2010 12:44 pm
by nachtmarkt
I have this error into my system of CentOS. It should be not affect all the systems as i see.
Maybe the solution could be to check it by yourself after a upgrade of PHP.