Question

The file exceeds the limit set in the upload_max_filesize in php.ini

I’m the problem where I’m using the sentora platform, but when I do upload the theme appears The file exceeds the limit Set in the upload_max_filesize in php.ini which is the way to fix it? Sorry English. Brazil


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello Friend! eduardobaena

I installed with this commands but errors occurred

sudo yum -y install mlocate Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile epel/metalink | 11 kB 00:00

  • epel: mirror.prgmr.com base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 Resolving Dependencies –> Running transaction check —> Package mlocate.x86_64 0:0.22.2-6.el6 will be installed –> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================= Package Arch Version Repository Size

Installing: mlocate x86_64 0.22.2-6.el6 base 86 k

Transaction Summary

Install 1 Package(s)

Total download size: 86 k Installed size: 279 k Downloading Packages: mlocate-0.22.2-6.el6.x86_64.rpm | 86 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction error: Couldn’t fork %pre(mlocate-0.22.2-6.el6.x86_64): Cannot allocate memory Error in PREIN scriptlet in rpm package mlocate-0.22.2-6.el6.x86_64 error: install: %pre scriptlet failed (2), skipping mlocate-0.22.2-6.el6 Verifying : mlocate-0.22.2-6.el6.x86_64 1/1

Failed: mlocate.x86_64 0:0.22.2-6.el6

Complete! [root@BLOGUY-99painel ~]# sudo updatedb sudo: updatedb: command not found [root@BLOGUY-99painel ~]# locate php.ini -bash: locate: command not found [root@BLOGUY-99painel ~]# Total download size: 86 k Installed size: 279 k -bash: Total: command not found [root@BLOGUY-99painel ~]# Installed size: 279 k -bash: Installed: command not found [root@BLOGUY-99painel ~]# Downloading Packages: -bash: Downloading: command not found mlocate-0.22.2-6.el6.x86_64.rpm | 86 kB 00:00 [root@BLOGUY-99painel ~]# mlocate-0.22.2-6.el6.x86_64.rpm | 86 kB 00:00 Running Transaction Test -bash: 86: command not found -bash: mlocate-0.22.2-6.el6.x86_64.rpm: command not found [root@BLOGUY-99painel ~]# Running rpm_check_debug -bash: Running: command not found [root@BLOGUY-99painel ~]# Running Transaction Test -bash: Running: command not found [root@BLOGUY-99painel ~]# Transaction Test Succeeded -bash: Transaction: command not found [root@BLOGUY-99painel ~]# Running Transaction -bash: Running: command not found [root@BLOGUY-99painel ~]# error: Couldn’t fork %pre(mlocate-0.22.2-6.el6.x86_64): Cannot allocate memory

Error in PREIN scriptlet in rpm package mlocate-0.22.2-6.el6.x86_64 error: install: %pre scriptlet failed (2), skipping mlocate-0.22.2-6.el6 Verifying : mlocate-0.22.2-6.el6.x86_64 1/1

Failed: mlocate.x86_64 0:0.22.2-6.el6 Total download size: 86 k Installed size: 279 k Downloading Packages: mlocate-0.22.2-6.el6.x86_64.rpm | 86 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction error: Couldn’t fork %pre(mlocate-0.22.2-6.el6.x86_64): Cannot allocate memory -bash: syntax error near unexpected token `(’ Error in PREIN scriptlet in rpm package mlocate-0.22.2-6.el6.x86_64 [root@BLOGUY-99painel ~]# Error in PREIN scriptlet in rpm package mlocate-0.22.2-6.el6.x86_64 Verifying : mlocate-0.22.2-6.el6.x86_64 1/1

-bash: Error: command not found [root@BLOGUY-99painel ~]# error: install: %pre scriptlet failed (2), skipping mlocate-0.22.2-6.el6 -bash: syntax error near unexpected token `(’ mlocate.x86_64 0:0.22.2-6.el6 [root@BLOGUY-99painel ~]# Verifying : mlocate-0.22.2-6.el6.x86_64 1/1 -bash: Verifying: command not found [root@BLOGUY-99painel ~]# [root@BLOGUY-99painel ~]# Failed: -bash: Failed:: command not found [root@BLOGUY-99painel ~]# mlocate.x86_64 0:0.22.2-6.el6 -bash: mlocate.x86_64: command not found [root@BLOGUY-99painel ~]# ^C [root@BLOGUY-99painel ~]#

Hi there!

No problem. What you would want to do is, edit your php.ini file. Typically that would be housed in /etc/php5/php.ini, if not there you can run php -i |grep php.ini to find the loaded configuration file.

Once you have found the correct PHP configuration file, you would want to edit the line that says:

post_max_size upload_max_size

Increase the size of which you would like to utilize, feel free to allow it to be a bit larger than what your file you are having trouble uploading is. You’ll lastly want to save the phi.ini file, after making these changes. Lastly, re-attempt at uploading your file.