Sub Menu
Links Menu
Online Users

In total there are 312 users online :: 3 registered, 0 hidden and 309 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

Upgrade to php5 results in fatal error about memory

General discussion of anything. Discuss a topic in and out of IntegraMOD

Moderator: Integra Moderator

Upgrade to php5 results in fatal error about memory

PostAuthor: Frost » Tue Feb 27, 2007 9:35 pm

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:
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3

Re: Upgrade to php5 results in fatal error about memory

PostAuthor: Ma®©uS » Wed Feb 28, 2007 8:37 am

You could try adding:

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


to the top of something like common.php or page_header.php
Last edited by Ma®©uS on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
..: Ma®©uS :..
[url=http][img=left]http://www.phobbia.net/mods/images/sigs/phobbia.gif[/img][/url]
User avatar
Ma®©uS
Members
Members
 
Posts: 33
Likes: 0 post
Liked in: 0 post
Joined: Thu Apr 27, 2006 11:14 pm
Cash on hand: 0.00

Re: Upgrade to php5 results in fatal error about memory

PostAuthor: Frost » Wed Feb 28, 2007 10:17 am

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>)
Last edited by Frost on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[size=99px]PhpBB3 Themes[/url] ]PhpBB3 Development Center[/url] [/size]

Frost
Sr Integra Member
Sr Integra Member
 
Posts: 776
Likes: 0 post
Liked in: 0 post
Joined: Wed Sep 13, 2006 1:04 am
Cash on hand: 0.00
Location: Photoshop CS3


Return to General Discussion

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]