HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Why does PHP Info in Admin area show a different memory limit?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75026 (In Topic #15576)
Avatar

Community saint

Why does PHP Info in Admin area show a different memory limit than a phpinfo.php file placed in the public_html folder. The local memory_limit is shown as 64M in the admin area but as 128M in the web root. The master value is 128 for both

I've checked for a php.ini file in the sub-directories but none exists. Why is this reported differently in the Admin area and does it mean that my memory_limit is being limited in my ocPortal site.

Bob
Back to the top
 
Posted
Rating:
#75027
Avatar

Community saint

Maby the master php.ini file on the server is different?
If you have root acces thru cpanel, else ask your provider for it.


http://digiflash.nl Photo community  (dutch)
Back to the top
 
Posted
Rating:
#75028
Avatar

Community saint

Harry_

I confirmed with the host that both the local and master value for my account are 128M. I also put a phpinfo.php file in public_html and it reorts that both values are 128M. It's just the PHP INfo under Tools in the Admin area that is reporting the lower 64M local value.

I also checked the value the .htaccess file for the site and it also says 128M.

I'm just concerned that the ocPortal software might think there is a lower limit.

Bob
Back to the top
 
Posted
Rating:
#75030
Avatar

ocPortal might have set that limit, it does (since v6 I think) try and impose limits on itself in order for us to ensure it can run on low memory and firewall against any possible bug consequences.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#75032
Avatar

Community saint

Will it raise those limits if it needs more memory and the value set on the server is higher?

I saw the reference to memory limit in .htaccess which is currently set at 128M (I think I might have raised this). I am wondering where ocPortal is getting/setting this lint.

It may not be an issue but I remember having issues with the thumbnails generated by uploading being smaller as a consequence of php memory limits. Since I am on eLief this seems  to not be an issue with the one file tested but I have a number of images which are close to square so they will be really huge files to thumbnail.

Thanks for your help.

Bob
Back to the top
 
Posted
Rating:
#75033
Avatar

It does maximally raise the limit in certain cases, including pre-thumbnail-generation.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#75035
Avatar

Community saint

Thanks, Chris.

Bob
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: