store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sun May 26, 2013 1:38 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: PHP 5.3.3
Unread postPosted: Mon Aug 23, 2010 4:53 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 10, 2006 12:55 pm
Posts: 656
Starting this since it's in testing but there's no thread yet.

There's no php-eaccelerator for the new packages

Quote:
]# php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/dbase.so' - /usr/lib64/php/modules/dbase.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: eAccelerator: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.3 (cli) (built: Aug 23 2010 11:12:04)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


Also, if you have any PECL modules (i.e. memcache) you'll need to uninstall and reinstall to compile against the new libraries.

_________________
"Its not a mac. I run linux... I'm actually cool." - scott


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Tue Aug 24, 2010 2:06 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
I just took a look at the 5.3.3-1.1 spec file and noticed fpm has been removed.

Can Scott please kindly clarify what the status on this is? (Why removed? plans to include before final release?)

I have been waiting for 5.3.3 for this very feature and it will be a massive downer if it is going to be left out.

Hopefully it will make it through.

Thanks.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Tue Aug 24, 2010 3:12 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
http://www.atomicorp.com/company/blogs/ ... works.html

there ya go


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Tue Aug 24, 2010 4:29 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Well done on the work done and thanks for the reply ... you guys post blog entries about once every three months or so ... it never crossed my mind to look there. :D

I get your point about the core business thing. There is indeed a question on why you provide these packages with them not directly related to your primary area. I sure appreciate having them though but perhaps it would be better to rely on another repo for my stuff and bearing in mind that your primary area is something else separate from a general software source. I wonder which repo might be a good substitute though. I made a request for phpMyAdmin update here for instance but thinking about it, this is clearly not in your primary area and I have since updated that using the epel repo. Bearing in mind that stuff like that is not your primary but with the experience you have, would you recommend something like epel to fill the gaps? Another one I have been looking at is CentALT particularly since it stays current with Nginx.

On fpm specifically, does anything fall over/break when the enable flag is on? if not, then please consider putting it back in. According to the php devs posting on the php-fpm google group, it doesn't break anything and just adds a SAPI and the CentALT repo put out a 5.3.3 RPM with fpm in July. I'll defer to your caution and expertise though.

Thanks a mil.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Tue Aug 24, 2010 6:14 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
I think given that we're in an application-centric security business here, knowing server components inside any out (php, mysql, etc) supports our mission. Take suhosin for example, thats something that ASL should integrate with, or a better example is ioncube loader. I just discovered something epically scary about it during the PHP 5.3 adventure (it cant handle mprotect, while 5.2 can).

I don't have anything to test FPM with, and at the time there were so many other changes going on that I could test I just skipped it.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Tue Aug 24, 2010 7:07 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Fair enough.

I'll keep my fingers crossed for when it gets released into the main.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Wed Aug 25, 2010 5:15 pm 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 10, 2006 12:55 pm
Posts: 656
Good blog post. A few thoughts

I think ZO has been dropped in favor of Zend Server (which is Zend's bundled PHP solution). Note how they talk about ZO as a feature of ZS, which is available in 5.3
http://www.zend.com/en/products/server-ce/index
I'm willing to bet most people using ZO were using the opcode caching and nothing else.

eaccelerator isn't out in testing. When can we expect that?

Firebird... I know of a few projects that use it (the one that comes to mind is Fishbowl Inventory). Could be intriguing to use.

libedit... if you have a version in testing then rpmforge's is higher (and not compatible)

mysqlnd is a good thing.
http://www.php.net/manual/en/mysqlnd.install.php
I would highly suggest enabling mysqli in your apps if you haven't already.

_________________
"Its not a mac. I run linux... I'm actually cool." - scott


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Wed Aug 25, 2010 6:29 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
I saw mention of ZendGuard and an alpha (key required) version of it too. But if this is native to php now like they mentioned awesome. One less thing to support.

php-eaccelerator was added on tuesday, its definitely out there. Might want to clear your cache just in case.

I'll add libedit to the list.

Ditto with mysqlnd, if anyone runs across a good test script for it let me know.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Wed Aug 25, 2010 7:11 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Thanks for the fpm in the 2.0 build.

I'll move my main php app to a 5.3.3 version and try the build out.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Wed Aug 25, 2010 7:22 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Minor query on the specs ... should the log be owned by root instead of by apache?


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Wed Aug 25, 2010 11:00 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
Thats all on you at this point, you've got the test environment. If you could post your successes and failures here that would be great. I think most people dont have any idea what this is useful for so this would be a good place to let everyone know what kind of value you're getting out of the module, and what changes need to be made to make it better. As far as Ive seen, everything we've talked about over the last few months is implemented in 5.3.3 natively.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Thu Aug 26, 2010 8:42 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 10, 2006 12:55 pm
Posts: 656
I don't think Optimizer is part of the PHP core, I just think it's been dropped in favor of making it a feature of Zend Server (which is a pre-compiled version provided by Zend that goes far beyond simply compiling PHP). Either way, I wouldn't worry about it.

I cleaned my cache but eaccelerator still doesn't show up for 5.3
Quote:
# yum install php-eaccelerator
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.icpl.org
* atomic: www3.atomicorp.com
* atomic-testing: www3.atomicorp.com
* base: ftp.usf.edu
* extras: mirror.web-ster.com
* rpmforge: apt.sw.be
* updates: mirror.its.uidaho.edu

Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-eaccelerator.x86_64 1:5.2.14_0.9.6-4.el5.art set to be updated
--> Processing Dependency: php = 5.2.14 for package: php-eaccelerator
--> Running transaction check
---> Package php.i386 0:5.2.14-2.el5.art set to be updated
--> Processing Dependency: php-cli = 5.2.14-2.el5.art for package: php
--> Processing Dependency: php-common = 5.2.14-2.el5.art for package: php
--> Running transaction check
---> Package php-cli.i386 0:5.2.14-2.el5.art set to be updated
---> Package php-common.i386 0:5.2.14-2.el5.art set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================
Installing:
php-eaccelerator x86_64 1:5.2.14_0.9.6-4.el5.art atomic 113 k
Installing for dependencies:
php i386 5.2.14-2.el5.art atomic 1.2 M
php-cli i386 5.2.14-2.el5.art atomic 2.4 M
php-common i386 5.2.14-2.el5.art atomic 278 k

Transaction Summary
==============================================================================================================================
Install 4 Package(s)
Upgrade 0 Package(s)

Total download size: 4.1 M

If I disable atomic it tries to install the 5.1 version in rpmforge.

As for libedit, the problem could be in the 32 bit version. I hadn't paid close attention before
Quote:
php-cli-5.3.3-2.0.el5.art.i386 from atomic-testing has depsolving problems
--> Missing Dependency: libedit.so.0 is needed by package php-cli-5.3.3-2.0.el5.art.i386 (atomic-testing)

I removed all the 32 bit versions and had no further problems with libedit.

_________________
"Its not a mac. I run linux... I'm actually cool." - scott


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Fri Aug 27, 2010 7:39 pm 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Finally completed my prep work and ran the 5.3.3 upgrade

php -v returns...
Code:
Failed loading /usr/lib/php/zend/ZendOptimizer-5.3.so:  /usr/lib/php/zend/ZendOptimizer-5.3.so: cannot open shared object file: No such file or directory
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sqlite3.so' - /usr/lib/php/modules/sqlite3.so: undefined symbol: sqlite3_clear_bindings in Unknown on line 0
PHP 5.3.3 (cli) (built: Aug 25 2010 12:15:31)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


Not yet got to fpm as I need to sort this and timezone settings out in a couple of apps.

***EDIT***
sqlite sorted by running upgrade sqlite. No php-zend-optimiser upgrade though. Do I understand from your discussion with Highland that this has been moved into something else ... ie remove it?

Thanks


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Sat Aug 28, 2010 11:26 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7429
Location: earth
It does not appear that Zend optimizer will be available for PHP 5.3.3.


Top
 Profile  
 
 Post subject: Re: PHP 5.3.3
Unread postPosted: Sat Aug 28, 2010 11:42 am 
Offline
Forum Regular
Forum Regular

Joined: Sun Jul 12, 2009 1:33 pm
Posts: 158
Thanks. Forgot to get back that I had removed it since I only had it for opcode caching.

So far so good. Everything is working after some minor code tweaks as I had changed most split type stuff a while back.

Main thing I needed to do now was to set date.timezone in my php.ini. Perhaps consider setting this by default to UTC ... on the other hand, it might be better to let it generate an error so the user goes in to set it up. I would personally prefer defaulting it to UTC.

Will move on to kicking off fpm.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 28 posts ]  Go to page 1, 2  Next

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group