Ubuntu method to modify php.ini: First find the php.ini file through the command "cd /etc/php5/apache2"; then find the keyword "memory_limit"; finally change the value to "256M" that is Can.
Recommended: "PHP Video Tutorial"
Modify the running memory of php.ini in Ubuntu
First of all, we need to know what file we want to modify?
That is the php.ini file. Generally, files related to PHP operation are related to this file. The path is /etc/php5/apache2. Here we can use the command to enter,
cd /etc/php5/apache2
and then enter: ls You can see the php.ini file.
sudo vim php.ini
Here, the problem we often encounter is insufficient running memory. Here we can find the keyword "memory_limit", and then modify a pair of values. My general modification value is 256M.
The above is the detailed content of How to modify php.ini in ubuntu. For more information, please follow other related articles on the PHP Chinese website!