Problem setting max upload file size limit
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 17, 2008 9:58 pm
Problem setting max upload file size limit
Hello:
I currently have Joomla installed on a website I'm creating for my company, and I have created a section for registered users to upload files, however, I need to set the maximum allowed upload size to 20mb, and that's where I got stuck.
I researched online and I know there is a line in the php.ini file that I need to edit, however, I CAN'T FIND this file anywhere on my web hosting server. So then I asked GoDaddy support, and they told me the the only way I can change this setting is by:
1. Enable "Shell Access" for the site.
2. Use something called vi or vim editor and edit that line with SSH Commands.
I'm totally lost after I read step 2, I barely know how to change directory in DOS and Unix command really just don't make any sense to me at all. I've tried to have GoDaddy's support to do this but they said since we have a virtual dedicated server, and joomla is a "third-party software" so they won't support me with this request besides providing me the above informations.
Can someone who understand how this is done give me a hint on how to do it?
Thanks!!
I currently have Joomla installed on a website I'm creating for my company, and I have created a section for registered users to upload files, however, I need to set the maximum allowed upload size to 20mb, and that's where I got stuck.
I researched online and I know there is a line in the php.ini file that I need to edit, however, I CAN'T FIND this file anywhere on my web hosting server. So then I asked GoDaddy support, and they told me the the only way I can change this setting is by:
1. Enable "Shell Access" for the site.
2. Use something called vi or vim editor and edit that line with SSH Commands.
I'm totally lost after I read step 2, I barely know how to change directory in DOS and Unix command really just don't make any sense to me at all. I've tried to have GoDaddy's support to do this but they said since we have a virtual dedicated server, and joomla is a "third-party software" so they won't support me with this request besides providing me the above informations.
Can someone who understand how this is done give me a hint on how to do it?
Thanks!!
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
You don't have to edit the php.ini file directly, you can add the following lines to the .htaccess in your site root:
If you are having problems with timeouts you can use:
[*** = time in seconds]
Also in the global cofiguration panel, you will probably have to open up the limits there too (can't remember what default is off the top of my head)
Not sure if godaddy are using the mod_security module but if they are you may need to add this also (try without first)
Code: Select all
php_value upload_max_filesize 20m
php_value post_max_size 20m
Code: Select all
php_value max_input_time ***
Also in the global cofiguration panel, you will probably have to open up the limits there too (can't remember what default is off the top of my head)
Not sure if godaddy are using the mod_security module but if they are you may need to add this also (try without first)
Code: Select all
SecFilterScanPOST Off
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 17, 2008 9:58 pm
Re: Problem setting max upload file size limit
Thanks for the prompt reply,
Okay, I've put those lines into .htaccess file and now when I go to Joomla Administration page, I can see that my local setting the max file upload size have changed to 20M, however, on the Master Setting side, its still saying 8MB maximum. I try to actually upload that's 15mb and get an error message saying "Problem Moving Uploaded File"
I've attached a screen shot of this error message
Thanks!!
Okay, I've put those lines into .htaccess file and now when I go to Joomla Administration page, I can see that my local setting the max file upload size have changed to 20M, however, on the Master Setting side, its still saying 8MB maximum. I try to actually upload that's 15mb and get an error message saying "Problem Moving Uploaded File"
I've attached a screen shot of this error message
Thanks!!
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
Looks like your upload worked fine, and you now have a permission problem.
Are you using Joomla's FTP layer?
Are you using Joomla's FTP layer?
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 17, 2008 9:58 pm
Re: Problem setting max upload file size limit
Sorry if this sound stupid, but I actually don't think I know what "Joomla FTP Layer" means..?
Also, as I posted in my previous reply, the master setting and local setting within my Administration page shows different setting, local setting have correctly showed 20M upload while master setting is still 8M. Is this correct?
Thanks!
Also, as I posted in my previous reply, the master setting and local setting within my Administration page shows different setting, local setting have correctly showed 20M upload while master setting is still 8M. Is this correct?
Thanks!
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
The local setting will override your master setting so yes, that is correct. The master is set by your host and you probably won't have access to change it.
FTP Layer - Have a look under global configuration or think back to the install. Have you setup and FTP account to work with Joomla and is this working?
Feel free to PM me the details of your site and I can have a look for you if you like. If you set me up with a temporary admin account I can have a look at how everything is configured.
FTP Layer - Have a look under global configuration or think back to the install. Have you setup and FTP account to work with Joomla and is this working?
Feel free to PM me the details of your site and I can have a look for you if you like. If you set me up with a temporary admin account I can have a look at how everything is configured.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 17, 2008 9:58 pm
Re: Problem setting max upload file size limit
I tried to PM you with the site address and temporary user name and password but the system won't allow me to PM since I haven't have more then 5 posts yet.
If you have a public e-mail address (That means, for example [email protected])
I can send it there.
Again, thanks for the help, really appreciate it.
If you have a public e-mail address (That means, for example [email protected])
I can send it there.
Again, thanks for the help, really appreciate it.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 17, 2008 9:58 pm
Re: Problem setting max upload file size limit
The forum doesn't seems to be let me reply to PM either, so I've sent a temporary admin account information to the e-mail address you gave me.
Also, I think I will be able to do PM after this reply... now I have 5 posts...lol
Again, thanks a whole lot for the help, I really appreciate it, me and another web designer in our office have spent more than 3 weeks trying to get this problem sorted out, we pretty much got stuck doesn't matter what we try, so I thought its about time I search for help...
Also, I think I will be able to do PM after this reply... now I have 5 posts...lol
Again, thanks a whole lot for the help, I really appreciate it, me and another web designer in our office have spent more than 3 weeks trying to get this problem sorted out, we pretty much got stuck doesn't matter what we try, so I thought its about time I search for help...
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
I got your email, I'm looking at it just now, I think you have a problem with your permissions on your temp folder but I'm just confirming that.
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
Looks like you have no temp dir set. Ask your host to setup upload_tmp_dir in your php.ini (I'm guessing that you are on shared hosting.
Once this has been set, make sure the folder is writable and this should get rid of this error hopefully.
Once this has been set, make sure the folder is writable and this should get rid of this error hopefully.
-
- Joomla! Apprentice
- Posts: 8
- Joined: Fri Oct 17, 2008 9:58 pm
Re: Problem setting max upload file size limit
We are actually on our own virtual dedicated server, its using the Plesk interface and the server base is Unix, which is why when I submitted a support ticket to GoDaddy, they just bounce it back and tell me its my own problem to configure these things. I try to ask them to show me how to set some of those stuff and the reply they gave me is to use a terminal software to access the server's shell and modify all of these via command line...that pretty much beats me... I've try to dig through some documentation and think that it wouldn't be too hard, but have given up after reading through about 100 pages without actually learn anything (The manual is about 500 pages)..
If its not too much of a problem for you, I could also setup a temp admin account to access the plesk interface in our server.
Again, thanks for all the help, I really feel embarrassed now it looks like I have a problem linking to another problem linking to another problem...
If its not too much of a problem for you, I could also setup a temp admin account to access the plesk interface in our server.
Again, thanks for all the help, I really feel embarrassed now it looks like I have a problem linking to another problem linking to another problem...
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
Ah well, if you own your own server (or VPS in this case) all you have to do is to set a tmp folder up in your php.ini file.
Just open you php.ini and search for upload_tmp_dir
Once you've set the folder up, set your permissions on that folder to write and that shoulld be all you need to do.
Just open you php.ini and search for upload_tmp_dir
Once you've set the folder up, set your permissions on that folder to write and that shoulld be all you need to do.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Thu Dec 02, 2010 9:24 pm
Re: Problem setting max upload file size limit
Hi all -
I realize this is an old post but I will try anyway...
I have the same problem as a1454 and tried to follow BYGino's instructions however I am VERY new to joomla/web stuff.
How exactly to I edit the php.ini file directly? Like.. where do I go to edit the .htaccess in my site root? I have no idea what that means!!
Help!!
Thanks.
I realize this is an old post but I will try anyway...
I have the same problem as a1454 and tried to follow BYGino's instructions however I am VERY new to joomla/web stuff.
How exactly to I edit the php.ini file directly? Like.. where do I go to edit the .htaccess in my site root? I have no idea what that means!!
Help!!
Thanks.
-
- Joomla! Enthusiast
- Posts: 178
- Joined: Fri Apr 20, 2007 9:41 pm
- Location: Scotland
- Contact:
Re: Problem setting max upload file size limit
Hi coquiac,
It depends on wether or not you have a dedicated server, a VPS or are on shared hosting.
If you have dedicated or VPS you should have access to the php.ini file but as you're fairly new to all this, I'm going to assume you're on a shared server.
In this case, you need to either edit or create a new .htaccess file (if it doesn't exist) in the site root. Your site root is probably the folder where your Joomla! installation is installed. Look for an existing .htaccess in there before you create a new one.
If you're still having problems, let me know.
It depends on wether or not you have a dedicated server, a VPS or are on shared hosting.
If you have dedicated or VPS you should have access to the php.ini file but as you're fairly new to all this, I'm going to assume you're on a shared server.
In this case, you need to either edit or create a new .htaccess file (if it doesn't exist) in the site root. Your site root is probably the folder where your Joomla! installation is installed. Look for an existing .htaccess in there before you create a new one.
If you're still having problems, let me know.
-
- Joomla! Fledgling
- Posts: 4
- Joined: Mon Aug 06, 2007 9:26 am
- Contact:
Re: Problem setting max upload file size limit
In the same topic, but maybe a different issue.
I can upload some big images, so my max upload globally must be greater than 2M.
But when I: edit an article, add a link, on the link browse window I want to upload the document, When the document is greater than about 1M it says "File size exceeds maximum allowable size".
I have 0 set in global configuration for media uploads. And 4M images can be uploaded elsewhere.
Puzzling.
Inversely, I can't seem to upload a PDF via the media manager. "Not a valid image." Even though I have set pdf and PDF as image extensions in global configurations.
What else is left?
the file attachment extension?
I can upload some big images, so my max upload globally must be greater than 2M.
But when I: edit an article, add a link, on the link browse window I want to upload the document, When the document is greater than about 1M it says "File size exceeds maximum allowable size".
I have 0 set in global configuration for media uploads. And 4M images can be uploaded elsewhere.
Puzzling.
Inversely, I can't seem to upload a PDF via the media manager. "Not a valid image." Even though I have set pdf and PDF as image extensions in global configurations.
What else is left?
the file attachment extension?
- gumuruh
- Joomla! Enthusiast
- Posts: 172
- Joined: Fri Oct 15, 2010 2:39 pm
- Contact:
Re: Problem setting max upload file size limit
Even for my case,
I rename my file from FILE1.PDF
into FILE1.pdf .... and once I uploaded it, it works! ya... very strange.
I rename my file from FILE1.PDF
into FILE1.pdf .... and once I uploaded it, it works! ya... very strange.
It is opened for Community:
http://www.fgroupindonesia.com/2013/05/komunitas.html
http://www.fgroupindonesia.com/2013/05/komunitas.html
-
- I've been banned!
- Posts: 4
- Joined: Mon Feb 28, 2011 11:17 am
Re: Problem setting max upload file size limit
Hi all -
I realize this is an old post but I will try anyway...
I have the same problem as a1454 and tried to follow BYGino's instructions however I am VERY new to joomla/web stuff.
How exactly to I edit the php.ini file directly? Like.. where do I go to edit the .htaccess in my site root? I have no idea what that means!!
Help!!
Thanks
I realize this is an old post but I will try anyway...
I have the same problem as a1454 and tried to follow BYGino's instructions however I am VERY new to joomla/web stuff.
How exactly to I edit the php.ini file directly? Like.. where do I go to edit the .htaccess in my site root? I have no idea what that means!!
Help!!
Thanks
- gumuruh
- Joomla! Enthusiast
- Posts: 172
- Joined: Fri Oct 15, 2010 2:39 pm
- Contact:
Re: Problem setting max upload file size limit
if you're using linux, then the php.ini is depend upon your php directory installed.wilsonroy983 wrote:Hi all -
I realize this is an old post but I will try anyway...
I have the same problem as a1454 and tried to follow BYGino's instructions however I am VERY new to joomla/web stuff.
How exactly to I edit the php.ini file directly? Like.. where do I go to edit the .htaccess in my site root? I have no idea what that means!!
Help!!
Thanks
For example, in my linux ubuntu, the php.ini file was stored inside
Code: Select all
etc/php5/apache2/php.ini
It is opened for Community:
http://www.fgroupindonesia.com/2013/05/komunitas.html
http://www.fgroupindonesia.com/2013/05/komunitas.html
-
- Joomla! Apprentice
- Posts: 14
- Joined: Thu Aug 02, 2012 6:00 pm
Re: Problem setting max upload file size limit
the .htaccess file can be located in your ftp access account.
- leolam
- Joomla! Master
- Posts: 20652
- Joined: Mon Aug 29, 2005 10:17 am
- Location: Netherlands/ Germany/ S'pore/Bogor/ North America
- Contact:
Re: Problem setting max upload file size limit
No it cannotjm34ashby wrote:the .htaccess file can be located in your ftp access account.
Leo
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
-
- Joomla! Apprentice
- Posts: 8
- Joined: Sun Apr 04, 2010 1:05 pm
Re: Problem setting max upload file size limit
To anyone still stuck with shared hosting setting limitations (where changing php.ini settings can only be requested thru the provider), both Joomla 2.5 and 3 has the feature to install extensions from URL or from directory.
For me, uploading the component installer thru FTP to my public_html/tmp/ folder and entering that path in the URL and/or directory (whichever works).
Examples:
(by directory path) /home/root/public_html/tmp/yourcomponent.zip
or relatively
(by URL) http://www.yourwebsite/tmp/yourcomponent.zip
Worked for me, without having to hassle you webhosting provider on changing their settings globally that will affect all sites hosted on the same shared server.
Hope this helps.
For me, uploading the component installer thru FTP to my public_html/tmp/ folder and entering that path in the URL and/or directory (whichever works).
Examples:
(by directory path) /home/root/public_html/tmp/yourcomponent.zip
or relatively
(by URL) http://www.yourwebsite/tmp/yourcomponent.zip
Worked for me, without having to hassle you webhosting provider on changing their settings globally that will affect all sites hosted on the same shared server.
Hope this helps.