Home >Database >phpMyAdmin >There is more than one way to restrict uploading and modify configuration files in phpmyadmin!

There is more than one way to restrict uploading and modify configuration files in phpmyadmin!

藏色散人
藏色散人forward
2021-03-19 17:19:472777browse

The following tutorial column of phpmyadmin will introduce to you the method of uploading restrictions and modifying the configuration file of phpmyadmin. I hope it will be helpful to friends in need!

There is more than one way to restrict uploading and modify configuration files in phpmyadmin!

Is there only one way for phpmyadmin to upload restrictions and modify configuration files?


The previous section talked about the method of uploading restrictions on phpmyadmin in the pagoda

The following is a detailed introduction to which configuration file to modify

In fact, these can be achieved by modifying the php.ini configuration file, which mainly has the following three parameters:

Generally, you only need to find the upload_max_filesize and post_max_size items to modify

upload_max_filesize, upload File size

memory_limit Set memory (default value, not recommended to modify)

post_max_size Maximum value of submitted data

It is not recommended to change it too large, just change it to a larger value than upload The file can be slightly larger

I am centos7 here, and the php.ini path of the pagoda is /www/server/php/56/etc

There is more than one way to restrict uploading and modify configuration files in phpmyadmin!

What if you are just willful and do not use operation and maintenance tools such as Pagoda and build your website purely by hand?

The cloud host of Blue Team Cloud has PHP versions 5.2 to 7.1 installed by default. You only need to find the corresponding PHP version in the c:\php directory, and then modify it in php.ini. Can.

If you are using the default php5.2 version, php.ini in the c:\windows\ directory also needs to be changed.

For example, for a manually installed phpmyadmin site, in the folder of this site In the directory, create a new one-sentence function file, or other PHP plug-in. You can also see the PHP version, and then modify the corresponding configuration file.

The above is the detailed content of There is more than one way to restrict uploading and modify configuration files in phpmyadmin!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete