Knowledgebase

Email to friend
* Your name:
* Your email:
* Friend's email:
Comment:


How do I edit php.ini?

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.



RSS