Welcome to WebmasterWorld Guest from 54.158.127.188

Forum Moderators: travelin cat

Message Too Old, No Replies

how to open the apache configuration file in Mac?

     
11:13 pm on Jul 22, 2004 (gmt 0)

New User

10+ Year Member

joined:July 22, 2004
posts:7
votes: 0


Dear Sir;
I am PC person, but now I switched to Mac, I don't know how to open the apache configuration file in the UNIX shell prompt, since I don't know where is the file. I am running G4 OSX. Any input is appreciated.
11:16 pm on July 22, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 2, 2002
posts:141
votes: 0


I use the terminal to do that.
Open the terminal and type cd /etc/httpd/
Once there type pico httpd.conf
pico is a text processor.
Hope this helps.
11:34 pm on July 22, 2004 (gmt 0)

New User

10+ Year Member

joined:July 22, 2004
posts:7
votes: 0


It helps.Thanks. I typed"sudo pico /etc/httpd/httpd.conf" enter, it didn't prompt for a password. So I cann't move on. Don't know why?
11:46 pm on July 22, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 6, 2003
posts:109
votes: 0


You need to "su" then enter the password then pico the file.
11:52 pm on July 22, 2004 (gmt 0)

New User

10+ Year Member

joined:July 22, 2004
posts:7
votes: 0


Sorry Sir, I still don't understand what is the " su " meaing?
Should I type " su " after I typed "sudo pico / etc/httpd/httpd.conf or after I hit the enter button in the keyboard?Thanks.
1:05 am on July 23, 2004 (gmt 0)

New User

10+ Year Member

joined:July 22, 2004
posts:7
votes: 0


Dear Sir;
do you know where can I modify the hostname in the Mac by using the terminal Unix Command. Here is the computer asking me to fix the problem of hostname:

[Charlton:/usr/local/mysql] lukicd% sudo ./scripts/mysql_install_db
Neither host 'Charlton.net.abc.com' and 'localhost' could not be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with
the --force option
[Charlton:/usr/local/mysql] lukicd%

Much appreciated!

1:12 pm on July 23, 2004 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 1, 2003
posts:815
votes: 0


It sounds like you may be trying to install these apps from an account that does not have administrator privileges.

(When

sudo
failed, did it report something about you not being in the sudoers file? If so, that's what's going on.)

To get Administrator access, you can either log into Mac OS X with an administrator account, or you can boot the Terminal and type:

login administratorname

To make your life easier, you may want to consider using a text editor like jEdit or BBEdit to open your Apache config files.

4:52 pm on July 23, 2004 (gmt 0)

New User

10+ Year Member

joined:July 22, 2004
posts:7
votes: 0


Appreciated! I guess I need my correct password first.
6:58 pm on July 23, 2004 (gmt 0)

New User

10+ Year Member

joined:July 22, 2004
posts:7
votes: 0


Dear Sir;
I got the password, and terminal directs to this below:

[Charlton:/usr/local/mysql] lukicd% sudo ./bin/mysqld_safe&
[1] 490
[Charlton:/usr/local/mysql] lukicd% A mysqld process already exists
/usr/local/mysql/bin/mysql test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.18-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Now I want to create a database, not sure those information tell me mysql is running correctly?

Thanks.

5:49 pm on July 26, 2004 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 1, 2003
posts:815
votes: 0


A mysqld process already exists

That's just telling you tried to start mysql when it was already running. If you get the mysql prompt, mysql is running.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members