Portal Home > Knowledgebase > Articles Database > Change PHP Upload Size
Change PHP Upload Size
Posted by stupidrobothost, 01-07-2010, 06:32 PM |
So this is a somewhat stupid question, however.
I am the root user on a VPS & need to find the location of max_upload to change the variables.
Thank You!
|
Posted by jacobcolton, 01-07-2010, 06:46 PM |
This can normally done via the php.ini file by changing the upload_max_filesize variable.
All the best,
Jacob
|
Posted by stupidrobothost, 01-07-2010, 06:53 PM |
That part I know lol
But what i need to find is the location of PHP.ini
|
Posted by RemyHorton, 01-07-2010, 07:38 PM |
find / -iname php.ini
|
Posted by Jamza, 01-07-2010, 09:03 PM |
Try creating a file called phpinfo.php on the web server and put the following code in the file.
This will output a load of information about PHP and in the first part of the table it should tell you the location of your php.ini.
|
Posted by colbyt, 01-07-2010, 09:35 PM |
A couple of other things you may need to check, just changing max_upload may not do the complete job. You may also need to increase max_memory and max post size for the transfer to complete.
|
Posted by webhostmaniac, 01-07-2010, 10:55 PM |
it is located in the php.ini file. you can edit it via whm that is the easy way.
|
Posted by NodeMelon, 01-08-2010, 12:15 AM |
Through SSH
locate php.ini (to find the directory)
pico /usr/local/lib/php.ini (pico then the directory it finds)
/usr/local/lib/php.ini is usually where it will be on a cpanel system but look for the directory that is close to that when you do "locate php.ini"
|
Posted by mattle, 01-11-2010, 12:20 PM |
I recommend against this approach. Putting a file that dumps phpinfo() to the browser is too easy to forget about in a public area of your webserver. You don't want to give out that kind of information about your system. Better to find it from the command line:
|
Add to Favourites Print this Article
Also Read