- Forums
- PHP
- How To Change Upload Max Filesize In Php.ini Configuration
This Page Contains information about How To Change Upload Max Filesize In Php.ini Configuration By wallpaperama in category PHP with 0 Replies. [1257], Last Updated: Sat May 18, 2024
wallpaperama
Wed Mar 18, 2009
0 Comments
530 Visits
hay, if you want to know where you can increase the maximum file upload size just go to your php.ini configuration file and change it there. i have linux server so this is the command i would excute at the shell: (i am using red hat fedora core 7)
nano /etc/php.ini
then hit control+w and search for: upload_max_filesize , there you will find this:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
just change to whatever you want. then save, and reboot your http server with this command:
/etc/init.d/httpd restart