Welcome to WebmasterWorld Guest from 54.205.130.92

Forum Moderators: travelin cat

how to open the apache configuration file in Mac?

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

10+ Year Member



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 Jul 22, 2004 (gmt 0)

10+ Year Member



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 Jul 22, 2004 (gmt 0)

10+ Year Member



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 Jul 22, 2004 (gmt 0)

10+ Year Member



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

10+ Year Member



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 Jul 23, 2004 (gmt 0)

10+ Year Member



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 Jul 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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 Jul 23, 2004 (gmt 0)

10+ Year Member



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

10+ Year Member



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 Jul 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month