Project

General

Profile

[Solved] Increase the file upload size using php with lighttpd

Added by psriniva over 8 years ago

Hi,

I am using lighttpd 1.4.35 version in my embedded linux project.
I have written a php script to upload file from web browser (Chrome and IE are being used for testing)
Its observed that the file upload size is limited to 7 MB.

Is there any way to increase this limit?

I am not finding the php.ini file in my image though I have included php-cgi , php and php-dev in my project's recipe.

Thanks,
Prashanth


Replies (1)

RE: Increase the file upload size using php with lighttpd - Added by gstrauss over 8 years ago

Use phpinfo to find out where the php.ini is or should be, or strace php to find out what it is attempting to open. Now, php.ini may not be what is setting the upload limit. (See phpinfo output and check the settings)

You might be running out of memory or disk space.

Try a newer version of lighttpd like 1.4.43 which handles tempfiles better, and set lighttpd.conf server.upload-dirs = ( ... ) to locations with enough space.

    (1-1/1)