How can I edit php.ini on the (dv) & (dpv) Dedicated-Virtual Servers?
DETAILS:
The most common parameters changed in the php.ini file are:
safe_mode
register_globals
upload_max_filesize
post_max_size
max_execution_time
Use the following command at the command prompt to start editing:
vi /etc/php.ini
If you have upgraded to PHP5 the ini is located at /opt/php51/etc/php5/fastcgi/php.ini If you are looking for a specific parameter and would like to go straight there, type the following:
vi +/parameter /etc/php.iniexample:
vi +/safe_mode /etc/php.ini
When you are finished editing your php.ini you will need to restart your apache server.
/etc/init.d/httpd stop
/etc/init.d/httpd start
Notes/Supplemental Resources:
Revisions:
12-18-2008: General formatting clean up
Fields marked with an asterisk(*) are required. Comment on this article