Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
Offline
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
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
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
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
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