Reputation: 189
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
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
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
Reputation: 1
How to change post_max_size
and upload_max_filesize
in a local installation of Joomla 3 in XAMPP
c:\xampp\php\
php.ini
php.ini
in notepadpost_max_size
and change value to 20M
upload_max_filesize
and change value to 20M
upload_max_filesize
and post_max_size
.Upvotes: 0
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
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
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
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
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
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