Knowledgebase
Search:     Advanced search
Browse by category:
Contact Us

How do I edit php.ini?

Views: 35
Votes: 0
Please note, that when editing the php.ini file that you are aware of what you are doing, as you could severely impact your server’s performance, if there are incorrect settings in the php.ini. Please find blew the instructions on how to edit the php.ini file.

  1. Please login to your dedicated server via putty on port 22 (SSH)
  2. once logged in, please run the following command “updatedb”
  3. once the updatedb has completed, please do command “locate php.ini”
  4. it should present you with a path like /usr/local/Zend/etc/
  5. do command “vi /usr/local/Zend/etc/php.ini”
  6. edit the lines you need to by pressing “o” to edit the line
  7. press the “esc” key on your keyboard to get out of the “o” command
  8. to save and exit do the following command “:wq” this will write and quit the vi editor.
  9. last but not least, do command service httpd restart (this will restart apache and apply the latest settings from your newly updated php.ini).
 If you have any further questions, please contact our support department.
Others in this Category
document Adding IP’s manually in a Cpanel server
document ARIN Justification
document How to Install IonCube
document How to Install Zend Optimizer
document I can't login to my web mail
document Can I install roundcube as a webmail client?
document How do I downgrade my PHP to PHP4?
document How do I enable Exim on a different port?
document How do I recompile apache in WHM?



RSS