php 8m

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Darren-H
Forum Members
Forum Members
Posts: 12
Joined: Mon Sep 25, 2006 6:41 pm

php 8m

Post by Darren-H »

fHi

I'm brand new and green here so please bare with any daft questions.

When I was installing I got the caution about only having 8m php memory.

My web host said I need to add the appropriate line of code in the php.ini file.

Where can I find this file?

Also bare in mind I'm a php numpty and am just starting to get my head around cms issues etc.

So pretend you're talking to a 10 year old and you'll be fine.

Cheers
Darren
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: php 8m

Post by Dee »

The php.ini file is on the server... it's not very friendly of your hoster to say you should add it to php.ini yourself and not give any instructions on how to do so.
If your webhost said you should add the line yourself, the php.ini file is probably in your home directory and you should be able to access/modify it using ftp or a web-based admin interface.

Add (or change) this line:

Code: Select all

memory_limit = 8M;
(change the 8M to 16M or 32M, that should be more than enough)

While you're at it you might as well increase the maximal execution time (in seconds, defaults to 30):

Code: Select all

max_execution_time = 60;
Darren-H
Forum Members
Forum Members
Posts: 12
Joined: Mon Sep 25, 2006 6:41 pm

Re: php 8m

Post by Darren-H »

Hi

That's brilliant, thanks.

they did tell me what to replace, I just assumed the php.ini file was part of the CMS itself.

Right, I'll go do that now.

Cheers
Darren
Darren-H
Forum Members
Forum Members
Posts: 12
Joined: Mon Sep 25, 2006 6:41 pm

Re: php 8m

Post by Darren-H »

Hi

I spoke to soon.

I've had a look on the server and there doesn't seem to be a PHP.ini file.

they did say if there wasn't one to create one.

If I have to create one can you paste the information I need to include in a post so I can do that, and which directory should I upload to, the root?

many thanks.

Darren
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: php 8m

Post by Dee »

In the root should be fine, just create a text file with these two lines and upload it.

Code: Select all

memory_limit = 32M;
max_execution_time = 60;
Regards,
D
Darren-H
Forum Members
Forum Members
Posts: 12
Joined: Mon Sep 25, 2006 6:41 pm

Re: php 8m

Post by Darren-H »

Hi

Ok, that's fantastic, thank you.

Darren
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: php 8m

Post by Dee »

You're welcome. To see if it is working check install/install.php (if you didn't delete the install directory already) or create a my_phpinfo UDT as described here:
http://wiki.cmsmadesimple.org/index.php ... mmended.29
Locked

Return to “[locked] Installation, Setup and Upgrade”