Abhi
Abhi

Reputation: 5557

I Cant upload file of size greater than 2 MB on my PHP server , what will be issue

I Cant upload file of size greater than 2 MB on my PHP server , what will be issue can u please help, although in my PHP code i haven't put any limit in my PHP code

Please help I have used Apache

Thanks in adv

Upvotes: 1

Views: 2388

Answers (4)

Ozair Kafray
Ozair Kafray

Reputation: 13549

The default php installation has an upload file size limit of 2MBs. This link explains all the details.

In Linux with apache2 you can find this file in:

/etc/php5/apache2/php.ini OR

/etc/php.ini

If none of the above is true for you, look for Loaded Configuration File in output of:

phpinfo();

Upvotes: 5

vbence
vbence

Reputation: 20343

Also check the LimitRequestBody directive in Apache config.

Upvotes: 2

user680786
user680786

Reputation:

Check in php.ini (/etc/php5/apache2/php.ini in debian & ubuntu)
directive: upload_max_filesize
if can't - look this key in .htaccess file

Upvotes: 1

Billy ONeal
Billy ONeal

Reputation: 106609

PHP.ini contains a setting upload_max_filesize. The default value is 2MB. Keep in mind that even where PHP does not limit this value (e.g. if you modify your PHP.ini to a higher level) that your web server software (e.g. Apache, Lighttpd, Nginx, IIS) probably impose their own limits.

Upvotes: 1

Related Questions