Page 1 of 1

Upgrade to php5 results in fatal error about memory

PostPosted: Tue Feb 27, 2007 10:35 pm
Author: Frost
Well guys.. just found out that you cant use php5 with the new one by just entering a command in for htaccess

I'm adding this in case anyone else tries it and needs to know what happened lol

My host recently Added php5 capability (yea we get a choice...)

In order for your site to use it you would have to enter the command
Code: Select all
AddHandler application/x-httpd-php5 .php


into your .htaccess file

Well when I got home and recieved the pm from my host I was anxious to try it and as soon as I added the command I got slapped down with a fatal error...

The error was...

[code]  Fatal error]

Now a work around for this would be to up your memory (in some cases your host will have to do it) in your php.ini file from 8MB to 16MB or so..

My host is asleep so I can't have him change it and no I haven't tested that theory yet because as I said my host is asleep.

Any other input or ideas are welcome

I also wonder if I would have to change the settings in config to php5 :grin:

Re: Upgrade to php5 results in fatal error about memory

PostPosted: Wed Feb 28, 2007 9:37 am
Author: Ma®©uS
You could try adding:

Code: Select all
ini_set('memory_limit', '16M');


to the top of something like common.php or page_header.php

Re: Upgrade to php5 results in fatal error about memory

PostPosted: Wed Feb 28, 2007 11:17 am
Author: Frost
Well, I will never get a chance to try that because he already raised the limit while I was asleep lol

Now both 4 and 5 are set to 16 in their ini files.

Now that it works... seems like a waste of time I don't notice any changes <img>)