search
HomeBackend DevelopmentPHP ProblemHow to take effect after changing php.ini

Processing method after php.ini changes: First modify the upload size limit through the "post_max_size = 100M" statement; then modify the upload time limit through the "memory_limit = 128M" statement; and finally restart the server.

How to take effect after changing php.ini

Recommended: "PHP Video Tutorial"

Upload large files and modify the configuration of php.ini Solution that still doesn't work after that

After I put the program on the service (LAMP environment) today, I found that uploading large files didn't work again. The first solution that came to mind was to modify the PHP in the new installation environment. ini configuration, the modification is roughly divided into two steps:

1. Modify the upload size limit

file_uploads = On

upload_max_filesize = 50M

post_max_size = 100M

2. Modify the upload time limit

max_execution_time = 600

max_input_time = 600

memory_limit = 128M

But I found that after modifying these two After partially restarting Apache, it still didn't take effect, so I was puzzled. After researching for a long time, I found that a netizen reminded me: "Generally, if the configuration is modified but it does not take effect, you can consider whether there are multiple copies of it on the machine. Configuration". Since I installed the integrated environment of wamp, there are two php.ini of wamp, one in the php directory and one in the apache directory. The one under apache works by default, so it still doesn't work after modification. So modify the above modifications again in php.ini under Apache and restart the server! The location is as follows:

How to take effect after changing php.ini

The above is the detailed content of How to take effect after changing php.ini. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools