Welcome Guest, Not a member yet? Register   Sign In
Change limitation upload file size

Hello, I have a question.

Where should I put my php.ini on CodeIgniter4?
I've tried on the folder: public

Here is my code:

memory_limit = 32M
upload_max_filesize = 24M
post_max_size = 32M
I also tried this on my .htaccess (in public).

But none of them work

There is a php.ini in the php folder that's where those are found.

The sizes should all match, outside of menory_limit.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

(This post was last modified: 10-01-2020, 06:00 PM by John_Betong.)

Some PHP settings can be dynamically changed using ini_set("..., "...");


Settings can be viewed using ini_get(...);

Beware when updating the system that php.ini vales are reset to their defaults.

From the command line to find where the PHP.ini is located and PHP version:

php --ini

php -v

And phpinfo.php for more information.

Hello, I had to modify my PHP config (on my VPS) to unblock the limit. Because via htaccess, or php.ini, or even ini_set(), it was never working.

Try the following search:


Theme © iAndrew 2016 - Forum software by © MyBB