I have a website on UNIX that uses PHP/GD to create several images like dynamic buttons as my navigation bar. I wanted to do development on my local machine, so I downloaded Apache/PHP/mySQL/etc... (a package called FoxServ) and installed them all on my Windows 2000 machine.
Now, if I create some light-weight pages that use only 1 or 2 GD-created images, it works fine. However, as soon as I begin adding more images, especially those using TrueType fonts like Arial, Apache begins to crash.
It seems to spawn a new Apache.exe for each dynamic button, but then the button reports an error that it cannot read the font file, and the new Apache process crashes. After the page finishes loading, I am still left with 1 Apache window still open, but I have received at least 4-5 "Apache.exe has generated errors, yadayada" windows.
Now it seems that Apache opens and reads the font file, but then doesn't let go of it so the other processes can use it. However, it doesn't always let go at the end of the loading sequence, either. It is all very random, and only happens when GD images are created with TrueType fonts.
Any tips on making this more stable?
- Jonathan
Now, if I create some light-weight pages that use only 1 or 2 GD-created images, it works fine. However, as soon as I begin adding more images, especially those using TrueType fonts like Arial, Apache begins to crash.
It seems to spawn a new Apache.exe for each dynamic button, but then the button reports an error that it cannot read the font file, and the new Apache process crashes. After the page finishes loading, I am still left with 1 Apache window still open, but I have received at least 4-5 "Apache.exe has generated errors, yadayada" windows.
Now it seems that Apache opens and reads the font file, but then doesn't let go of it so the other processes can use it. However, it doesn't always let go at the end of the loading sequence, either. It is all very random, and only happens when GD images are created with TrueType fonts.
Any tips on making this more stable?
- Jonathan