-1

Sorry guys, don't know where else to turn. I'm running bitnami wordpress hosted in Amazon lightsail, and the file upload limit is stuck at 80M.

I want it to be significantly more than that, but no matter what I change bitnami ignores it.

I put this in the .htaccess file:

php_value upload_max_filesize 256M

Ignored by Bitnami

I put this in wp-config.php:

@ini_set( 'upload_max_filesize' , '256M' )

Ignored by Bitnami

I changed this variable in php.ini:

upload_max_filesize = 256M

Then created phpinfo.php file to verify that apache2 / wordpress is pointing to the correct php.ini (it is).

STILL IGNORED BY BITNAMI. PHP INFO SAYS IT'S POINTED TO THE RIGHT PHP.INI FILE BUT IGNORES THE REAL MAX UPLOAD VALUE AND SHOWS MAX UPLOAD VALUE AS 80M

WTF!?

I of course also restarted the server, restarted apache, and restarted the PHP service a bunch of times.

Does Bitnami have some kind of special hidden troll area where they set this value in a place it's not supposed to be so nobody can find and change it? That's the only explanation I can think of...

2 Answers 2

0

Is it possible that this was defined in the directory section of the Virtualhost (Apache2)? Example:

<VirtualHost *:80>
 ServerName www.test.com
 [...]
 php_admin_value upload_max_filesize 100M
 [...]
</VirtualHost>
Sign up to request clarification or add additional context in comments.

3 Comments

Oh, maybe so, where's this located on the server?
This is a good question that your server admin can answer for you.
I'm the server admin and I don't know where it is. What's bitnami's default location for this?
0

Yes, a real headache:

If you use the PHP-FPM, we need to modify the settings in the /opt/bitnami/apps/phpmyadmin/conf/php-fpm/php-settings.conf file:

php_value[upload_max_filesize]=80M php_value[post_max_size]=80M

2 Comments

As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
Why FPM? There is no evidence in the question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.