How to increase File size in Apache web server ??
Problem: User can not able to open the webpage. Getting the following error.
Fatal error: Allowed memory size of 134217728 bytes exhausted
Solution:
Go to the webserver and do edit the following files.
hostname# vi /etc/php5/apache2/php.ini
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
upload_max_filesize = 10M, Change it to 50M
increase these both columns.
hostname# /etc/init.d/apache2 status
Checking for httpd2: running
hostname# /etc/init.d/apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) done
hostname# /etc/init.d/apache2 status
Checking for httpd2: running
Then open the webpage, it will open.
Problem: User can not able to open the webpage. Getting the following error.
Fatal error: Allowed memory size of 134217728 bytes exhausted
Solution:
Go to the webserver and do edit the following files.
hostname# vi /etc/php5/apache2/php.ini
memory_limit = 128M ; Maximum amount of memory a script may consume (128MB)
upload_max_filesize = 10M, Change it to 50M
increase these both columns.
hostname# /etc/init.d/apache2 status
Checking for httpd2: running
hostname# /etc/init.d/apache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) done
hostname# /etc/init.d/apache2 status
Checking for httpd2: running
Then open the webpage, it will open.
No comments:
Post a Comment