Michael Richardson wrote: > Supposedly, I can go into the Unix text > editor(PICO), press ctrl-W to open the command line, > and then type php. When you hit the return key, the > cursor should land on the line "#LoadModule > php4_module libexec/httpd/libphp4.so." Instead of > this, however, I get "command php not found".
You are confusing Terminal, the unix command line, with pico, a program you can run in a Terminal window. Fire up Terminal. That alone gets you to the command prompt. type (without the single quotes) 'cd /home/httpd' cd is the unix command for 'change directory' In this case it moves you to the home directory of the web server in OSX. Almost all Unix programs are governed by .conf files, which stands for 'configuration' and are sort of like preferences files, except they're easily editable, since they're plain old text files. then, as the article states : 'sudo cp httpd.conf httpd.conf.orig' sudo is a command that lets you do one command as 'root' or 'superuser', the user account that has the rights to do anything on a Unix system.* It is used in combinations with other commands. Here it's being used to copy a file. (You, the user logged into your Mac, doesn't have write permissions here, so the command wiothout 'sudo' in fromt of it would fail) the general form of the command cp is this: cp <filename> <new filename> makes a copy of the file <filename> with the new name <newfilename> (This step is directly analogous to Resedit tweaks under the old Mac OS that always counsel you to work on a copy of the important file you're modifying...) NOW you do pico: 'sudo pico httpd.conf' NOW the ctrl-w thing will work; Control-W is the 'Find' command in Pico. (NOTE: you have to do the 'sudo' bit again, since as yourself, you can open and edit the file, but when you try to save the file, you can't because you can't write files in that directory.) * Permissions are an important, and rather easy to understand part of Unix. They may _look_ cryptic, but once you understand the code, they make immediate sense. Trust me. these are Mac-simple compared to Windows. We have LOTS of head-sized dents in our walls from dealing with Windows NT oermissions problems. I'd really recommend two books for folks looking to explore the Unix side of things: 'Learning Unix for Mac OS X' from oreilly.com : <http://www.oreilly.com/catalog/lunixmacosx/> and 'Mac OSX: the missiong Manual' Also from Oreilly.com : <http://www.oreilly.com/catalog/macosxmm2> -- Bruce Johnson University of Arizona College of Pharmacy Information Technology Group Institutions do not have opinions, merely customs -- G-Books is sponsored by <http://lowendmac.com/> and... Small Dog Electronics http://www.smalldog.com | Refurbished Drives | -- Check our web site for refurbished PowerBooks | & CDRWs on Sale! | Support Low End Mac <http://lowendmac.com/lists/support.html> G-Books list info: <http://lowendmac.com/lists/g-books.html> --> AOL users, remove "mailto:" Send list messages to: <mailto:[EMAIL PROTECTED]> To unsubscribe, email: <mailto:[EMAIL PROTECTED]> For digest mode, email: <mailto:[EMAIL PROTECTED]> Subscription questions: <mailto:[EMAIL PROTECTED]> Archive: <http://www.mail-archive.com/g-books%40mail.maclaunch.com/> --------------------------------------------------------------- >The Think Different Store http://www.ThinkDifferentStore.com ---------------------------------------------------------------
