1

I'm using Google Compute Engine with a lamp instance.

I located my php.ini file here /etc/php5/apache2/php.ini and I edited with sudo nano php.ini.

Whatever variable I gave except the default one which is 2M to upload_max_filesize it give me a 500 server error when I try to upload an image.

Of course I restarted my server after my modifications.

Thanks for your time.

Kamran
  • 3,397
  • 26
  • 40
hellopath
  • 223
  • 1
  • 6
  • 1
    You tagged this question with "google-compute-engine" (rather than "php"). What makes you believe that it is specific to GCE? – Andreas Veithen Oct 21 '15 at 22:02
  • Hi @AndreasVeithen, sorry for my late response. Yes I think that is 'google-compute-engine' related and not just PHP because on my local mamp server working fine with more than 2Mb. Only on 'google-compute-engine' looks like it doesn't let you to edit the `upload_max_filesize `. – hellopath Nov 01 '15 at 18:51
  • 1
    Check out this case: http://stackoverflow.com/questions/1122418/changing-upload-max-filesize-on-php – Kamran Nov 04 '15 at 23:32
  • Possible duplicate of [Changing upload\_max\_filesize on PHP](https://stackoverflow.com/questions/1122418/changing-upload-max-filesize-on-php) – Faizan Aug 18 '17 at 14:16

0 Answers0