PHP.ini file upload 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! Intern
- Posts: 62
- Joined: Tue Feb 19, 2008 8:01 pm
PHP.ini file upload limit?
Hey guys,
Sorry if this has been asked a million times before, but i couldn't find what i'm looking for...and i hope this is the right forum to post this in.
So i made my upload size limit bigger in my php.ini file, but it doesn't seem to be affecting the joomla media manager...I still can't upload any vids over 2 mgs ? My Joomla install is in: myroot/joomla and my php.ini file is in: myroot. Should it be in the Joomla root instead?
I have also changed the upload size limit in the Joomla Global Configuration as well as included all the right extensions i want to upload. I am running Joomla 1.5.3
Thx in advance for any help!
Stephane
Sorry if this has been asked a million times before, but i couldn't find what i'm looking for...and i hope this is the right forum to post this in.
So i made my upload size limit bigger in my php.ini file, but it doesn't seem to be affecting the joomla media manager...I still can't upload any vids over 2 mgs ? My Joomla install is in: myroot/joomla and my php.ini file is in: myroot. Should it be in the Joomla root instead?
I have also changed the upload size limit in the Joomla Global Configuration as well as included all the right extensions i want to upload. I am running Joomla 1.5.3
Thx in advance for any help!
Stephane
- humvee
- Joomla! Master
- Posts: 14704
- Joined: Wed Aug 17, 2005 10:27 pm
- Location: Kent, England
Re: PHP.ini file upload limit?
what error are you actually receiving when you are trying to upload an image?
Andy
Andy
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: PHP.ini file upload limit?
Also check on the Joomla backend php info and see which php.ini file it is referencing and its location. Local installs frequently have more then one php.ini but Joomla may be referencing a different one then you changed. Also, did you restart apache after the change?
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Intern
- Posts: 62
- Joined: Tue Feb 19, 2008 8:01 pm
Re: PHP.ini file upload limit?
Hey guys, thx for your replies! I was able to figure it out after talking to my host thought
humvee: I wasn't getting any errors, it would just upload the file, finish, refresh the browser and the file wasn't there. I think i wasn't getting any errors because i'm using the flash uploader. When i tried using the HTML one, i did get an error, but i don't remember which one
dhuelsmann I am not using a local install, my test site is located on my hosting account at HostMonster.com. But i have a question for you, when you say "check on the Joomla backend php info and see which php.ini file it is referencing and its location", where or how do i check this?
Thx for your help!
Stephane
humvee: I wasn't getting any errors, it would just upload the file, finish, refresh the browser and the file wasn't there. I think i wasn't getting any errors because i'm using the flash uploader. When i tried using the HTML one, i did get an error, but i don't remember which one
dhuelsmann I am not using a local install, my test site is located on my hosting account at HostMonster.com. But i have a question for you, when you say "check on the Joomla backend php info and see which php.ini file it is referencing and its location", where or how do i check this?
Thx for your help!
Stephane
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: PHP.ini file upload limit?
Doesn't much matter if you are not in a local installronronmx wrote:Hey guys, thx for your replies! I was able to figure it out after talking to my host thought
dhuelsmann I am not using a local install, my test site is located on my hosting account at HostMonster.com. But i have a question for you, when you say "check on the Joomla backend php info and see which php.ini file it is referencing and its location", where or how do i check this?
Stephane
backend -> help -> system info -> php information -> 6th item down -> Configuration File (php.ini) Path
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
- humvee
- Joomla! Master
- Posts: 14704
- Joined: Wed Aug 17, 2005 10:27 pm
- Location: Kent, England
Re: PHP.ini file upload limit?
The following is a piece I wrote for the 1.0 Help Screens and covers the settings that may need adjusting.
There is usually an upper limit to the size of image files that can be uploaded through the Media Manager. This upper limit is indicated by, for example, "[Max = 8M]", which indicates that files bigger than 8 megabytes cannot be uploaded. This limit is set in the PHP configuration file (php.ini) and may differ between web servers and web hosts. The limit cannot be altered from within Joomla! Some hosting companies do not allow the limit to be altered at all!
To allow larger files to be uploaded it will probably be necessary to increase the upload_max_filesize and the post_max_size settings.
For very large files it may also be necessary to increase the max_execution_time and the memory_limit settings.
hth
Andy
There is usually an upper limit to the size of image files that can be uploaded through the Media Manager. This upper limit is indicated by, for example, "[Max = 8M]", which indicates that files bigger than 8 megabytes cannot be uploaded. This limit is set in the PHP configuration file (php.ini) and may differ between web servers and web hosts. The limit cannot be altered from within Joomla! Some hosting companies do not allow the limit to be altered at all!
To allow larger files to be uploaded it will probably be necessary to increase the upload_max_filesize and the post_max_size settings.
For very large files it may also be necessary to increase the max_execution_time and the memory_limit settings.
hth
Andy
-
- Joomla! Apprentice
- Posts: 32
- Joined: Wed Nov 07, 2007 8:47 pm
Re: PHP.ini file upload limit?
I am getting this error: Upload failed, please check your filesize!
Max size in bytes is set to 10000000. I do not have a php.ini file. Do I need to create one? Joomla 1.5.
Max size in bytes is set to 10000000. I do not have a php.ini file. Do I need to create one? Joomla 1.5.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Oct 24, 2008 5:29 pm
Re: PHP.ini file upload limit?
Hello,
sometimes is not the max filesize the problem when using media manager.
I found out, that the number of files in a folder is a second limitation.
Loading up a couple of icons shows me that problem. There is a limitation
near about 200 - 256 files in a folder.
If this limit is reached, media manager cannot longer show the folder, neither
in detailed or thumbnail format.
Deleting a few files outside of Joomla (up to 1.5.7) with any filemanager, so
that the max number comes under the limit of 200 - 256 files (sometimes
different), media manager can show everything again.
Where is the limit for that problem inserted?
sometimes is not the max filesize the problem when using media manager.
I found out, that the number of files in a folder is a second limitation.
Loading up a couple of icons shows me that problem. There is a limitation
near about 200 - 256 files in a folder.
If this limit is reached, media manager cannot longer show the folder, neither
in detailed or thumbnail format.
Deleting a few files outside of Joomla (up to 1.5.7) with any filemanager, so
that the max number comes under the limit of 200 - 256 files (sometimes
different), media manager can show everything again.
Where is the limit for that problem inserted?
-
- Joomla! Apprentice
- Posts: 18
- Joined: Mon Nov 24, 2008 10:24 am
Re: PHP.ini file upload limit?
Hello
Thanks 4 ur reply I just googled the problem.
I do chages in php.ini file as par "dhuelsmann" told.
I can upload file but only upto 9MB above 9MB it does not upload.
And doesn't throw any exception.
I'm not getting why does this happen?
Plz reply.
Thanks 4 ur reply I just googled the problem.
I do chages in php.ini file as par "dhuelsmann" told.
I can upload file but only upto 9MB above 9MB it does not upload.
And doesn't throw any exception.
I'm not getting why does this happen?
Plz reply.
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: PHP.ini file upload limit?
What is your file size set to in global configuration system tab? Try changing it to 0 and see if it helps.asmas wrote:Hello
Thanks 4 ur reply I just googled the problem.
I do chages in php.ini file as par "dhuelsmann" told.
I can upload file but only upto 9MB above 9MB it does not upload.
And doesn't throw any exception.
I'm not getting why does this happen?
Plz reply.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 18
- Joined: Mon Nov 24, 2008 10:24 am
Re: PHP.ini file upload limit?
That is not working.
Still the problem is there to upload file above 9M.
Still the problem is there to upload file above 9M.
-
- Joomla! Apprentice
- Posts: 29
- Joined: Fri Aug 08, 2008 11:08 am
Re: PHP.ini file upload limit?
sometimes, the hosting companies make it a limitation for their users. Like hosmonster.com has a limitation of 50MB, does not matter what size you put in php.ini, they dont allow more than 50MB.
asmas! you should check the php settings from joomla as dhuelsmann explained above in
backend -> help -> system info -> php information -> (search for) upload_max_filesize
and see what are the limits for local and master values. OR, try contacting your host, they are the right persons to speak with regarding this issue, as this is more to a hosting problem than to joomla.
Anyway, a while back when I had this issue, I spoke with my hosting and they suggested me to go tophp config from cpanel and change to php5 (single php.ini), it solved my problem. But you should backup your files and database first, as it was advised by my host.
Hope it may help.
asmas! you should check the php settings from joomla as dhuelsmann explained above in
backend -> help -> system info -> php information -> (search for) upload_max_filesize
and see what are the limits for local and master values. OR, try contacting your host, they are the right persons to speak with regarding this issue, as this is more to a hosting problem than to joomla.
Anyway, a while back when I had this issue, I spoke with my hosting and they suggested me to go tophp config from cpanel and change to php5 (single php.ini), it solved my problem. But you should backup your files and database first, as it was advised by my host.
Hope it may help.
http://www.KitaboSunnat.com
محکم دلائل و براہین سے مزین متنوع و منفرد کتب پر مشتمل مفت آن لائن مکتبہ
محکم دلائل و براہین سے مزین متنوع و منفرد کتب پر مشتمل مفت آن لائن مکتبہ
-
- Joomla! Apprentice
- Posts: 18
- Joined: Mon Nov 24, 2008 10:24 am
Re: PHP.ini file upload limit?
Thanks for reply
-
- Joomla! Apprentice
- Posts: 39
- Joined: Wed Jan 07, 2009 9:56 pm
Re: PHP.ini file upload limit?
This might point into the right direction. I was having the same problem. When trying to upload a file I would get something like "JFile::read: Unable to open file". See attached file.
What gets me is that it doesn't complain about the file size at all. But when I tried uploading a file size less than 2MB(default) it works just fine.
Conclusion: check php.ini allowed filesize upload or try uploading a small file to test it.
Good luck.
What gets me is that it doesn't complain about the file size at all. But when I tried uploading a file size less than 2MB(default) it works just fine.
Conclusion: check php.ini allowed filesize upload or try uploading a small file to test it.
Good luck.
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 18
- Joined: Mon Nov 24, 2008 10:24 am
Re: PHP.ini file upload limit?
I' solved the problem of "file upload limit" .
Chnage the size in php.ini file as well as in root folder u will get cache folder there are some files where u can change the limit of file upload.
That files are:
cache\joomfish-en-GB\90366616d57f9f6d9b8857ebc171b906.php
cache\joomfish-hn-IN\3ac9e47dc324550924a1bdc3d3a2bf32.php
cache\joomfish-mr-IN\1809dd54be9ee9628cf2a7e729a2e56d.php
cache\joomfish-mr-IN\5367c7f6e9f2dbcb7e043f53905eb6b4.php
In these files set the maxfilesize as per requirement.
I hope this will help u.
Chnage the size in php.ini file as well as in root folder u will get cache folder there are some files where u can change the limit of file upload.
That files are:
cache\joomfish-en-GB\90366616d57f9f6d9b8857ebc171b906.php
cache\joomfish-hn-IN\3ac9e47dc324550924a1bdc3d3a2bf32.php
cache\joomfish-mr-IN\1809dd54be9ee9628cf2a7e729a2e56d.php
cache\joomfish-mr-IN\5367c7f6e9f2dbcb7e043f53905eb6b4.php
In these files set the maxfilesize as per requirement.
I hope this will help u.
-
- Joomla! Enthusiast
- Posts: 143
- Joined: Mon Aug 31, 2009 9:50 am
Re: PHP.ini file upload limit?
Ok, I already tryit, but my requirements are for 1G file, so I configured like this:humvee wrote: The following is a piece I wrote for the 1.0 Help Screens and covers the settings that may need adjusting.
There is usually an upper limit to the size of image files that can be uploaded through the Media Manager. This upper limit is indicated by, for example, "[Max = 8M]", which indicates that files bigger than 8 megabytes cannot be uploaded. This limit is set in the PHP configuration file (php.ini) and may differ between web servers and web hosts. The limit cannot be altered from within Joomla! Some hosting companies do not allow the limit to be altered at all!
To allow larger files to be uploaded it will probably be necessary to increase the upload_max_filesize and the post_max_size settings.
For very large files it may also be necessary to increase the max_execution_time and the memory_limit settings.
hth
Andy
And what was the result? I could´t make a session in my web site(for go to the download site, you have to be login)!! Always when I was trying to make session, the web page refresh itself and nothing. I though, it was Joomla! you klein!! but not, i couldn´t even enter to phpmyadmin!! WT#?!PHP.ini Configuration 1 wrote: upload_max_filesize: 2G
post_max_size: 1.5G
max_execution_time: -1
memory_limit: 256M
That´s mean, I have to set it back the Php file. Ok, I did it! But I need to make the system able to upload bigger files, so I tryit again!
I try with a 22Mb zip file, and works, so that´s mean it works. Now trying with a 70Mb file... FastCGI timeout Error !! I thought with -1 was enough, but isn´t. So:PHP.ini Configuration 2 wrote: upload_max_filesize: 950M
post_max_size: 900M
max_execution_time: -1
memory_limit: 128M
Error again! damn! FastCGI? What is that! I mean I know what it is, but why now? I already test it under another Pc with APache and all works great!!(with 2G configuration)PHP.ini Configuration 3 wrote: upload_max_filesize: 950M
post_max_size: 900M
max_execution_time: 10000
memory_limit: 128M
Ok I search for a solution, and I "found it"!
ActivityTimeout!! by default is 300 but I put it 1000, just for testing..fcgiext.ini Configuration wrote: [Types]
php=PHP
[PHP]
ExePath="C:\Program Files\PHP\php-cgi.exe"
ActivityTimeout=1000
IdleTimeout=3600
Uploading 70Mb file... Ok works
Uploading 500Mb file... I'm still waiting...but at least it works and I get not error message, until...
I hope this can help somebody or just can help me!
-
- Joomla! Enthusiast
- Posts: 143
- Joined: Mon Aug 31, 2009 9:50 am
Re: PHP.ini file upload limit?
1 hour and 30 min... just for one 400Mb file, and become no answer!! somebody have an idee?
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu May 06, 2010 5:20 am
Re: PHP.ini file upload limit?
try this it works for me
modify your .htaccess file
suphp_configpath /home/panelbox_username/public_html/
and creat a php.ini file in your public_html
then go to php config from cpanel and change to php5
modify your .htaccess file
suphp_configpath /home/panelbox_username/public_html/
and creat a php.ini file in your public_html
then go to php config from cpanel and change to php5
-
- Joomla! Enthusiast
- Posts: 143
- Joined: Mon Aug 31, 2009 9:50 am
Re: PHP.ini file upload limit?
Mmm... I´m under windows Server 2003, IIS 6, PhP5 ...
-
- Joomla! Enthusiast
- Posts: 196
- Joined: Sat Jul 19, 2008 7:08 am
Re: PHP.ini file upload limit?
I thought I had an upload limit issue, however, my issue was that the tmp directory wasn't set in the php.ini file
In particular:
upload_tmp_dir="/home/XXXXXX/public_html"
This wasn't load in
Sorted now
In particular:
upload_tmp_dir="/home/XXXXXX/public_html"
This wasn't load in
Sorted now
http://www.visionwebdesign.co.nz - Joomla Web Developer - Vision Web Design | http://www.visionphotography.co.nz - Wellington Photographer - Vision Photography
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed May 25, 2011 3:27 am
Re: PHP.ini file upload limit?
With my sample template I do not know where to get the php.ini but I as well have a 2MB upload limit and I need 8mb for a template that I purchased from Ice Theme. I am using godaddy with Jmmola hosting
-
- Joomla! Apprentice
- Posts: 18
- Joined: Tue Oct 19, 2010 12:54 am
Re: PHP.ini file upload limit?
Works awesome! My installation was defaulting to /usr/lib/... obviously not my area on the server. Once I changed my path to /home/myusername/public_html, everything worked a treat!tarequlhasan wrote:try this it works for me
modify your .htaccess file
suphp_configpath /home/panelbox_username/public_html/
and creat a php.ini file in your public_html
then go to php config from cpanel and change to php5
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri Feb 10, 2012 7:49 am
Re: PHP.ini file upload limit?
Hi, i get this error...
JFile::read: Unable to open file: ''
Warning! - Failed to move file
Error. Unable to upload file
uploaded any pdf file there is ok, but when upload pdf with many image file i cant.. joomla give above error.. how i'll solve this? i have see php.ini, my upload max file and post max file is greater than my pdf file. so i think there is no problem with uploaded size... i only update the website as an administrator.. how can i reach the file php.ini or re-install back without disturbing existing website..
JFile::read: Unable to open file: ''
Warning! - Failed to move file
Error. Unable to upload file
uploaded any pdf file there is ok, but when upload pdf with many image file i cant.. joomla give above error.. how i'll solve this? i have see php.ini, my upload max file and post max file is greater than my pdf file. so i think there is no problem with uploaded size... i only update the website as an administrator.. how can i reach the file php.ini or re-install back without disturbing existing website..
-
- Joomla! Fledgling
- Posts: 2
- Joined: Fri Feb 10, 2012 7:49 am
Re: PHP.ini file upload limit?
tarequlhasan wrote:try this it works for me
modify your .htaccess file
suphp_configpath /home/panelbox_username/public_html/
and creat a php.ini file in your public_html
then go to php config from cpanel and change to php5
**********************************************************
tarequlhassan, can u help me how to do y our solution?