where can I change php mem limit
where can I change php mem limit
What file can I edit to increase php memory I have looked in the php.ini file which shows 128mb but my site says only 34mb is available how can I change this
thanks
thanks
Re: where can I change php mem limit
Hi thanks for the reply I should have mentioned I am running ubuntu I do not have the httpd.conf I have looked at the apache2.conf and there is no setting for memory limit
these are all the files in the folder
apache2.conf snginx.conf ssl.*****.pem
nginx.conf ssl.*******.crt webalizer.******.conf
sapache2.conf ssl.******.key
these are all the files in the folder
apache2.conf snginx.conf ssl.*****.pem
nginx.conf ssl.*******.crt webalizer.******.conf
sapache2.conf ssl.******.key
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: where can I change php mem limit
Yes apache2.conf on ubuntu is the same as httpd.conf on centos.
I think you need to add this setting in the config file.
I think you need to add this setting in the config file.
Re: where can I change php mem limit
I have CentOS and my config files look like this:
<Directory /home/***USER***/web/***DOMAIN***/public_html>
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value upload_tmp_dir /home/***USER***/tmp
php_admin_value upload_max_filesize 10M
php_admin_value max_execution_time 20
php_admin_value post_max_size 8M
php_admin_value memory_limit 32M
php_admin_flag mysql.allow_persistent off
php_admin_flag safe_mode off
php_admin_value session.save_path /home/***USER***/tmp
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f info@***DOMAIN***'
</Directory>
Re: where can I change php mem limit
i added the following to my httpd file
but it still shows 128mb in phpinfo and i get exhausted memory issues.
Code: Select all
AllowOverride All
Options +Includes -Indexes +ExecCGI
php_admin_value upload_tmp_dir /home/admin/tmp
php_admin_value upload_max_filesize 999M
php_admin_value max_execution_time 80
php_admin_value post_max_size 999M
php_admin_value memory_limit 2048M
php_admin_flag mysql.allow_persistent off
php_admin_flag safe_mode off
php_admin_value session.save_path /home/admin/tmp
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
Action phpcgi-script /cgi-bin/php
<Files *.php>
SetHandler phpcgi-script
</Files>
but it still shows 128mb in phpinfo and i get exhausted memory issues.