Web Hosting Forum | Lunarpages


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



Login with username, password and session length
May 24, 2012, 10:08:24 AM

Pages: [1]   Go Down
  Print  
Author Topic: PHP upload_max_filesize problem  (Read 4718 times)
ssemegran
Newbie
*
Offline Offline

Posts: 3


« on: February 25, 2008, 09:05:14 AM »

I'm having trouble getting the PHP max_upload to change on one of my client's hosting account on Lunarpages. Frustrating, because I was able to change the values on another Lunarpages hosting account and it worked. Did the same thing on this account and it doesn't work. Anyway, here's what I have in my .htaccess file:

suPHP_ConfigPath /home/capit11/public_html/

php_value max_execution_time 300
php_value memory_limit 32M
php_value post_max_size 32M
php_value upload_max_filesize 32M

Here's what I have in my php.ini file:

register_globals = Off

max_execution_time = 300
memory_limit = 32MB
post_max_size = 32MB
upload_max_filesize = 32MB

Any ideas to help me troubleshoot? Thanks!!!
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5215



« Reply #1 on: February 25, 2008, 02:31:31 PM »

1) Take the "php_value" lines OUT of your .htaccess. They won't work there.

2) If your php.ini file is NOT in /home/capit11/public_html/php.ini you'll need to change the suPHP_ConfigPath entry to reflect the actual path (location).

3) Try changing "MB" to just "M" in the php.ini file.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
ssemegran
Newbie
*
Offline Offline

Posts: 3


« Reply #2 on: February 27, 2008, 07:43:13 AM »

Thanks for responding. I tried your suggestions and it's still not changing. In Joomla, it says:

post_max_size   8M
upload_max_filesize   2M

Here's the line I have in my .htaccess file:

suPHP_ConfigPath /home/capit11/public_html/php.ini

Here's what I have in my /home/capit11/public_html/alumni/php.ini:

max_execution_time = 300
memory_limit = 32M
post_max_size = 32M
upload_max_filesize = 32M

Any more ideas? Your help is very much appreciated!
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5215



« Reply #3 on: February 27, 2008, 03:15:39 PM »

If the applicable php.ini file (if you have more than one) is /home/capit11/public_html/alumni/php.ini, then your .htaccess line should be suPHP_ConfigPath /home/capit11/public_html/alumni. The idea is to have .htaccess point to the correct php.ini file, and it sounds like it's not.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
ssemegran
Newbie
*
Offline Offline

Posts: 3


« Reply #4 on: February 28, 2008, 09:10:11 AM »

That worked. Thanks for troubleshooting with me.

Scott
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5215



« Reply #5 on: February 29, 2008, 03:20:44 PM »

Sounds good!
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: