VPS 및 전용 서버(호스팅 컨트롤 센터) 도움말

Increasing User File Upload Limits Using php.ini on Your Linux Server

Warning: For the shared hosting version of these instructions, see PHP upload limits on shared hosting

Note: The location of your php.ini file can vary, depending on your operating system/control panel combination. If you are using Fedora 4 with Parallels Plesk Panel, for example, this file is in the following location: /etc/php.ini

If you are using a different operating system and/or control panel, you can find the location of your php.ini file by running the following from your command line:

php -i | grep php.ini

There are two variables within your php.ini file that are responsible for managing user file uploads.

  • post_max_size This variable determines the maximum amount of data that PHP will accept in a single form submission using the POST method. Its default value is 8 MB, as shown below:
    post_max_size = 8M
  • upload_max_filesize This variable limits the size of an individual file uploaded to your site. Its default value is 2 MB, as shown below:
    upload_max_filesize = 2M

An increase in the value of these variables expands user file upload limits.

Note: After making changes to php.ini, you must perform an httpd restart for them to take effect. This is accomplished by running the following from your command line:

/etc/init.d/httpd restart

이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.