Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 7 of 7
  1. #1
    Matsaki's Avatar
    Matsaki is offline Registered User
    Join Date
    Nov 2001
    Location
    Cyprus
    Posts
    576
    Thanks
    7
    Thanked 1 Time in 1 Post

    Apache won't start up

    And I'm getting crazy here! I just had my new Macbook Pro 2.4, Mac OS X 10.5.2 and decided to make a totally fresh install. Installed MySQL and stared PHP etc. Working great.

    But now I can't get my Apache to work. I have been following all tutorials on the net and looking around. Web sharing and so on and on.

    MySQL is working fine but and http://localhost/ attempts resumes in:

    Safari can’t open the page “http://localhost/” because it could not connect to the server “localhost”.
    What the xxx am I doing wrong?? also the "/var/log/apache2" is empty
    Macbook Pro 2.4GHz (early 2008) / 6Gb RAM / 500Gb HD / Mac OS X 10.9Macbook Pro 2.3GHz (mid 2012) / 16Gb RAM / 256Gb SSD + 500Gb / Mac OS X 10.9iPhone 4 / 8Gb / iOS 6.1.2iPad Mini / 16Gb / iOS 7.0.3Apple TV Third GeniPhone 4S 32Gb / iOS 7.0.3

  2. #2
    aicul is offline Registered User
    Join Date
    Mar 2004
    Posts
    571
    Thanks
    0
    Thanked 1 Time in 1 Post
    You have a done a clean install. So maybe you just have to activate websharing in preferences/sharing.
    I'm trying to understand...

  3. #3
    Giaguara's Avatar
    Giaguara is offline Chmod 760
    Join Date
    Nov 2002
    Location
    ~
    Posts
    9,586
    Thanks
    22
    Thanked 193 Times in 188 Posts
    Does 127.0.0.1 give teh same result?
    Can you ping your port 80?
    Mac Mini Server | MacBook Pro | iPhone | Other Macs + a bunch of iPods, Newtons and other toys
    Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do.
    ~ Samuel Clemens | G's corner | Photos | @ Plus+ and Game Center

  4. #4
    Matsaki's Avatar
    Matsaki is offline Registered User
    Join Date
    Nov 2001
    Location
    Cyprus
    Posts
    576
    Thanks
    7
    Thanked 1 Time in 1 Post
    Problem solved. But thanks guys
    Macbook Pro 2.4GHz (early 2008) / 6Gb RAM / 500Gb HD / Mac OS X 10.9Macbook Pro 2.3GHz (mid 2012) / 16Gb RAM / 256Gb SSD + 500Gb / Mac OS X 10.9iPhone 4 / 8Gb / iOS 6.1.2iPad Mini / 16Gb / iOS 7.0.3Apple TV Third GeniPhone 4S 32Gb / iOS 7.0.3

  5. #5
    uberwiess is offline Registered User
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    What did you do!??!

    Glad to hear that you fixed your problem. Would you mind sharing what was wrong? I'm having the same issue!
    I get the same not found message for 127.0.0.1, but I can ping localhost. Any ideas what's wrong?

  6. #6
    uberwiess is offline Registered User
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Figured it out

    I got it working. Here's what I did:
    In the terminal, I entered "sudo apachectl configtest" to see if I had any errors in Apache's config file. There weren't. But looking at error logs in the console told me that Apache couldn't find a certain log file, so after some googleing, I did this:
    cd /private/var/log
    sudo mkdir apache2

    Everything works fine now!

  7. The Following User Says Thank You to uberwiess For This Useful Post:

    Satcomer (November 3rd, 2009)

  8. #7
    chuanist is offline Registered User
    Join Date
    Mar 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    And how!

    Many thanks! My system's browsers all gave me the same error when asked to display localhost. Creating the apache2 directory in logs did the trick for me too.

 

 

Bookmarks

Posting Permissions

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