I wanted to upload a couple themes and plugins on my wordpress and found out it hat a max filesize of 2MB. So I googled how to solve and did the following without any effects:
I'm running an Apache Webserver, PHP and MySQL on a Debian 8 vServer and used the following guide to set up multiple websites on the server: https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-wordpress-sites-on-a-single-ubuntu-vps
Pretty frustrated right now so any ideas are greatly appreciated.
Following this answer here - if you haven't done so, make sure you run
sudo service apache2 restart
after you edit the php.ini file.
This was also answered in another thread by Rajender Joshi and it seems that you need to add this to end of your php.ini
upload_max_filesize = 512M
post_max_size = 512M
max_execution_time = 300
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.