Go Back   WJunction - Webmaster Forum! > Webmaster Hangout > Technical Help Desk Support
Reply
 
Thread Tools Display Modes
Old 27th Jan 2012, 07:16 PM   #1
Member
 
Website(s):
Tollyleaks.in SpicyDen.com
Smile how to change?

hello guys i installed cpanel in my linux server i got 1 prob that is Increase upload size in php.ini file by default its restricted to upload file size is 2MB how to change that size limit in php.ini file i didn't find that file in my root folder can any one pls help me where i can find that file and where i hav to edit upload limit size from 2mb size to 1gb pls pls urgent
jayaraj.chinna is offline   Reply With Quote
Old 27th Jan 2012, 07:33 PM   #2
Member
 
Website(s):
Tollyleaks.in SpicyDen.com
Default

urgent guys pls help meeeeeee
jayaraj.chinna is offline   Reply With Quote
Old 27th Jan 2012, 07:36 PM   #3
Member
 
CuraHack's Avatar
 
Website(s):
CuraShare.Net CuraShare.Me CuraShare.Info
Send a message via MSN to CuraHack Send a message via Skype™ to CuraHack
Default

I don't have experience with cPanel, however I know that the php.ini file is located someware in your website's home directory (thus not public_html) or in /etc/php5/*
CuraHack is online now   Reply With Quote
Old 27th Jan 2012, 07:39 PM   #4
Member
 
Website(s):
Tollyleaks.in SpicyDen.com
Default

i didn't find in etc folder
jayaraj.chinna is offline   Reply With Quote
Old 28th Jan 2012, 01:06 AM   #5
Respected Member
 
Default

use this ssh command to find all php.ini files in reverse date order. Cpanel usually hides it under a cpanel folder.

Code:
find / -name php.ini  -print0 | xargs -0 stat --format '%Y %n'|sort -r

Last edited by Lock Down; 28th Jan 2012 at 01:12 AM.
Lock Down is offline   Reply With Quote
Old 28th Jan 2012, 01:56 AM   #6
Member
 
Website(s):
Tollyleaks.in SpicyDen.com
Unhappy

Quote:
Originally Posted by Lock Down View Post
use this ssh command to find all php.ini files in reverse date order. Cpanel usually hides it under a cpanel folder.

Code:
find / -name php.ini  -print0 | xargs -0 stat --format '%Y %n'|sort -r

will u plz also tell me how to change that upload limit to more than 2MB using SSH
jayaraj.chinna is offline   Reply With Quote
Old 28th Jan 2012, 03:19 PM   #7
Respected Member
 
Default

Once you find the php.ini use VI editor ( http://lowfatlinux.com/linux-editor-vi.html )
find in the file :
  • upload_max_filesize = 2M
  • post_max_size = 2M
Change the 2M to whatever size you want it to be.. Then save the file ..

Then you will have to restart httpd service ..

Quote:
service httpd restart
Lock Down is offline   Reply With Quote
Old 29th Jan 2012, 01:28 AM   #8
Member
 
Default

php.ini is located at /usr/local/lib/php.ini at default cPanel setup.

As mentioned above, you will need to restart HTTPD after changing php.ini.
# service httpd restart
Krun!x is offline   Reply With Quote
Old 29th Jan 2012, 03:37 AM   #9
Member
 
Website(s):
Tollyleaks.in SpicyDen.com
Default

Quote:
Originally Posted by Lock Down View Post
Once you find the php.ini use VI editor ( http://lowfatlinux.com/linux-editor-vi.html )
find in the file :
  • upload_max_filesize = 2M
  • post_max_size = 2M
Change the 2M to whatever size you want it to be.. Then save the file ..

Then you will have to restart httpd service ..
Thnx Dude I ll try
jayaraj.chinna is offline   Reply With Quote
Old 30th Jan 2012, 04:54 PM   #10
Respected Member
 
Default

You are welcome
Lock Down is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change this? shariq27 Development Area 4 28th Feb 2011 02:38 AM
How to change this? shariq27 Graphics Area 1 28th Feb 2011 02:29 AM
How to change this GoPantheoN vBulletin 3 15th Apr 2010 01:16 PM
Name change darh_hunter Feedback and Suggestions 13 10th Oct 2009 05:43 AM
An IDEA can change ur Life ...But A Girl Can change Ur IDEA desiboy General Discussion 1 28th Jun 2009 07:43 PM

All times are GMT. The time now is 10:57 PM.