Results 1 to 4 of 4
  1. #1
    host config file edit

    Member Since
    Dec 18, 2011
    Posts
    5
    host config file edit
    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

  2. #2
    host config file edit
    XJ-linux's Avatar
    Member Since
    Jul 02, 2007
    Location
    Going Galt...
    Posts
    3,418
    Specs:
    MacBookAir5,2:10.9.5-MacMini3,1:10.9.5-iPhone6,1:8.3
    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
    Never judge a man, untill you have walked a mile in his shoes...
    That way you'll be a mile away from him, and you'll have his shoes.

  3. #3
    host config file edit

    Member Since
    Dec 18, 2011
    Posts
    5
    Thank you
    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

  4. #4
    host config file edit
    XJ-linux's Avatar
    Member Since
    Jul 02, 2007
    Location
    Going Galt...
    Posts
    3,418
    Specs:
    MacBookAir5,2:10.9.5-MacMini3,1:10.9.5-iPhone6,1:8.3
    Merry Christmas Julian, and welcome to Mac-Forums. Drop by anytime!
    Never judge a man, untill you have walked a mile in his shoes...
    That way you'll be a mile away from him, and you'll have his shoes.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I cant edit my host files (ive tried almost everything)!!
    By DuncanBalloch in forum OS X - Operating System
    Replies: 3
    Last Post: 01-23-2013, 01:20 PM
  2. Host File
    By barry in forum Switcher Hangout
    Replies: 2
    Last Post: 03-30-2009, 11:49 AM
  3. Host File
    By egandolfi in forum Internet, Networking, and Wireless
    Replies: 5
    Last Post: 01-25-2007, 11:06 PM
  4. samba config file
    By adam6969 in forum Internet, Networking, and Wireless
    Replies: 0
    Last Post: 10-10-2006, 05:38 PM
  5. ipfw config file?
    By Cryptic in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 10-27-2004, 09:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •