mattrayner / docker-lamp

A simple LAMP image using Ubuntu, Apache, PHP and MySql in a single image
Apache License 2.0
592 stars 262 forks source link

php.ini resets when container restarts #120

Open ItsNoted opened 3 years ago

ItsNoted commented 3 years ago

I made some edits to the php.ini and whenever the server restarts the file seems to reset. This is not good for my use case. Can I change this?

mattrayner commented 3 years ago

Hi @geekedtv, you have a couple of options, you could use a volume to replace the php.ini file with a local one when you launch the image, or you can use a custom Dockerfile where you overwrite the php.ini file and you build an image for yourself which you use

pzhlkj6612 commented 2 weeks ago

Maybe you were editing upload_max_filesize or post_max_size in php.ini at that time? If not, you may need to follow what @mattrayner said.

For upload_max_filesize or post_max_size, see:

.