New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

host config file edit


Post Reply New Thread Subscribe

 
Thread Tools
JulianS

 
Member Since: Dec 18, 2011
Posts: 5
JulianS is on a distinguished road

JulianS is offline
Hi all,
I hope somebody can help me with this issue.
I have 1 day Mac experience so please be gentle
I have a bought a second hand iBook G3 PowerPC dual boot OSX 10.4 and OS 9 I have been trying to set up a LAMP, Apache PHP MYsql on it with not to much success (I could see all with a phpinfo() page but I didnt managed to start mysql server) into 10.4 Tiger until I managed to not be able to startup at all.
Startup will end with a black screen and a localhost/root prompt.
Searching the internet i found out that is caused by the file /private/etc/hostconfig - missing or corrupted
I booted in 9 and using an application called Sherlock I found the files hostconfig~ and hostconfig.system-default (i think) at the specified location.
I dont know how to make hidden files visible and rename one to hostconfig with no other characters following. Also which one I should try first? the default one or the ~?
Thank you in advance for any advice

Julian
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,357
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
From the Terminal window, you can use the copy, remove and move commands to manipulate files.

Try:
cd /private/etc

Then:
cp -p hostconfig~ hostconfig~.original

Then:
cp -p hostconfig~ hostconfig

This will leave you a copy of the original file hostconfig~ called hostconfig~.original, and a copy of that file named just hostconfig. Since you apparently need a hostconfig file without the "~" this might just work (assuming the contents of hostconfig~ are usable).

If you find issues with the "new" hostconfig file, just remove it:

rm hostconfig

This will leave only the hostconfig~ and hostconfig~.original files.

You may be told you don't have permission to do any of this. If so, you can use the sudo command and your admin password to do these things:

Example:

MacGyver:etc username$ cp -p hostconfig hostconfig.original
cp: hostconfig.original: Permission denied
MacGyver:etc username$ sudo cp -p hostconfig hostconfig.original
Password:
MacGyver:etc username$ ls | grep hostconfig
hostconfig
hostconfig.original

If you want to be quick about the whole thing, just make a .original copy of hostsconfig~ and then move the original to the new name:

cp -p hostconfig~ hostconfig~.original

mv hostconfig~ hostconfig

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks
JulianS

 
Member Since: Dec 18, 2011
Posts: 5
JulianS is on a distinguished road

JulianS is offline
Hi
Following your instructions I was able to copy a renamed file and all went fine so now I can keep batling MySql with no fear......
I do appreciate the time you took for this reply.
Merry Christmas,
Julian
QUOTE Thanks
XJ-linux

 
XJ-linux's Avatar
 
Member Since: Jul 02, 2007
Location: Going Galt...
Posts: 3,357
XJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond reputeXJ-linux has a reputation beyond repute
Mac Specs: MacBookAir5,2:10.9.4-MacMini3,1:10.9.4-iPhone6,1:7.1.2

XJ-linux is offline
Merry Christmas Julian, and welcome to Mac-Forums. Drop by anytime!

"Those who don't understand Unix are condemned to reinvent it, poorly." Henry Spencer
QUOTE Thanks

Post Reply New Thread Subscribe


« Issues with videochat | Upgrading to Snow Leopard »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Is there sth to edit BMS file? ovilia Music, Audio, and Podcasting 0 08-02-2011 04:08 AM
How do I edit a .kar file on Mac? speni Music, Audio, and Podcasting 0 05-06-2010 07:36 PM
Batch Edit File Privileges cceverett Switcher Hangout 9 11-17-2008 04:06 PM
edit file details.. HELP!! xTaNk OS X - Operating System 8 09-08-2008 05:22 PM
editing the host file in OSX??? stu_69 OS X - Operating System 8 10-03-2003 01:03 PM

All times are GMT -4. The time now is 11:43 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?