Re: Serve It Up

2002-11-23 Thread Bruce Johnson

On Friday, November 22, 2002, at 10:47  PM, Michael Richardson wrote:

 once I get there the problems begin. This is what I
 have right now:
   UW PICO(tm)File:httpd.confModified

   I then do ^W(ctrl-W) to get the search line. After
 this, I type in php and then hit enter. It then says
 php not found. The message php not found is
 directly above the menu with ^G Get Help ^O WriteOut
 etc. Maybe you guys can tell me whats going on with
 this. I'm thinking maybe a permissions issue or
 incorrect directory.

When you first start pico does it have this at the top of the file?

##
## httpd.conf -- Apache HTTP server configuration file
##

If not, you're not in the right directory, or something's messed up 
with your system installation, or the configuration file was 
accidentally deleted or overwritten.

Make sure, before you started pico, you did a 'cd /etc/httpd' command, 
because if pico doesn't find a file of the right name in the current 
directory it starts a new file with the name you give it, so the top 
bar will look right at the 'file:' part.

Before you do the pico command, do a 'pwd' command...it should print 
'/private/etc/httpd' . (yes, I know you went to /etc/httpd in the cd 
command above, but that was like clicking on an alias of a folder. 
/etc/httpd is a link, a Unix version of an alias to the actual 
directory /private/etc/httpd.)

If you're not there do the 'cd /etc/httpd' command. Do an 'ls' command, 
you should see the following:

[Bruce-Johnsons-Computer:/] johnson% cd /etc/httpd

[Bruce-Johnsons-Computer:/etc/httpd] johnson% ls
httpd.conf  httpd.conf.default  magic.default   
mime.types.default
httpd.conf.bak  magic   mime.types  users

If you see this, but don't see httpd.conf, something's messed up. Do 
'cp httpd.conf.default httpd.conf' to make a new copy to edit.

 --
Wherever you go, there you are.

Bruce Johnson



-- 
G-Books is sponsored by http://lowendmac.com/ and...

 Small Dog Electronicshttp://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
---





Serve It Up

2002-11-22 Thread Michael Richardson
Dear List,
  I'm sure alot of you have read the Serve it up
article in the November 2002 ish of MacWorld. They
give step by step instructions to set up a web server
on your mac. The first step involves turning on the 
the php function so that Apache loads the php module
on start up.
  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.
  Now the article in MacWorld refers us OS X.1 users
to www.macworld.com/2002/11/features/database.html,
which is what I followed.
  Is this function only available to Jag users or can
I do this running OS X.1.5? Maybe it has to do with my
set up? Any suggestions or comments on what I might be
doing wrong are welcome. Thanks

Michael Richardson/RichVisual Communications


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
G-Books is sponsored by http://lowendmac.com/ and...

 Small Dog Electronicshttp://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
---





Re: Serve It Up

2002-11-22 Thread Joe Ellis
As someone who is also about to step into the web server area; I posted a
question and someone suggested I consult these references; I'm passing them
along.

Check out these articles:
http://www.macdevcenter.com/pub/a/mac/2001/12/07/apache.html
http://www.macdevcenter.com/pub/a/mac/2002/08/09/homemade_dotmac.html
http://www.macdevcenter.com/pub/a/mac/2002/08/23/jaguar_server.html
http://www.macdevcenter.com/pub/a/mac/2002/11/05/apache_osx.html


Joe Ellis

- Original Message -
From: Michael Richardson [EMAIL PROTECTED]
To: G-Books [EMAIL PROTECTED]
Sent: Friday, November 22, 2002 1:31 PM
Subject: Serve It Up


 Dear List,
   I'm sure alot of you have read the Serve it up
 article in the November 2002 ish of MacWorld. They
 give step by step instructions to set up a web server
 on your mac. The first step involves turning on the
 the php function so that Apache loads the php module
 on start up.
   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.
   Now the article in MacWorld refers us OS X.1 users
 to www.macworld.com/2002/11/features/database.html,
 which is what I followed.
   Is this function only available to Jag users or can
 I do this running OS X.1.5? Maybe it has to do with my
 set up? Any suggestions or comments on what I might be
 doing wrong are welcome. Thanks

 Michael Richardson/RichVisual Communications




-- 
G-Books is sponsored by http://lowendmac.com/ and...

 Small Dog Electronicshttp://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
---





Re: Serve It Up

2002-11-22 Thread Bruce Johnson
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 Electronicshttp://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
---





Re: Serve It Up

2002-11-22 Thread Michael Richardson
--- Bruce Johnson [EMAIL PROTECTED]
wrote:
 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.
 

 Bruce Johnson
 University of Arizona
 College of Pharmacy
 Information Technology Group
 
 Institutions do not have opinions, merely customs
 
 Thanks Bruce, I'm going to give it another try and
see what happens
Michael R.
 
 
 -- 
 G-Books is sponsored by http://lowendmac.com/
 and...
 
  Small Dog Electronicshttp://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

---
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
G-Books is sponsored by http://lowendmac.com/ and...

 Small Dog Electronicshttp://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
---





Re: Serve It Up

2002-11-22 Thread Jeremy Derr
On Friday, November 22, 2002, at 12:31  PM, 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.

pico is -a- unix text editor. there are many others, several of which 
are included with OS X. emacs and vi are just a couple.

being an avid pico user, 'command not found' doesn't sound like a pico 
error.

once you open the Terminal, you have to type 'pico filename'

you'll get a screen that starts with:
UW PICO(tm) 2.5 New Buffer

(it may say something else instead of 'New Buffer')

the bottom shows:
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Pg   ^K Cut Text  ^C Cur 
Pos
^X Exit  ^J Justify   ^W Where is  ^V Next Pg   ^U UnCut Text^T To 
Spell

^W (that is, ctrl-w) invokes Where is and gives you a line just above 
the ^'s line that says:
Search:

this is where you need to type in php and hit return


-- 
G-Books is sponsored by http://lowendmac.com/ and...

 Small Dog Electronicshttp://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
---





Re: Serve It Up

2002-11-22 Thread Michael Richardson
--- Jeremy Derr [EMAIL PROTECTED] wrote:
 
 pico is -a- unix text editor. there are many others,
 several of which 
 are included with OS X. emacs and vi are just a
 couple.
 
 being an avid pico user, 'command not found' doesn't
 sound like a pico 
 error.
 
 once you open the Terminal, you have to type 'pico
 filename'
 
 you'll get a screen that starts with:
 UW PICO(tm) 2.5 New Buffer
 
 (it may say something else instead of 'New Buffer')
 
 the bottom shows:
 ^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Pg  
 ^K Cut Text  ^C Cur 
 Pos
 ^X Exit  ^J Justify   ^W Where is  ^V Next Pg  
 ^U UnCut Text^T To 
 Spell
 
 ^W (that is, ctrl-w) invokes Where is and gives
 you a line just above 
 the ^'s line that says:
 Search:
 
 this is where you need to type in php and hit
 return
 
 I'm not having a problem getting into Pico, it's
once I get there the problems begin. This is what I
have right now:
  UW PICO(tm)File:httpd.confModified

  I then do ^W(ctrl-W) to get the search line. After
this, I type in php and then hit enter. It then says
php not found. The message php not found is
directly above the menu with ^G Get Help ^O WriteOut
etc. Maybe you guys can tell me whats going on with
this. I'm thinking maybe a permissions issue or
incorrect directory.

Michael Richardson
 -- 
 G-Books is sponsored by http://lowendmac.com/
 and...
 
  Small Dog Electronicshttp://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

---
 
 


__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
G-Books is sponsored by http://lowendmac.com/ and...

 Small Dog Electronicshttp://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
---