Compare the php.ini's on your Mac and on your Ubuntu machine to see what the difference are. From your unintentionally vague description it's hard to tell what's going on exactly so the ini files are the best place to look.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
I don't believe so but it is possible that CLI and Apache PHP are using separate ini files. Type php --ini to see the ini files it is using.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
It's entirely possible that it's just a Mac thing. It's not like you're going to be running production code on a Mac so I wouldn't really worry about it. If you are thinking of for some stupid reason using your Mac as your server then end that thought quickly :)
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
The first iteration would take about 1 minute and each subsequent iteration took about 10 seconds. Now, on my Mac, each iteration takes the full minute.
Thats a pretty slow operation. Are you sure you've optimized it well? Is the db tables well indexed? Are you using the correct storage type?Do you know if php accelerators like APC or eAccelerator work when running scripts from the command line?
I don't see why they won't work.
I've written a simplistic PHP Object cache in pure PHP that you could try out. Only requirement is PHP Sockets. http://code.google.com/p/php-object-cache/
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101