var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
PHPSuexec and .phtml
We are in the process of switching all servers to PHPsuexec. On a test server, I have found that .phtml have a 500 internal server error when ran while renaming it to .php allow the file to work.
In httpd.conf there's a config for Addtype to allow .phtml to be recognised as a PHP application type.
I tested added .html as well and get the same 500 internal server error.
Anyone know what's the cause and has a solution? Thanks.
Ok. One of our clients run
On running it, we see
FATAL: emalloc(): Unable to allocate 570958915 bytes
[Fri May 14 05:41:40 2004] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: /home/xxxxxxxx/public_html/photos/index.php
I know this means that it can't allocate the mem needed. But the system have ample ram (2GB). Any ideas on this?
All files should be chmod 644 or below and all folders should be 755 or below.
If you remember those little tidbits, it will save you alot of headache.
That's already done. I am familiar with PHPsuexec and how it works and have gotten all of it working except for this 2 quirks. It's no fun really having to go in and help clients amend scripts. For some reason, other than php or php3 extension, other additional types added seems to generate the Internal Server 500 error.