Turning on Web Sharing does not work and fails to load apache web server

Sort of answering my own question here but hope it will be useful to other people and save them some time.
After receiving my shiny new imac with os x lion pre-installed, I was a little dismayed and confused when I went to System Preferences -> Internet and Wireless -> Sharing and attempted to check the Web Sharing. Every time I clicked this option I was told Web Sharing was starting but would then repeatedly fail and apache failed to start.
Looking in the Console I find:
org.apache.httpd: dyld: Library not loaded: /usr/lib/libpq.5.dylib
org.apache.httpd: Referenced from: /usr/sbin/httpd
org.apache.httpd: Reason: image not found
Entering in the console:
vim /Library/Logs/DiagnosticReports/httpd_2011-08-06-165030_localhost.crash (date and time bit will vary)
reveals:
Process:         httpd [2418]
Path:            /usr/sbin/httpd
Identifier:      httpd
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  launchd [1]
Date/Time:       2011-08-06 16:50:30.106 +0100
OS Version:      Mac OS X 10.7 (11A511a)
Report Version:  9
Crashed Thread:  0
Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
  Library not loaded: /usr/lib/libpq.5.dylib
  Referenced from: /usr/sbin/httpd
  Reason: image not found
Binary Images:
       0x1022f6000 -        0x102352fef  httpd (??? - ???) <9D63FBFD-DD87-3DD5-AD1A-D8A79FEC3EE8> /usr/sbin/httpd
"/Library/Logs/DiagnosticReports/httpd_2011-08-06-165030_localhost.crash" 32L, 1469C
TO FIX THIS ISSUE:
It appears /usr/lib/libpq.5.dylib does not exist but /usr/lib/libpq.5.3.dylib does.
Fix by creating a symbolic link from /usr/lib/libpq.5.3.dylib to /usr/lib/libpq.5.dylib
=
sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
Going back to System Preferences -> Internet and Wireless -> Sharing clicking Web Sharing a couple of times turns Web Sharing on successfully!
Going to http://localhost/ displays the "It Works!" page.
HTH people as it took me a while to find the correct solution online from:
http://www.azattis.com/2011/07/os-x-lion-postgresql-84-install-problem.html

Hi there,
You seemed to have had a similar problem to what I now have and so wondered if you might be able to help me :-)
I have posted this as a new post as well but if anyone has five mins could they take a look - I would be very grateful. Here you go:
I am new to all this so I have probably made some simple errors and I hope someone can help me. I will retell what I have done as I haven't a clue what part of what I have done has mucked things up.
I am really stuck. Web sharing will not start on my iMac running Lion OS X. It did work fine and then I wanted to activate PHP so my test website contact form would work (and send the data on the form throught to my email address.
Before I did anything I turned on websharing and could view my website from another computer using: http://192.168.1.4/~stewartfergusson/
I think followed the instructions on this link to activate PHP -http://foundationphp.com/tutorials/php_leopard.php
I then did a few things in terminal and will paste below what I did:
Last login: Sun Jan  1 09:01:52 on console
Stewart-Fergussons-iMac:~ stewartfergusson$ cd/private/etc
-bash: cd/private/etc: No such file or directory
Stewart-Fergussons-iMac:~ stewartfergusson$ cd
Stewart-Fergussons-iMac:~ stewartfergusson$ cd prvate
-bash: cd: prvate: No such file or directory
Stewart-Fergussons-iMac:~ stewartfergusson$ cd private
-bash: cd: private: No such file or directory
Stewart-Fergussons-iMac:~ stewartfergusson$ cd /private/etc
Stewart-Fergussons-iMac:etc stewartfergusson$ sudo cp php.ini.default php.ini
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Stewart-Fergussons-iMac:etc stewartfergusson$
Last login: Wed Jan  4 09:03:03 on console
Stewart-Fergussons-iMac:etc stewartfergusson$
Last login: Thu Jan  5 06:19:15 on console
Stewart-Fergussons-iMac:etc stewartfergusson$ sudo In -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
Password:
sudo: In: command not found
Stewart-Fergussons-iMac:etc stewartfergusson$ sudo ln -s /usr/lib/libpq.5.3.dylib /usr/lib/libpq.5.dylib
ln: /usr/lib/libpq.5.dylib: File exists
Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl -t
Password:
Syntax error on line 1 of /private/etc/apache2/httpd.conf:
Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
Stewart-Fergussons-iMac:etc stewartfergusson$ sudo apachectl configtest
Password:
Syntax error on line 1 of /private/etc/apache2/httpd.conf:
Invalid command '1', perhaps misspelled or defined by a module not included in the server configuration
Stewart-Fergussons-iMac:etc stewartfergusson$
An important point to note is that I now appear to have more than one http.config file and they are located in the following locations:
1) Macintosh HD/etc/apache2/httpd.conf.default
2) Macintosh HD/etc/apache2/httpd.conf.default.default
3) Macintosh HD/etc/apache2/original/httpd.conf
I edited this file (which one I have not got a clue) and also the php.ini file within Macintosh HD/etc/ using Terminal - the command I used was sudo cp php.ini.default php.ini
This php.ini file now exists in two locations now as well:
1) Macintosh HD/etc/php.ini
2) Macintosh HD/etc/php.ini.default
I then edited this file by changing the line of code below from:
514 error_reporting = E_ALL & ~E_NOTICE (I think it said E_DEPRECATED actually) but I am lifting this from the web page in the link above)
To:
514 error_reporting = E_ALL
I then saved this file.
I then deactivated web sharing in System Preferences and since then have not been able to restart Web Sharing. I click it and it flashes orange for a second then does not start.
This was all done to activate PHP on my iMac so I can host my own site which has a PHP contact form page.
Please help I am so out of my depth I am very worried I may have changed things and I am going to forget what I did.
If you need to know anything then please ask.
Thank you so much
sfergusson1
'JollyoldEngland'

Similar Messages

  • Internal web cam does not work and unknown usb device pops up

          I have had my Pavillion DV6 1230us laptop now for about 7 years now and it was working great untill last year. When the lap top comes out of sleep mode or I restart the computer the " unkown device" balloon pops up. I have tried the following fixes, un-installing all the usb devices and did a reboot, I removed the main battery and held the power button for 2 minutes and re-installed it , I have re-installed the webcam drivers from HP and even removed and installed  the small mother board battery with no sucess. When the " unknown device " balloon pops up I can hear an audio prompt like I am plugging and un-plugging a usb device in one of the ports but I am just watching and hearing the problem happening.

    Hey Scotman,
    The Webcam would not be listed as USB device as it is built into the Notebook. Do you have anything connected USB? What do you see in device manager for your Image devices? Here is a video on Webcam. I am not sure if anything will help you in it or not. If you remove all USB devices in the device manager and remove all USB cords from the computer the balloon should not appear on restart.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Home Sharing does not work. It's time for Apple to act.

    My specific question: Does anyone from Apple read these discussions *and* use the information to fix iTunes?
    My issue (and I've given up on this): Home Sharing does not work and it needs to be fixed. I use a Windows 7 based PC and can successfully access my iTunes library from my iPad, meaning all network requirements are met. However many artists and albums do not appear. I know this is not about the tagging/data for the albums.
    I found recommendations in these forums regarding the iTunes database (.itl), that this is a sign that the database is corrupted, and how to re-create it from the xml version. I used this technique and it did fix the problem - all albums and artists appeared. But within a day or so, they disappear again, meaning the .itl file is corrupted again and has to be re-created again. Also - if the .itl file is corrupted, then why does everything appear fine in iTunes? Somewhere, somehow the data are good enough to make iTunes work properly.
    Bottom line: If you can't get the basics right, then Home Sharing does not work. Some very helpful forum commenters said it could have something to do with the anti-virus software, but that is just passing the buck.  I should not have to know how to do all this. I should be able to turn on Home Sharing and enjoy the music from my iPads, iPhone, etc. Imagine you have to know how fuel injection works and be able to fix it every two days just to use your car - you should be able to turn the key and drive.
    There are more problems - I won't even get into how the album won't display properly on the iPad and other annoyances.
    Apple? Are you listening? Home Sharing does not work. It is the opposite of the image projected of easy-to-use, people-friendly products.
    I suggest you either make it work or turn off the feature.
    Joe

    If your database is constantly becoming corrupt, you have a problem on your computer, it is nothing to do with homesharing. The corrupt database does not affect iTunes because that uses another file. It's not passing the buck, by considering whether anti-virus software might be causing this, this is the sort of stuff anti-virus software does (although I'm not saying that's what it is in your case-I don't know at this stage), you can't hold Apple accountable for badly written software that you have put on your computer yourself.
    If you can't correctly identify what is causing your problem, you are never going to fix it.

  • My ipod touch 5th generation is not turning on and i cant restart it because the home button does not work and it will not connect to anything

    my ipod touch 5th generation is not turning on and i cant restart it because the home button does not work and it will not connect to anything

    Get it fixed then, make an appointment with the Apple genius bar.

  • I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?

    Well the error message is in Swedish but says: The installation program database is damaged. Please contact the Adobe support (which is a hard thing to do!!). I use Windows 7 Home Premium with service pack 1.
    Från: Mylenium 
    Skickat: den 29 december 2014 16:48
    Till: Tony Bohman
    Ämne:  I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    I have tried to reinstall CS3 extended student version to my new comuter from the dvd and also from the web download but it does not work - I get the information that the server does not work- why. How should I do?
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Downloading, Installing, Setting Up - View the full discussion <https://forums.adobe.com/message/7050595#7050595>

  • My up button for volume does not work and need to turn incoming call volume up. is there an app to do this

    my up volume button does not work and i need to turn the incall volume up. is there an app that does this?

    Hey skeith75,
    Thanks for the question. Based on the information you have provided, your iPhone may need to be serviced to fix that button. However, if in the meantime you would like a workaround for turning the volume up on a phone call, you can use Assistive Touch:
    iOS: Using AssistiveTouch
    http://support.apple.com/kb/HT5587
    If you do wish to service your iPhone, the following link should help you get started with the process. Included, you will find information on topics such as warranty, service pricing, and express replacement service.
    Apple - Support - Service Answer Center
    http://www.apple.com/support/iphone/service/faq/
    Thanks,
    Matt M.

  • My iphone four screen does not work and in order to restore it i have to turn of the "find my iphone" app. help!!!

    my iphone4 screen does not work and in order to restore it i have to turn of the "find my iphone" app. help!!!

    It is not the app, it is Find My iPhone enabled with your iCloud account settings on the iPhone.
    http://support.apple.com/kb/ph2702

  • HT4623 the wifi turn-on/off feature does not work on my iphone... it's stuck on off and won't turn on. Does anybody know how to fix it?

    the wifi turn-on/off feature does not work on my iphone... it's stuck on off and won't turn on. Does anybody know how to fix it?

    Hello khalidbadir,
    I would be concerned too if my touchscreen was not responding on my iPhone.  I recommend following the steps in this article to address an unresponsive touchscreen:
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    http://support.apple.com/kb/ts1827
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Home sharing does not work with new mountain lion update.

    home sharing does not work with new mountain lion update. Does anyone else have the same issue. Updated all computers in my home, deauthorized and reauthorized each computer. turn off home sharing and turned it back on. don't know what else to do..please help...

    Our Apple TVs continue to lose connection ever since installing Mountain Lion on the host computer. The only thing that fixes them is to quit and relaunch iTunes, which only works unti the ATV goes to sleep. If a movie is paused for more than a few minutes and the ATV goes to sleep, pressing play again on the remote is greeted with "There are no movies on this computer" or "Turn on Home Sharing."
    If we stop a video on one ATV and attempt to resume it in another room, the error begins again. The other ATV can't connect until iTunes is relaunched.
    My guess is that it has something to do with the new [annoying] security settings. But I still haven't found a fix other than restarting iTunes everytime we want to watch something from our downloads. Fail.

  • ITunes 9 Home Sharing does not work on Windows 7 x64

    iTunes 9 Home Sharing does not work on Windows 7 x64.
    Getting the following error message:
    Home sharing could not be activated because this computer is not authorized for the account "iTunes account." Please authorize this computer and try again.
    This is a bug since my computer is authorized in iTunes and there is only 2 computer authorized for my iTunes account, so I have 3 more left till I should get this message.
    I've just upgraded my iPhone to OS 3.1 using it this morning.
    Please advise.
    Environment: Windows 7 x64, HP TouchSmart tx2-1020us Notebook
    Ivan Farkas
    <edited by host>

    I am using Windows 7 x64.
    I am running iTunes 9.0.2.25
    I am running Mcafee.
    I can see and play music from the iTunes installation on my Windows 7 machine, but I CANNOT access the library to copy songs from this computer to other computers on my network.
    YES, I have enabled "Home Sharing" using my iTunes account. NO, I have not authorized more than 5 computers on this account.
    I believe this to be a Windows 7 related issue, as Home Sharing worked as advertised when I was using Vista (before I upgraded to Windows 7).
    I CAN set up Home Sharing on two other (host) computers in my home network and it works. These computers are XP and a MacBook Pro. I CANNOT access my Windows 7 machine x64 to COPY music from one autorized library to another. Please help!!!
    P.S. - I have attempted to get this to work by turning OFF my McAfee firewall. Windows firewall is disabled.
    Message was edited by: turcott

  • Hp TrueVision HD web cam does not work. The light will come on but no image appears in the window.

    Hi.
     I have an HP Pavilion dv7 6178us Entertainment PC I just bought it last week. My operating system is Windows 7 Home Premium Service Pack 1 64 bits.
    The problem I have is that yesterday I install Skype in the computer and realized that the HP TrueVision HD web cam does not work. The light right next to the web cam will light up but no image will appear on the screen.
    I have checked the software that  I have in the computer for the webcam and the program is CyberLink YouCam BE version 3.5.
    But the web cam does not work. The light right next to it will turn on when I activate Cyberlink, Skype or Messenger but no actual image will come out in computer screen. The computer is fully updated BIOS, Windows 7 and HP.
    But the web cam is not working. Could you help me fix this problem?
    Best regards:
    JEIO71

    I have a pavilion dv6 notepad. it's about a year old.
    about a month ago internal webcam truevision hd stop working.
    Called hp tech. they sent a box for me to ship the laptop.
    they hp tech attempted to correct the problem via internet
    did not work.
    wanted me to do a restore to factory setting i stopped him there.
    Webcam detected in device manager.
    the webcam light come on but no image.
    I actually see the back drop through the image space.
    running windows 7, fully updated.
    I found many comments on the web about the webcam connector disconnecting.
    But if it was the case with my computer, the webcam would not be detected.
    Many other comments suggests to do a restore to factory setting but \i read also that
    does not work often.
    I read many comments where disappointed clients believe hp should update
    the software but the driver is actually microsoft dating back to june 2006.
    Is it possible it's  a hardware problem, ie webcam is burned out.
    I have received a box to sent it and know they will do a system restore.
    Don't feel to go that way.
    Many comments refers to hp making an effort to get a driver update.
    ps I decided to purchase a logitech webcam, works perfectly.
    What else can I do to fix this problem.
    Can hp send me another internal webcam.

  • My Home Sharing does not work any more after latest iTunes update

    After iTunes update to 11.1.3 my Home Sharing does not work any more!
    It worked just fine for several years...
    I tryed to do everything I could find on Apple support... NOTHING works.
    Most of Apple so called updates turn out real crap...
    I am wondering whats happening to Apple?...

    Hello igor_rena,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting Home Sharing
    http://support.apple.com/kb/ts2972
    Best of luck,
    Mario

  • My adobe acrobat 7.0 professional keeps telling me that i have to activate - I cannot do this as the information to the web site does not work.  please help

    my adobe acrobat 7.0 professional keeps telling me that i have to activate - I cannot do this as the information to the web site does not work.  please help

    Activation no longer works. A replacement download and serial number are available Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3

  • IChat 4.0.7 Screen Sharing does not work.

    Me and my friend both have identical machines, the intel iMac 20" 2.66mhz
    Software is identical
    iChat version is identical (4.0.7 (616))
    Video Chat works perfectly, our internet connections are fantastic, no issues there.
    Both using Netgear routers with uPnP enabled.
    Internet Sharing is OFF
    Firewall is "set access for specific services and applications" and iChat and iChat Agent are added.
    I conclude that Screen Sharing *does NOT work* as advertised.
    Apple, I am most disappointed, get it sorted for next release please.
    Who else has witnessed this epic failure?
    Thanks,
    edit
    Also, what is this iChat AV nonsense? Where are the iChat 4 forums?
    Message was edited by: Wayne

    Thanks again Leo for your help,
    Yes I was refering to the screen sharing in system preferences/sharing.
    Checked the video menu:
    Screen sharing enabled
    Camera enabled
    microphone enabled
    so no that's not it! Was hoping it was something simple like that too.
    Both netgear routers dont have any ports forwarded, just upnp enabled.
    The frustrating thing is, both macs are new, one is only days old, and neither mac has had it's setting messed about with or anything.
    It would be great to find the solution, 100's of people having similar issues if you google it.
    *edit*
    Just a thought, would the type of account make a difference? At the moment we are both using the type of accounts that iChat creates when you select "get an iChat account" (creates a [email protected] login)
    Message was edited by: Wayno

  • License CS6 Design & Web Premium does not work anymore

    I have a LEGAL version of CS6 Design & Web primium. I have installed it about a year ago and registered bij Adobe. If I look on the site, my CS6 and licensenumber is available. Still it does not work. Eveytime it says my trail version comes to an end and I have to buy it. But I already bought it.
    I tried to reinstall, but that does not work either. How can I get it to work again???

    Thank you.
    I live in the Netherlands. I wanted to make a call back request, but that
    is not possible. I also can not start a chat session.
    I checked the serial number with the number at my Adobe account and it is
    correct. How can I get in contact??
    2014/1/1 Jeff A Wright <[email protected]>
        Re: License CS6 Design & Web Premium does not work anymore  created
    by Jeff A Wright <http://forums.adobe.com/people/JeffAWright> in *Downloading,
    Installing, Setting Up* - View the full discussion<http://forums.adobe.com/message/5971614#5971614

Maybe you are looking for

  • Script does not work anymore after updating to FM 12.0.3

    Hi, With TCS5, Robohelp would crash when importing FrameMaker books to RH, because the FM files had embedded graphics. So, I found a script to externalize the graphics before doing the import (the script is: ExtendScript of the week: Externalizing Gr

  • Photoshop album starter edition 3 how to get past registration page?

    Having done a system restore on my computer My photo album continually asks for registration I have an unlock key , put that in and away we go asking me to register again cannot get to open my photos, Adobe helpdesk suggested I transfer my photos but

  • "invalid destination address" sending mms

    Whenever I try to send a picture message (or any sort of MMS really), it says "pending" for a few seconds then says "sending" and after a few more seconds it finally says the message failed and a note pops up that says "invalid destination address" N

  • Discoverer and Jinitiator

    The issue I am experiancing is due to the SSLVerifyClient being set to required within OHS. If this value is set to none or optional that Discover Plus works fine. Requirement at out site require that SSLVerifyClient be set to required. When this is

  • OBIEE11g Save Selection Requirement

    Hi, we have a requirement where we need to save search criteria in database and make all those search criteria make it available to end users as link on every dashboard. There would a different search/prompt page where users will search the criteria