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, 12:38:16 PM

Pages: [1]   Go Down
  Print  
Author Topic: PHP.INI  (Read 528 times)
myallenmedia
Newbie
*
Offline Offline

Posts: 1

Allen Media


« on: June 06, 2011, 05:27:44 PM »

I have a dedicated server and my php.ini file is located in the /etc/ folder but here is my question. I need to increase my default 2MB Max Upload Limit to 10MB but I'm a bit confused. I have been told that I should edit /etc/php.ini but what I'm not sure about is if I should put a copy of the changed php.ini in my web root. I have tried that and it does nothing. I don't have SuPHP installed.

Any takers?

Michael
Logged

darkwolf
Guest
« Reply #1 on: June 11, 2011, 04:01:54 PM »

As you do not have susphp you may not need to place one into your file, but instead just look at the one in /etc/php.ini and look for a line that says:


upload_max_filesize = 2M

You should only have to update that line.

If you have updated the line, you may need to look at your script and see if it has a "hardcoded" limit, which would override the php.ini

If you continue to expeirence issues, you may want to contact support and advise them that updating it is not having any effect.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: