Web Hosting Talk







View Full Version : Editing php.ini


FSFOX
04-17-2005, 09:28 PM
I'm trying to edit PHP.ini to allow for larger file sizes, but i'm sort of confused...

Ok, I log into SSH, and open /etc/php.ini in pico, and edit the Max File Size to 8m.

http://img187.echo.cx/img187/6121/12sl.jpg

Now, i'm kind of confused... What do I do now? Do I do ^O?

I did ^O in the screenshot, and I save it to /etc/php.ini, and do I hit ^T now?

http://img187.echo.cx/img187/3092/21xy.jpg

I hit ^T and saved it (I think...) but I restarted the server and did phpinfo, and its still 2MB?

I think i'm doing something wrong.

blockcipher
04-17-2005, 09:44 PM
You can do CTRL + X. This will exit and then say "File has changed would you like to save" or something of that sort. Say yes. And then restart httpd.

FSFOX
04-17-2005, 10:06 PM
It gave me a permission denied message. Its my own dedicated server, and i'm logged in under root, is this a common error?

Omega-Mark
04-18-2005, 02:18 AM
would you not have to stop httpd first because the ini files will be in use?

starfinder
04-18-2005, 09:22 AM
yes, i think you need to stop the processes currently using the file, modify php.ini, then restart the web server.

You may also want to check that it is actually being saved (and in the right place).

blockcipher
04-18-2005, 09:53 AM
Since you got a permission error go into /etc and type

ls -al

What are thepermissions set to?

I've modified php.ini while server is running, I just restart it usually. Not sure if thats the safe way to go about it though ;)

UH-Matt
04-18-2005, 09:55 AM
You should be able to modify while server is online.

Then just give httpd a restart to propogate the change.

FSFOX
04-18-2005, 03:00 PM
Nevermind, I remember I have 15 minutes per month where I can request the server admins at the datacenter to do anything I want to my server.

blockcipher
04-18-2005, 04:12 PM
Keep us updated :D

FSFOX
04-18-2005, 11:31 PM
Originally posted by blockcipher
Keep us updated :D
Everything went a-ok, Leave this suff to the paid pros, I guess. :)