Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

where can I change php mem limit

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
nomadmike
Posts: 4
Joined: Wed Oct 07, 2015 6:44 pm

where can I change php mem limit
  • Quote

Post by nomadmike » Thu Oct 08, 2015 9:18 pm

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
Top

SCelik

Re: where can I change php mem limit
  • Quote

Post by SCelik » Thu Oct 08, 2015 11:09 pm

/home/***USER***/conf/web/httpd.conf
Top

nomadmike
Posts: 4
Joined: Wed Oct 07, 2015 6:44 pm

Re: where can I change php mem limit
  • Quote

Post by nomadmike » Fri Oct 09, 2015 1:41 pm

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
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: where can I change php mem limit
  • Quote

Post by tjebbeke » Fri Oct 09, 2015 2:29 pm

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.
Top

SCelik

Re: where can I change php mem limit
  • Quote

Post by SCelik » Fri Oct 09, 2015 7:38 pm

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>
Top

magzen
Posts: 47
Joined: Sat Sep 05, 2015 6:16 pm

Re: where can I change php mem limit
  • Quote

Post by magzen » Sun Oct 11, 2015 1:44 am

i added the following to my httpd file

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.
Top


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password