Go Back   MacRumors Forums > Archive > Archives of Old Posts > Web Design and Development (archive)

Thread Tools Search this Thread Display Modes
Old Jan 19, 2004, 12:22 PM   #1
macrumors newbie
Join Date: Jan 2004
altering php.ini

I tried altering my php.ini file in /usr/local/php/lib/ so that error messages would be displayed for my own debugging abilities. I used pico, but when I try to write out the file it says "cannot open file for writing." I tried taking my php.ini from my PC and moving it to /usr/local/php/lib/ but it says something to the effect of "permission denied." I can't chmod the file ("operation not permitted"). I am the admin, so I don't know why I wouldn't be able to do this or any of the above operations. Thanks in advance.
g00bster is offline   0
Old Jan 19, 2004, 12:46 PM   #2
macrumors 6502a
sonofslim's Avatar
Join Date: Jun 2003
you're logged in as the administrator, but are you logged in as root? instead of "pico php.ini" (or whatever your command is) use "sudo pico php.ini" (ie, type 'sudo' before your command.) you'll be asked for your admin password.

sudo executes whatever command follows it as the root user, which should solve your problem. note that it doesn't actually log you in as root -- it only executes the command directly following it. think of it as temporary root access.

also, you may not want to use the php.ini file from your PC. i'm not sure if the php engine builds the same way under OS X. but i don't actually know one way or the other, so you might know better than i.

edit: and this should go without saying, but there's a reason OS X doesn't automatically let you run as root. so be careful when you're mucking about with system files.

Last edited by sonofslim; Jan 19, 2004 at 12:48 PM.
sonofslim is offline   0

MacRumors Forums > Archive > Archives of Old Posts > Web Design and Development (archive)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OS X: Locating [.ini] and [.cfg] files? Morgan Stack Mac and PC Games 7 May 14, 2013 03:19 AM
.ini file will not display my ico silvercircle Mac Programming 3 Jan 27, 2013 03:19 PM
Altering environment variables msjones OS X 10.8 Mountain Lion 7 Nov 19, 2012 12:29 PM
Need solution for altering myself to notes I took for myself aszekely Mac Applications and Mac App Store 7 Oct 22, 2012 11:23 AM
phones: This is how the S3 should have looked (altering my S3) Mac.World Alternatives to iOS and iOS Devices 39 Aug 20, 2012 10:05 PM

Forum Jump

All times are GMT -5. The time now is 01:36 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC