Default setting for uploading file size in PHP is really small. Usually it’s about 2MB. To increase this limit, you need to change one obvious variable:
upload_max_filesize = 20M Eventually you can also increase max number of files to upload:
max_file_uploads = 20 But… this is not enough. Because on lighttpd PHP is working as a FastCGI process when you start uploading bigger files, you can get this bad message:
Google
Page Speed Online
is really good service for measuring and optimising your website. After deep analysis we get a lot if clues how to improve speed of your website. But how to
Leverage browser caching
if we have
Lighttpd
instead default Apache? We need to use
mod_expire
.
Lighttpd is awesome and very fast webserver. But has one big disadvantage – is not reading apache .htaccess files with rewrite settings. Unfortunatley you need to create them manually in config file. How? Examples are below: