Web Sharing, TimeMachine, and CFURL

So I've been using web sharing under 10.5 for months. Yesterday, I decided to upgrade my harddrive. After making sure everything was saved under TimeMachine, I swapped in the new hard drive, did a system restore, went to sleep, and woke up to my new computer with 200gb of free space! Flawless.
Except: now WebSharing doesn't work. I try to access Localhost, 127.0.0.1, or my computer's IP addy and Safari looks at me as if I had gone mad: "Safari can’t find the server." it says. Well, why not?
I tried investigating via command line and got this error:
launchctl: CFURLWriteDataAndPropertiesToResource(/System/Library/LaunchDaemons/org.apache. httpd.plist) failed: -10
Investigating the file, it looks ok. Thinking it might be a permissions issue, I allowed more write access, but then it said "Dubious permissions on file (skipping)." Well ****. So now I am stumped. Do you have any ideas?
-Brett

bheliker wrote:
Yes, using localhost, 127.0.0.1 and my IP address all result in the same issue.
Attempting to start apache it throws the error "already running" but stopping and starting or restarting has no effect...
thanks for the help,
brett
If you turn off WebSharing, do you still have any httpd events showing up in the Application Monitor?
It sounds like one of more of the server files are corrupt or misplaced.
Did you ever make any changes to any of the server files?

Similar Messages

  • Web Sharing Start and Stop routines...

    Does any one know where to find the actual start and stop methods that get executed when you turn on/off Personal Web Sharing in System Preferences. A long while back I found where those were to do some custom event upon web sharing start-up/shut-down, and now I can't remember where those are located.

    http://discussions.apple.com/thread.jspa?messageID=6792272&#6792272
    answered my question, which helped me to find an error:
    sudo /usr/sbin/apachectl start
    Syntax error on line 241 of /etc/httpd/httpd.conf:
    Cannot load /usr/libexec/httpd/modhfsapple.so into server: (reason unknown)
    /usr/sbin/apachectl start: httpd could not be started
    it appears that this Apache module: modhfsapple.so file is missing. (It was in the locate database, but the file is now gone) I recently had some disk errors and restored from a backup drive, but maybe the backup itself had been missing some of the same files. Bummer.
    Now I am wondering if I have to reinstall 10.4 from the DVD or if I can somehow repair/reinstall just the Apache modules to get Personal Web Sharing up and running again?
    It's probably safer to reinstall the whole OS, since I don't really know what other bits and pieces might be missing. I have one Intel Mac and one PPC Mac, so I don't think I could safely pilfer the missing shared object module from one to the other.

  • Help! I need to get web sharing up and running!

    I am working on a web project and just downloaded MAMP only to find that the Apache Server is not running on my laptop running OSX 10.7.5. My understanding is that all I need to do is to turn on Web Sharing but for some reason it refuses to start up... I did some searching around on the web to see what i should do and then Ran Console to see what messages the system was throwing up when I started up web sharing... here is what I got...
    10/8/13 11:53:16.724 AM org.apache.httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.254 for ServerName
    When I open a browser and put in 192.168.1.254, I get the configuration page for the AT&T gateway! why would apache use the ip for the gateway?
    Can anyone look at this and tell me what I need to do to get Apache started? This is for a very important project that I need to start for a client and I did not expect Apache not to work on my machine.. Please note that I am not too familiar with command line interface so if I need to go into terminal it would be helpful to have step by step instructions... Any help would be greatly appreciated, even pointers to references that might help...
    Many thanks!
    David

    Not sure about MAMP but have a look at Setting up a local web server on Lion and Mountain Lion  for how to get apache running.
    regards

  • Web-Sharing preference and apachectl not in sync in 10.5?

    I noticed the following after upgrading to Leopard:
    In the CLI, if I type:
    +sudo apachectl -k start+
    The Apache2 Server starts. Same thing happens when I click "Web Sharing" in the System Preferences. Previously, a change in the CLI would affect the System Preference directly and vise-versa. This does not happen now. I can start Apache in the CLI and those changes are not reflected in the System Preferences. It's like two separate Apache2 processes are created when they should be in sync. Is this expected behavior with Apache2?
    Steps to repeat this situation:
    1) Turn on Web Sharing in the Sharing panel
    2) browse to http://localhost to verify that the server is running
    3) Open Terminal and type: sudo apachectl -k start
    4) Turn off Web Sharing in the Sharing panel
    5) Verify that http://localhost is still running!?
    6) Quit the apache server: sudo apachectl -k stop

    Make sure there is a small gap between each audio file and the start and end of the timeline on each slide.  That can help force the synchronisation to be a little more exact.  However, since you are outputting to MP4 the entire project will end up as one big video file.  So the synchronisation of audio with video is also somewhat dependent on the end user PC's ability to decode the video in time.

  • Web sharing/Apache not working

    My web sharing doesn't seem to be working.
    When I have it enabled in the Sharing panel of the System Preferences, I try to click on the link
    My Computer's Website
    http://myIPaddress
    I get an error message, in both Safari and Firefox, saying that I cannot make a connection to the server. This is similar to other threads in this section except for the following:
    - I do have a /var/log/apache2 directory
    - I did a chmod 755 on the directory
    - the directory is empty
    - http://localhost does not work
    when I look through a list of my tasks (on the Activity Monitor), I don't see anything related to apache so I'm wondering if my Web Sharing has not initiated the apache server.
    I'm running 10.5.6 on a PowerBook G4.
    Thanks in Advance

    You shouldn't see any apache items in Activity Monitor. I've got web sharing on, and I see a bunch of httpd processes in Activity Monitor. Try repairing permissions on your hard drive. Also, look for some config files located in /etc/apache2/. I see the following files/folders in there on my machine:
    drwxr-xr-x 13 root wheel 442 Nov 24 2007 extra
    -rw-r--r-- 1 root wheel 17684 Jan 27 07:21 httpd.conf
    -rw-r--r-- 1 root wheel 12958 Nov 24 2007 magic
    -rw-r--r-- 1 root wheel 28782 Nov 24 2007 mime.types
    drwxr-xr-x 4 root wheel 136 Aug 13 2008 original
    drwxr-xr-x 4 root wheel 136 Nov 24 2007 other
    drwxr-xr-x 3 root wheel 102 Aug 13 2008 users

  • Web sharing doesn't work on reboot

    I have to turn Web Sharing on and off to make it work after a reboot. I'm not sure when this started as I use Web Sharing intermittently for developing web sites.
    Trying to access on my Mac I get
    Safari can’t open the page “http://localhost/~me/” because Safari can’t connect to the server “localhost”.
    Works fine after going to Sharing and turning Web Sharing off and back on.
    I'm sure this has been covered but haven't had any luck searching.

    Toshiba knowledge base - how to fix webcam - http://forums.toshiba.com/t5/Video-Display-Knowled​ge-Base/How-can-I-fix-my-webcam/ta-p/281393
    Here is another post that gives some suggestions - http://www.pcauthorities.com/pc-errors/how-to-fix-​webcam-problems/
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****

  • Start web sharing with terminal

    Hi All
    in os 10.6 I can start web sharing simply using this command in the terminal:
    sudo apachectl start
    this is the same that enabling web sharing in the system preferences.
    Now in os 10.7 it don't works.
    Using
    sudo /usr/sbin/httpd -k start -D WEBSHARING_ON
    it seems works but system preferences still show web sharing disabled and after restarting computer, web sharing is disabled
    someone can help me?

    Perhaps you're thinking of the SnowLeopard behavior. In Lion, starting Web Sharing is not exactly the same as starting httpd. Please inspect the contents of org.apache.httpd.plist, before and after starting Web Sharing in System Prefs, and it will help you understand. Before, you'll see something like:
    <key>ProgramArguments</key><array>
         <string>/usr/sbin/httpd</string>
         <string>-D</string>
         <string>FOREGROUND</string>
    </array>
    After starting it, you'll see the WEBSHARING_ON flag added:
    <key>ProgramArguments</key><array>
         <string>/usr/sbin/httpd</string>
         <string>-D</string>
         <string>FOREGROUND</string>
         <string>-D</string>
         <string>WEBSHARING_ON</string>
    </array>
    And, have you noticed that even if you load the launchd.plist with -w, the Disabled flag in the launchd.plist is always set to True? That's because the actual state of the launchd job is reflected in this file:
    /var/db/launchd.db/com.apple.launchd/overrides.plist
    Finally, apachectl start/stop simply loads and unloads the launchd.plist.

  • Personal web sharing not working anymore. localhost

    I've had my personal web sharing working fine for some time now. I've been using it to develop PHP sites and such locally. I recently added a local version of wordpress and just now restarted the server by opening my sys prefs and going into sharing and clicking "web sharing" off and then back on in order to restart it. After doing that I can't access my localhost sites. I get this message "Safari can’t connect to the server." when clicking on either of the two links displayed in web sharing pref.
    Any thoughts on what is going wrong here?

    anyone?

  • 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'

  • Web Sharing and Apache losing connection?

    ok so i just did a fresh install of 10.4 on my server (PowerMac G4 - 350 Mhz) i have set up my web sharing with a few tweaks like turned mod_ssl and installed MySQL. Other than that it's a pretty basic config.
    My problem is that i when i start or restart apache everything works and stays that way for hours as I am updating and testing. I go home at night and come back in the morning and i can not access any of my sites nor the local ip of the server (192.168.0.100) or 127.0.0.1
    so i restart apache and its back up...
    i do have a static IP so I know its not my IP Changing
    any ideas on keeping apache alive?

    What do the logs have to say about it?
    There's nothing anyone here can tell you about why it's stopping - there are just too many posibilities. The server logs, though, might provide some clues.
    Check specifically /var/log/httpd/error_log and /var/log/system.log

  • Web Sharing and vhosts

    Hi all
    Can some one help with regards to setting up web sharing and vhosts under 10.8.
    I have started apache (sudo apachectl start).
    I've enabled php and mysql.
    I have de hashed (#) Include /private/etc/apache2/extra/httpd-vhosts.conf
    I have added my vhost :
    127.0.0.1      www.myvhosts.dev
    127.0.0.1     myvhost.dev
    to the file     /private/etc/hosts
    I have also edited the http-vhost.conf file by adding
    <VirtualHost *:80>
            DocumentRoot "/Volumes/MacPro RAID/Web Development/myvhost"
            ServerName www.myvhosts.dev
    </VirtualHost>
    <VirtualHost *:80>
            DocumentRoot "/Volumes/MacPro RAID/Web Development/myvhost"
            ServerName myvhosts.dev
    </VirtualHost>
    But typing in www.myvhosts.dev or myvhosts.dev takes me straight to google.
    Further more http://localhost and http://localhost/~username
    both kick out access errors that I have tried to fix with a user.conf file with
    <Directory "/Volumes/MacPro\ RAID/stevenwhiteley/Sites">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    But nothing works.
    Any assistance would be most apprecated.
    Cheers
    Steve

    Either move the content to the /Library/WebServer/Documents
    directory or create aliases in that directory for the real files.
    Dave

  • Issue on Web sharing and XSL files

    Hi all,
    What are the things to be taken care while we are doing websharing. I have an issue with one of my xMII projects. Everything is working fine on that server except xsl files. It is not getting transformed into HTML at run time. It is showing in XML format instead. I really doubt the problem is with my web sharing, because the same set of files(<b>including XSL file</b>) are working on a different server without any issue.
    I have done websharing by right clicking on the folder name, selecting the websharing tab and giving Alias name. Is that ok or anything more as to be done?
    Can anyone please trace out the issue.
    Thanks in advance
    Muzammil P.T

    Hi,
    Webroot is still in c:\inetpub\wwwroot, but i set up a new virtual directory to <b>c:\Lighthammer</b> and accessing xMII using the URL http://*...*/Lighthammer
    and my project contects using http://*...*/Lh/CompApps/MyProj/HomePage.html
    (I have given Lh as the Alias name).
    Here, My xMII homepage is working and myProj Homepage is also working fine. Once i calls the HTML pages which contains XSL files, the problem is coming.
    Please Note: The same contents is working on our different server without any change.
    Regards
    Muzammil

  • Pixelpost and Personal Web Sharing in Tiger

    Dear Friends:
    I figured out how to install Pixelpost (for a photoblog) in my OS X Tiger system -- by using MAMP. I changed the Document Root in MAMP so that now it looks to the Personal Web Sharing folder in the Mac (the Sites folder in the /usr/ space). The installation of Pixelpost works fine, letting me add images, manage it, etc. However, when I type in the computer address ("personal website") as provided in the Sharing tab under system preferences, it does not bring me at all to the photoblog. For instance:
    http://my.computer.address/ (just brings me to the regular Apache Server notice that it is running)
    if I type this:
    http://my.computer.address/~username/
    It brings me to the generic OS X page in place. But when I type:
    http://my.computer.address/~username/pixelpost/
    it opens to the pixelpost directory which I placed in the Sites folder. What I'd like to do is figure out what address will call up this blog so that others can access it.
    The blog comes up fine under this URL:
    http://localhost:8888/pixelpost/
    But that's not a proper address for external viewing. So, what address should I provide others? I've tried various configurations with the address provided in the Sharing tab of System Preferences, but no luck so far.
    Thanks!
    N

    I changed the Document Root in MAMP so that now it looks to the Personal Web Sharing folder in the Mac (the Sites folder in the /usr/ space
    I think you mean /Users/ space. /usr is something completely different.
    http://my.computer.address/ (just brings me to the regular Apache Server notice that it is running)
    Then it means you didn't change the DocumentRoot like you think you did. If you did, and assuming you restarted Apache after changing the DocumentRoot, then this URL would point to whatever directory you specified (/Users/whoever/Sites) and not /Library/WebServer/Documents.
    But [http://localhost:8888/pixelpost> is not a proper address for external viewing.
    but it can be. If all you're using this for is PixelPost then just setup the port forwarding on your router to forward to port 8888 rather than port 80 and you're done.
    Now, that said, the fact that you're using two different ports here (port 80 and port 8888) means that, at the very least, you are running two virtual hosts, or quite possibly two completely separate Apache instances.
    That could explain why changing the DocumentRoot doesn't help. You may have changed either the PixelPost VirtualHost configuration, or the MAMP-specific server configuration, but that's not the server/virtualhost you're talking to on port 80.
    I've never used MAMP, so I don't know how it installs, but it wouldn't surprise me to find that it installs a whole new Apache distribution and you'd need to find that server and its configuration files to fix the DocumentRoot problem, if that's the way you want to go.
    You can also fix it via a simple Alias in the standard Apache configuration - just alias /pixelpost to /Users/whoever/sites/pixelpost - that way users who hit /pixelpost on your server will get the User-specific directory, while all other URLs continue to be served via /Library/WebServer/Documents. This might improve security and avoid the possibility of leaking other content from your home directory that you don't want to make available.

  • Web Sharing with Leopard 10.5.2 and Airport Extreme Base Station HELP!!!

    Ok...I want to set up web sharing on my computer but so far my attempts have failed.
    I have an intel iMac with Leopard 10.5.2 installed and I have the latest Airport extreme base station (With draft n).
    I turn on web sharing, and of course it works locally but not when trying to be accessed over the internet.
    Now I realize that by default my routers address wont let anyone connect to my computer over the internet.
    My router has an ip of 10.0.1.1, and I assigned my computer a static ip address of 10.0.1.200.
    Now in the network preferences pane and the airport category, i set my computers IP (the 10.0.1.200), I put the gateway as 255.255.255.0, the router as 10.0.1.1 and the DNS as 10.0.1.1
    Now going over to the airport utility I added a new entry in the port mapping section, with port 80 (both public and private) and the IP of my machine, 10.0.1.200.
    Now in theory this should work but NOOOOO.
    Does anyone have the same setup? a wireless network with the new airport extreme base station and has successfully configured Web Sharing?
    Thanks in advance.
    Felipe

    Well here is an update.
    I saw an entry in apple support that said I had to change some setting in the apache folder /etc/apache2 in order to avoid getting the 403 forbidden error. I tried this and it did not work, i checked my user configuration file as well and the path to my home site directory was correct
    Anyone here have a similar setup and has it working? It shouldnt be too hard to set up web sharing through a router. It has to be possible or else a lot of people would not buy a router because of this.
    thanks in advance to anyone kind enough to help
    Bye.

  • Wake on Demand and "Web Sharing"

    Does anyone know if the new Wake on Demand feature is supposed to work with the "web sharing"? It doesn't seem to be working for me. The iMac does wake fine, however, with SSH, file sharing, screen sharing, and printer sharing.

    Hi mcewen. The Wake on Demand feature works with any service being advertised with Bonjour. The caveat with Web Sharing is that it only advertises itself with Bonjour if you've modified one of the default web pages. So all you have to do is go into the Sites folder in your Home directory, and make a change to the index.html file, and then turn off Web Sharing and turn it back on. That should get it to be advertised with Bonjour (you can verify this by going to the Bonjour bookmarks section in Safari to make sure your web page shows up). After that it will support Wake on Demand using Web Sharing.

Maybe you are looking for