Arun Babu
Arun Babu

Reputation: 118

How do I edit the php.ini file?

Is there any way to modify the php.ini file in Mac OSX.. I'm using XAMPP and i need to change the upload-tmp-dir path. Whenever I try to edit and save the file, it shows some error that I am not authorised to do so. Please help!

Upvotes: 2

Views: 7818

Answers (3)

hmldd
hmldd

Reputation: 11

1.open php.ini with superuser

sudo vim php.ini

2.press i to change somthing

3.press Esc and :wq to save and exit

4.restart your web server

Maybe step 4 is the reason "But my uploads are still not working.. ".

Upvotes: 0

arturdev
arturdev

Reputation: 11039

What if you try to copy php.ini file to your Desktop, make changes, save it, and replace back?

Upvotes: 0

LolWalid
LolWalid

Reputation: 535

You can update using editor in terminal and use sudo command to open it as superuser, see here.

sudo vim php.ini

or

sudo emacs php.ini

Your choice

Upvotes: 1

Related Questions