mech7 — 2010-03-29T03:26:44-04:00 — #1
I am running quite a heavy php script where I am converting some pdf's
In the script that I run as background process through the console I have:
But in my virtualbox it still seems to timeout.. the script stops after convert 1 page.. On the actual server it does seem to work. I have set apache to allow override all... Is there a setting that I am missing? Why it seems to work on the real server but not in virtual box?
mech7 — 2010-03-29T04:03:38-04:00 — #2
Arggh I just find out its the memory limit... do external apps through exec() add to the amount of memory limit?
dyer85 — 2010-03-30T06:17:24-04:00 — #3
The exec()'ed programs should have their own address spaces, so their use of memory doesn't affect PHP (unless what you're exec()'ing is a PHP script).
Without seeing code, it's hard to definitively help you determine why you're running out of memory. How big are the PDFs? How are you converting the PDFs? If you tried rolling your own PDF lib, you might want to check the PHP docs on PDFlib Lite to see if it meets your needs.
Also, take a look at the php.ini directive: memory_limit. You can increase the maximum size, if you really need to.