Support Central » Knowledgebase » Knowledgebase Article Not logged in. Login
 
Announcements

Knowledge Base

Submit a Ticket

Client Login
Article » [HOW To] Edit the global php.ini file in Mac OSX

Rating:
Was this article helpful? YES NO MODERATELY
Views: 1827
Printable Version


This article assumes that you are running an Mac based operating system, and that you have a dedicated server or VPS and have root access.


Connect to your host:

CODE:
ssh your.hostname.com

or
CODE:
ssh 111.111.111.111

Where 111.111.111.111 is your main server IP

The system will ask you for a user and password. The username is "root" (no quotes1)

The password is the root password. You will now be connected to your server.

next type:

CODE:
cd /usr/local/lib/

Then:

CODE:
cp php.ini php.iniBACKUP

which makes a backup of the original file

Next type:

CODE:
pico php.ini

You have now opened pico which is a Linux text editor.

Now you can modify the variables that you need.

When you are done press ctrl+x and when it asks if you want to save the modified buffer type "y" (no quotes needed) and press enter to save the new php.ini

Then type:

CODE:
service httpd restart

This will load the new php configuration into Apache.

Follow-up and discuss this topic in our forums
Help Desk Powered By ProSupport v0.9.1