Jump to content

memory limit value on your server configuration


Recommended Posts

Yes, you need to change the memory limit in your php.ini file, in the CP look for an icon that leads to your scripts.

Edit the php.ini file and increase the memory limt to 64.

 

that's was quick as you mini car :-) , this file should be on my root or under another folder. could not find it ?

 

Do I need to create this file with script ?

Link to comment
Share on other sites

No the file is part of your service provider, look for an icon that says CGI and Scripting language support or something to that effect that is where mine is.

You can also call your provider and ask them to increase this for you.

 

 

 

 

well thx for you help, I can not open the attachment and check the icon.

 

I have cgi center icon but it's just to add some counter, banner not exactly this php.ini .

 

I scan my folder and I could not find any php.ini . So you right I might call them but maybe you can tell me where to put it and type of script. should not be so bad it's just file ;-) . I can create it

Link to comment
Share on other sites

For now try this in the config folder edit the file config.inc.php and look for this section:

 

 

/* Improve PHP configuration to prevent issues */

ini_set('memory_limit','64M');

ini_set('upload_max_filesize', '100M');

ini_set('default_charset', 'utf-8');

ini_set('magic_quotes_runtime', 0);

 

If your does not have the ini_set(memory limit) copy the line in red above and add it and see if it helps.

you can also change the # 64M to 96 or 128 if needed.

 

 

When you call them ask if you can edit this file, some providers don't allow you to edit, if so find out where it is for future use, there are other settings here that can improve site performance.

Edited by tdr170 (see edit history)
Link to comment
Share on other sites

/admin/footer.inc.php

 

<?php
echo '			</div>
		</div>
		<div id="footer">
			<div style="float:left;margin-left:10px;padding-top:6px">
				<a href="'.__PS_BASE_URI__.'" target="_blank" style="font-weight:700;color:#666666">PrestaShop™ '._PS_VERSION_.'</a><br />
				<span style="font-size:10px">'.translate('Load time:').' '.number_format(microtime(true) - $timerStart, 3, '.', '').'s</span>
			</div>
			<div style="float:right;height:40px;margin-right:10px;line-height:38px;vertical-align:middle">
				Zone:'.Configuration::get('PS_TIMEZONE').' <b class="red">:)</b>
				Mysql:'.mysql_get_client_info().' <b class="red">:)</b>
				PHP:'.$_SERVER['SERVER_SOFTWARE'].' <b class="red">:)</b>
				Run:'.PHP_SAPI.' <b class="red">:)</b>
				IP:'.gethostbyname($_SERVER['HTTP_HOST']),':'.(int)$_SERVER['SERVER_PORT'].' <b class="red">:)</b>
				Memory:'.number_format((memory_get_usage()/1024/1024), 2, '.', '').'M/'.@ini_get('memory_limit').' <b class="red">:)</b>
				eAccelerator:'.(function_exists('eaccelerator_info') ? 'YES' : 'NO').'
			</div>
		</div>
	</div>
</div>
</body>
</html>';

 

 

??????? Sorry is this a question or an answer. :)

Link to comment
Share on other sites

For now try this in the config folder edit the file config.inc.php and look for this section:

 

 

/* Improve PHP configuration to prevent issues */

ini_set('memory_limit','64M');

ini_set('upload_max_filesize', '100M');

ini_set('default_charset', 'utf-8');

ini_set('magic_quotes_runtime', 0);

 

If your does not have the ini_set(memory limit) copy the line in red above and add it and see if it helps.

you can also change the # 64M to 96 or 128 if needed.

 

 

When you call them ask if you can edit this file, some providers don't allow you to edit, if so find out where it is for future use, there are other settings here that can improve site performance.

 

Bingo !

 

Works ! That's great , you see just a little of code poetry . You are poet !

Link to comment
Share on other sites

/admin/footer.inc.php

 

<?php
echo '			</div>
		</div>
		<div id="footer">
			<div style="float:left;margin-left:10px;padding-top:6px">
				<a href="'.__PS_BASE_URI__.'" target="_blank" style="font-weight:700;color:#666666">PrestaShop™ '._PS_VERSION_.'</a><br />
				<span style="font-size:10px">'.translate('Load time:').' '.number_format(microtime(true) - $timerStart, 3, '.', '').'s</span>
			</div>
			<div style="float:right;height:40px;margin-right:10px;line-height:38px;vertical-align:middle">
				Zone:'.Configuration::get('PS_TIMEZONE').' <b class="red">:)</b>
				Mysql:'.mysql_get_client_info().' <b class="red">:)</b>
				PHP:'.$_SERVER['SERVER_SOFTWARE'].' <b class="red">:)</b>
				Run:'.PHP_SAPI.' <b class="red">:)</b>
				IP:'.gethostbyname($_SERVER['HTTP_HOST']),':'.(int)$_SERVER['SERVER_PORT'].' <b class="red">:)</b>
				Memory:'.number_format((memory_get_usage()/1024/1024), 2, '.', '').'M/'.@ini_get('memory_limit').' <b class="red">:)</b>
				eAccelerator:'.(function_exists('eaccelerator_info') ? 'YES' : 'NO').'
			</div>
		</div>
	</div>
</div>
</body>
</html>';

 

thx but I did not what it was this , it has been fixed as you can see on the posts :-)

Link to comment
Share on other sites

Great:

 

Be sure and call your provider and ask the question you may still need to edit the file at some point.

 

You can now add solved to this post.

(edit your first post click use full editor and add [solved] in the title area.

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...