Shell access and php.ini

They have: 218 posts

Joined: Apr 2001

I want to change the remote server php.ini 'upload_max_filesize' setting to higher than 2mb's. Is there a way to do this with SSH/Shell Access?

Thanks,

TM

s0da's picture

He has: 157 posts

Joined: Mar 2004

yes. use either vi or pico

edit the file: pico -w /path/to/php.ini
save changes: Ctrl+X then enter y

remember to restart apache after editing php.ini

Links:
http://www.u.arizona.edu/local/pico.html
http://www.chem.brown.edu/instructions/vi.html

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

You need root to do this, btw.

They have: 218 posts

Joined: Apr 2001

I don't have access to the root so I asked the host to change the setting and the upload facility now works for larger files.

Thanks,

TM

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.