vipin93's avatar

Image uploading problem

I try to upload image in .JPG file which have more than 4mb file in s3 bucket ,my problem is that when i try to upload image from my local host its working but when i try to upload on my server file not upload in my bucket and in my server mysql database also not storing ,one thin also when i try to upload image like image.jpg its working , here what is the problem i dont know

0 likes
7 replies
bashy's avatar
bashy
Best Answer
Level 65

I use these commands to quickly update PHP settings for upload size

sudo sed -i "s/\post_max_size = .*/post_max_size = 125M/" /etc/php5/fpm/php.ini
sudo sed -i "s/\upload_max_filesize = .*/upload_max_filesize = 100M/" /etc/php5/fpm/php.ini

// optional
sudo sed -i "s/\memory_limit = .*/memory_limit = 256M/" /etc/php5/fpm/php.ini
vipin93's avatar

@bashy i changed my php.ini file but not working i restart my apache server but it not working

vipin93's avatar

i changed my /etc/php5/apache2/php.ini and its working i want ask its ok or not

deadlockgB's avatar

the file @bashy changed is used when you use PHP-FPM instead of the regular interpreter which comes with Apache2. So you need to edit the right file to have effect.

bashy's avatar

@vipin93 What is "not working"?

@deadlockgB Well of course you don't use the path to the php.ini if that's the wrong one. It will tell you if not anyway :)

Please or to participate in this conversation.