If you created a multipart/form-data form to upload a file to your server and it gives you an error 1 (UPLOAD_ERR_INI_SIZE) , you need to update the php.ini for your machine.
PHP.ini is usually found in
/etc/ directory of your server. On my AWS AIM Linux instance the current PHP Version is 5.6 and thus the file to edit is
Edit the ini file to find the
upload_max_filesize variable and update it to something more appropriate for your needs. The default on my instance was 2M and that caused me headaches no end.
To reload the php.ini you can ask the server to gracefully restart apache with
sudo apachectl -k graceful
I tried to get gettext() translations going on a Ubuntu 16.04.2 server and while the code was solid, there was one major bit missing – the locale was not available on the server.
So if you have the same problem – simply run for each locale you plan to support:
So what does it do?
Compiled locale files take about 50MB of disk space, and most users only need few locales. In order to save disk space, compiled locale files are not distributed in the locales package, but selected locales are automatically generated when this package is installed by running the locale-gen program.