Aly_Elgahy
Aly_Elgahy

Reputation: 189

Joomla 3.2 Increase the upload_max_filesiz

I am trying to download this template on Joomla 3.2 extension manger : http://scriptmafia.org/templates/115622-yt-moustache-yootheme-for-joomla-25-32.html but every time I upload it, it gives me this error:

There was an error uploading this file to the server.

I have read articles about "increase the upload max size in the php.ini file". I have tried to find this file in the administrator files section in Joomla, but it is "not found".

So how can I fix this problem? It has not happened for this template only, it has happened for several. So I am almost sure it is due to the upload size.

Upvotes: 3

Views: 37269

Answers (9)

Sichys
Sichys

Reputation: 1

If you use CPanel, search for PHP version (in the Software section) and click on it, then click on 'switch to PHP Options', the options will display then look for 'upload_max_filesize' and click on the value to change it. Do the same for 'post_max_size'.

Upvotes: 0

Stuart Cardall
Stuart Cardall

Reputation: 2457

This can also happen with the following suhosin setting:

suhosin.upload.disallow_binary = On

Setting it to off temporarily allows you to upload zip files

Upvotes: 0

Guest
Guest

Reputation: 1

How to change post_max_size and upload_max_filesize in a local installation of Joomla 3 in XAMPP

  1. You can check the php setting in two places – site’s backend under system information – go to php information. Or on browser go to localhost and click on phpinfo. You’ll find the post and upload part under “Core” heading.
  2. Go to c:\xampp\php\
  3. Find the file php.ini
  4. Open php.ini in notepad
  5. Find post_max_size and change value to 20M
  6. Find upload_max_filesize and change value to 20M
  7. Save the file
  8. Logout out of your site backend.
  9. Turn off apache and mysql on xampp and quit
  10. Restart xampp as administrator
  11. Turn on apache and mysql
  12. Open browser and go to localhost
  13. Open phpinfo and search for upload_max_filesize and post_max_size.
  14. Confirm that changes are registered.

Upvotes: 0

Parm
Parm

Reputation: 1

Some people might be having a issue with the memory allocation portion of php.ini file "memory_limit" the default for me was 128mb and i was attempting to upload nearly 300mb and it hit that roadblock. After changing the default value to 512mb and restarting the server i was able to get past this limit.

Upvotes: 0

DShack
DShack

Reputation: 1

Had the same issue for the longest time, none of the answers helped. Found that if you are using GoDaddy, and go to your CPanel, scroll down to Software, then choose PHP version, switch to PHP Options, there you can change your upload file size. Hope this helps, took me forever to find it.

Upvotes: 0

Balaji Kandasamy
Balaji Kandasamy

Reputation: 4506

If you are using XAMPP , php.ini file will be located in c:\XAMPP\php folder. Find the file and increase file upload size there. If you are using WAMP, You can find ini file in /wamp/bin/php directory. The location may vary from one OS to another. You can follow this link:

http://www.cyberciti.biz/faq/linux-unix-apache-increase-php-upload-limit/

Upvotes: 3

Neil Robertson
Neil Robertson

Reputation: 3345

If you can't resolve the PHP limitation easily, an alternative is to FTP the installation file to the /tmp folder and in Extension Manager -> Install, use the "Install from Directory" option instead.

Upvotes: 1

izn
izn

Reputation: 310

Edit your php.ini and increase *upload_max_filesize* and *post_max_size*; then restart your web server.

If you don't know where is your php.ini, create a php file to discover: echo php_ini_loaded_file();

The returned path is where your php.ini is located.

EDIT

Well, seems like you have a permission error and not size limit. Try to change permissions of the temp Joomla folder (you can see/configure it on Global Configuration > System).

Upvotes: 4

Nick Tsarev
Nick Tsarev

Reputation: 103

You can call in your script ini_set function and change values, which have been stored in php.ini (any changes has affected only for current script, but not for global settings)

ini_set('post_max_size', "%value in MiB for example 16M%")
ini_set('upload_max_filesize', "%value in MiB for example 16M%")

You can read more about it at php.net

Upvotes: 1

Related Questions