Today, I did not find out how to lift restrictions in linux. Many articles on the Internet are about how to lift restrictions in wWindows. Finally, I found an article about Linux, php cannot be found along the path. ini, no way, only search on the server, originally in Ubuntu php. the ini path is different from that of other linux systems. Its path is/etc/php5/apache2/php. ini: sudovi/etc/php5/apac
Today, I did not find out how to lift restrictions in linux. Many articles on the Internet are about how to lift restrictions in wWindows. Finally, I found an article about Linux, php cannot be found along the path. ini, no way, only search on the server, originally in Ubuntu php. the ini path is different from that of other linux systems. Its path is/etc/php5/apache2/php. ini:
Sudo vi/etc/php5/apache2/php. ini
1. Search for post_max_size, which refers to the maximum value that can be received by the form POST to PHP, including all values in the form. The default value is 8 Mb. You need to change it.
2. Search for File Uploads. First, check file_uploads = on; whether to allow File upload over HTTP. The default value is ON. Upload_tmp_dir;
Find upload_max_filesize; that is, the maximum file size that can be uploaded. The default value is 2 MB.
3. If you want to upload a file larger than 8 Mb, you can set only the above four items. It is best to set the following parameters:
Query max_execution_time = 600; maximum time (in seconds) for running each PHP page. The default value is 30 seconds.
Max_input_time = 600; maximum time required for receiving data on each PHP page. The default value is 60 seconds.
Memory_limit = 8 M; maximum memory consumed by each PHP page. The default value is 8 M.
Restart apache:
/Etc/init. d/apache2 restart