Support / KnowledgeBase

 
Search the KnowledgeBase Search

How can I edit php.ini on the (dv) & (dpv) Dedicated-Virtual Servers?

  • Applies to: (dpv) Nitro, All (dv)

  • Difficulty: Easy

  • Time needed: 5 minutes

  • Tools needed: root, ssh, vi knowledge

 

DETAILS:

NOTE:

To edit your php.ini you will need to login via SSH as the root user.

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.ini
example:
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

User Comments

No visitor comments posted. Post a comment

Fields marked with an asterisk(*) are required. Comment on this article

Fill out the form below if you would like to comment on this article.
 
 
 

(code is not case-sensitive)
 
Submit
 
 

Continue