Status
Not open for further replies.

jayaraj.chinna

Active Member
297
2010
5
15
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
 
10 comments
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/*
 
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:
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
 
Status
Not open for further replies.
Back
Top