Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2008, 10:23:33 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: custom php.ini, upload_max_filesize  (Read 2045 times)
blengrafix
Space Explorer
***
Offline Offline

Posts: 7


WWW
« on: January 10, 2007, 10:19:34 AM »

Hello All-

We have purchased a "Basic" hosting plan  and was trying to fiddle with the php.ini. We have a web app that we would like to use to upload large files (about 15 MB each).

We have tried few tricks but that doesnt seem to do it.

.htaccess
Code:
<IfModule mod_php4.c>
php_value max_execution_time 3000
php_value memory_limit 8M
php_value post_max_size 20M
php_value upload_max_filesize 20M
</IfModule>

-and, when that fails-
php.ini on the root folder
Code:
upload_max_filesize = 20M
post_max_size = 20M

neither worked, help, please.

Logged

Lupine1647
Berserker Poster
*****
Offline Offline

Posts: 10868


« Reply #1 on: January 10, 2007, 01:56:22 PM »

Hello:

You're close. you need to add a few lines to your .htaccess file. More details can be found at http://www.lunarforums.com/forum/index.php?topic=20444.0
Logged
blengrafix
Space Explorer
***
Offline Offline

Posts: 7


WWW
« Reply #2 on: January 10, 2007, 08:12:02 PM »

Hello:

You're close. you need to add a few lines to your .htaccess file. More details can be found at http://www.lunarforums.com/forum/index.php?topic=20444.0

OH MY! Thank you so much. That did it.

for those people who might need this tip:

add this code in ur php.ini file and place it in your root folder

Code:
upload_max_filesize = 70M
post_max_size = 70M

then add this code in your .htaccess in your root folder

Code:
suPHP_ConfigPath /home/username/public_html
<Files php.ini>
order allow,deny
deny from all
</Files>

Thanks,
« Last Edit: January 10, 2007, 08:35:17 PM by blengrafix » Logged

RandyT
Global Moderator
Über Jedi
*****
Offline Offline

Posts: 2559


Amy's Personal Assistant


« Reply #3 on: January 10, 2007, 08:24:16 PM »

 Applause  glad ya got it working. Thanks for posting the solution so that others may use it  Thumbs Up


RandyT
Logged

Randy T.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM