Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 11:44:22 AM

Pages: [1]   Go Down
  Print  
Author Topic: upload_max_filesize  (Read 3169 times)
ldaroas
Space Explorer
***
Offline Offline

Posts: 6


« on: April 19, 2010, 06:53:13 AM »

II would like to change the upload_max_filesize (ini.php) from 2 to 30 MB. What should I do? I saw that I have to use .htaccess. How should I do that?
Logged
Mitch
Berserker Poster
*****
Offline Offline

Posts: 12837


WWW
« Reply #1 on: April 19, 2010, 07:06:51 AM »

This tutorial should help out!  Thumbs Up

http://wiki.lunarpages.com/Increase_php.ini_Upload_Limit
Logged

New to Web Site Hosting? Check Out the Lunarpages Blog Hosting Guide!


Follow us @lunarpages on Twitter!
Important Threads: Read This Before Posting! | Lunarforums Rules! | Mitch's Link of the Day!
Also, be sure to check out and subscribe to the Lunartics Blog and the Lunarpages Newsletter !

Need Web Hosting Help? Check out the Lunarpages Web Hosting Wiki. It has tons of tips, tutorials and resources!
ldaroas
Space Explorer
***
Offline Offline

Posts: 6


« Reply #2 on: April 20, 2010, 01:35:22 AM »

Thanks, Mitch. I created a php.ini ant put it in public_html but it yet allow me upload only 2 MB
The content of the file php.ini is just that:

[PHP]
upload_max_filesize = 30M
post_max_size = 30M

I think that the it's correct, because if I call php info I now can see upload_max_filesize = 30 MB
Should I call in some way this php.ini when I run the upload script? The script to upload is not in the root folder (public-html) but in other (public_html/private)
« Last Edit: April 20, 2010, 01:50:01 AM by ldaroas » Logged
ldaroas
Space Explorer
***
Offline Offline

Posts: 6


« Reply #3 on: April 20, 2010, 01:57:37 AM »

It works, but I had to move the script that execute the upload. I put the script in the main folder (public_html) and it is okay. It looks like the php.ini that I created does not modify the scritpt present in folders inside public_html (public_html/private). Is that correctly?
Logged
MichaelT
Support
Jabba the Hutt
*****
Offline Offline

Posts: 529



« Reply #4 on: April 20, 2010, 02:02:41 AM »

It works, but I had to move the script that execute the upload. I put the script in the main folder (public_html) and it is okay. It looks like the php.ini that I created does not modify the scritpt present in folders inside public_html (public_html/private). Is that correctly?

If you want the php.ini settings to propagate down into your subfolders you need to add the following into the .htaccess file in your public_html folder;

suPHP_ConfigPath /home/username/public_html

(replace username with your actual account username)   Thumbs Up
Logged

--

Support and Assistance:
Contacting Us
Hosting Plans
Affiliate Program
Wiki and Tutorials
Pages: [1]   Go Up
  Print  
 
Jump to: