Home >Backend Development >PHP Problem >How to modify php.ini in ubuntu

How to modify php.ini in ubuntu

藏色散人
藏色散人Original
2020-08-19 10:41:355033browse

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.

How to modify php.ini in ubuntu

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn