GeorgeC
08-11-2004, 07:02 AM
Just a newbie question- what should I type after SSHing to edit php.ini? I'm using cPanel as the CP btw. Also, is restarting httpd the next step then to have the changes take effect?
Thanks,
Thanks,
![]() | View Full Version : How to edit php.ini? GeorgeC 08-11-2004, 07:02 AM Just a newbie question- what should I type after SSHing to edit php.ini? I'm using cPanel as the CP btw. Also, is restarting httpd the next step then to have the changes take effect? Thanks, Loon 08-11-2004, 07:34 AM First, make sure you're editing the correct php.ini because there will probally be a few. View your phpinfo (upload a file with just <?php phpinfo(); ?> in it) and check the "Configuration File (php.ini) Path" for the correct php.ini then to edit: pico -w /your/path/to/php.ini ctrl + x to exit and save then restart apache to have the changes take effect: /etc/rc.d/init.d/httpd restart * edit - you might want to backup the current file first incase you break something: cp /your/path/to/php.ini /your/path/to/php.ini.bk |