cancel
Showing results for 
Search instead for 
Did you mean: 

php.ini changes not reflecting

SOLVED

php.ini changes not reflecting

my company installed this magento so am not 100% sure why somethings are not working correctly. 

for example I notice the famous import warning 2M limit.

So I go to Command line check what php.ini is being used 

/etc/php/7.2/cli/php.ini  

So I go there make changes : 

upload_max_filesize = 64M
post_max_size = 64M

save.

restart server. 

 

Nothing happens. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: php.ini changes not reflecting

Ok solution is:

So lets say you you the php --ini you get 

Configuration File (php.ini) Path: /etc/php/7.2/cli
Loaded Configuration File: /etc/php/7.2/cli/php.ini
Scan for additional .ini files in: /etc/php/7.2/cli/conf.d
Additional .ini files parsed: /etc/php/7.2/cli/conf.d/10-mysqlnd.ini,

 

you go ahead make the changes, restart server nothing happens.

and you change all the php.ini you can find and nothing happens.  

Then you say hey what if I change the .htaccess? and you do and nothing happens. 

and then you are like dam what is this user.ini file? and you edit it and nothing happens. 

so after 3 strikes and days later and no one knows wtf is going on 

 

so one day you realize there is another htaccess and a user ini inside the pub folder...

you change it, restart server.  it FREAKING WORKS!! PRAISE GOD. and don't forget to write this down so later on you forget how to update the memory limits and upload size limits again! 

 

 

 

View solution in original post

3 REPLIES 3

Re: php.ini changes not reflecting

Hi @starlyns 

For your question you can check this answer

https://serverfault.com/questions/466622/php-ini-changes-dont-have-any-effec

 

also you can try restarting FPM server if you are using it.

 

If my answer is useful Click kudos & Accept as Answer

Re: php.ini changes not reflecting

Did you just sent me a link to your profile? 

Re: php.ini changes not reflecting

Ok solution is:

So lets say you you the php --ini you get 

Configuration File (php.ini) Path: /etc/php/7.2/cli
Loaded Configuration File: /etc/php/7.2/cli/php.ini
Scan for additional .ini files in: /etc/php/7.2/cli/conf.d
Additional .ini files parsed: /etc/php/7.2/cli/conf.d/10-mysqlnd.ini,

 

you go ahead make the changes, restart server nothing happens.

and you change all the php.ini you can find and nothing happens.  

Then you say hey what if I change the .htaccess? and you do and nothing happens. 

and then you are like dam what is this user.ini file? and you edit it and nothing happens. 

so after 3 strikes and days later and no one knows wtf is going on 

 

so one day you realize there is another htaccess and a user ini inside the pub folder...

you change it, restart server.  it FREAKING WORKS!! PRAISE GOD. and don't forget to write this down so later on you forget how to update the memory limits and upload size limits again!