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

How to modify php.ini in ubuntu

藏色散人
Release: 2023-03-04 18:58:02
Original
5040 people have browsed it

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
Copy after login

and then enter: ls You can see the php.ini file.

sudo vim php.ini
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template