Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-21 18:44:07

z-man
New Member
From: new york, usa
Registered: 2008-11-20
Posts: 4
Website

Mac osx; Txp install; httpd config; problem

installed MAMP, config mySQL, onto txp set-up.

fig 2.29. pg 43, in textbook.

with text editor>open hidden>on mac hd open file etc.> hosts***

hosts is gray and can’t be opened (MAMP is running)
so i can’t set loopback to localhost

what to do???

thanks in advance

—ron


the ox is slow but the earth is patient

Offline

#2 2009-01-21 19:10:09

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: Mac osx; Txp install; httpd config; problem

Isn’t the hosts file in a protected folder, so you need to sudo open the file?

Offline

#3 2009-01-21 19:19:34

z-man
New Member
From: new york, usa
Registered: 2008-11-20
Posts: 4
Website

Re: Mac osx; Txp install; httpd config; problem

sudo open the file. duh?

don’t know what that means, currently following instructions in textbook how to..sudo open a file?

total newbie here. sorry.

—ron


the ox is slow but the earth is patient

Offline

#4 2009-01-21 22:11:35

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Mac osx; Txp install; httpd config; problem

From Terminal (/Applications/Utilities/), type:

sudo nano /etc/hosts
# (enter your password when prompted)

Last edited by jm (2009-01-21 22:13:15)

Offline

#5 2009-01-21 22:25:48

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: Mac osx; Txp install; httpd config; problem

Um— I’ve never needed sudo to open the file, but I have to enter my password when I try to save it. The problem is that you can’t open it with Mac’s defaut Text Editor. I use Textmate, but you can also use TextWrangler which is a free download from Bare Bones.

Nano will work too, as highlighted by Jon-Michael above.

Last edited by johnstephens (2009-01-21 22:27:26)

Offline

#6 2009-01-22 00:32:33

z-man
New Member
From: new york, usa
Registered: 2008-11-20
Posts: 4
Website

Re: Mac osx; Txp install; httpd config; problem

john, thanks for responding—i have been trying with textwrangler and bbedit… the hosts file is grayed out… been retrying most of the day… i’m slow, but usually not this slow—rgds, —ron


the ox is slow but the earth is patient

Offline

#7 2009-01-22 13:55:22

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Mac osx; Txp install; httpd config; problem

Install the BBEdit (or TextWrangler) command-line tools (2nd item in the BBEdit menu), then in Terminal type

bbedit /etc/hosts

or whatever the correct file path is

if that doesn’t work try it with ‘sudo’


Code is topiary

Offline

Board footer

Powered by FluxBB