homepage Welcome to WebmasterWorld Guest from 54.197.171.109
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
Forum Library, Charter, Moderators: travelin cat

The Macintosh Webmaster Forum

    
how to open the apache configuration file in Mac?
begeiste




msg:975817
 11:13 pm on Jul 22, 2004 (gmt 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.

 

transistor




msg:975818
 11:16 pm on Jul 22, 2004 (gmt 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.

begeiste




msg:975819
 11:34 pm on Jul 22, 2004 (gmt 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?

tstaheli




msg:975820
 11:46 pm on Jul 22, 2004 (gmt 0)

You need to "su" then enter the password then pico the file.

begeiste




msg:975821
 11:52 pm on Jul 22, 2004 (gmt 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.

begeiste




msg:975822
 1:05 am on Jul 23, 2004 (gmt 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!

timster




msg:975823
 1:12 pm on Jul 23, 2004 (gmt 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.

begeiste




msg:975824
 4:52 pm on Jul 23, 2004 (gmt 0)

Appreciated! I guess I need my correct password first.

begeiste




msg:975825
 6:58 pm on Jul 23, 2004 (gmt 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.

timster




msg:975826
 5:49 pm on Jul 26, 2004 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / The Macintosh Webmaster
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved