Web Sharing fix?

I have just discovered that web sharing has been removed from Mountain Lion.
I use it to test iPhone web apps over my local network. I found it was much faster, simpler and more secure to setup than having to test from an on-line server.
I use MAMP for its server features but would like to know how to reinstate web sharing without conflicting with MAMP.
Any help appreciated.
Christo
PS: Apple Inc., please reinstate the web server feature into Mac Os.

Web sharing is still there. It was only the button in system preferences that was removed. See my User Tip to re-enable it: https://discussions.apple.com/docs/DOC-3083

Similar Messages

  • How can outside users access my iWeb sites shared via Web Sharing

    Since the coming demise of mobileme/idisk I have decided to publish all of my websites locally (created with iWeb) and share them by the Web Sharing feature in OS X. Everything works perfectly from any computer or device that is on my home network but once I am outside my network I cannot access any of my website nor can any family members. I have an airport network at home using an airport extreme and numerous computers and devices (ipods, ipad, etc) on the network. All can access from within the network but not from outside.  What can I do to fix this?
    I don't want to use a commercial service since my sites are large.  Tried Dropbox and it was too cumbersome.
    Thanks,
    Chris
    Web Server: iMac running OS 10.7.3 with Web Sharing on using the Sites folder inside my user folder

    Here is some info on hosting your website yourself:
    _WWW FAQs: How do I host a real domain name at home?_
    _How do I host my own website at home?_
    _Should I host my own web server?_ - This one describes the pitfalls of hosting yourself.
    I agree with Roddy. For about $3.95 per month you can get a fuil service host complete with 24/7 ear-to-ear customer support and all the bells and whistles at HostExcellence.com. 
    This tutorial descrtibes how it works so well with iWeb: iW16 - Using HostExcellence.com with iWeb as does this website: Using HostExcellence - iWebFAQ.org
    Other info can be found here: Life After MobileMe
    OT

  • 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 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!****

  • Personal web sharing+php 5.2.2

    I installed PHP 5.2.2 for Apache 2 (I'm working on making a simple photo gallery) and it worked just after i installed it but it didn't give me any errors when my code didn't work. But now whenever I try and start web sharing it just says "web sharing starting up..." and stays like that. looking at the console I see a error:
    Processing config directory: /private/etc/httpd/users/*.conf
    Processing config file: /private/etc/httpd/users/+entropy-php.conf
    Syntax error on line 8 of /private/etc/httpd/users/+entropy-php.conf:
    Cannot load /usr/local/php5/libphp5.so into server: (reason unknown)
    /usr/sbin/apachectl start: httpd could not be started
    any ideas on how to fix this? I tried reinstalling PHP but it did not help.

    Hi--
    but i still have the problem of just getting back a
    blank screen when there is errors in my code. This
    makes it very hard to trouble shoot what is wrong
    with my code.
    You have two choices here. One is to just read the Apache error logs with the Console app. Otherwise, you'll need to find the php.ini file and enable sending the errors to the browser (they're off by default because it's something of a security risk). This page has pretty good instructions for doing that. His directions give the php.ini file's location as /usr/local/php/lib/php.ini, but mine, using the Entropy PHP5 distribution is at /usr/local/php5/lib/php.ini (note the extra "5").
    charlie

  • MacoBook Pro connecting wirelessly via Personal Web Sharing from iMac G5

    Subject line says it all... more specifically my problem is that some things seem "blocked" on the MBP when i'm connecting wirelessly via my iMac network, but then are 100% functional when I use other wireless networks.
    examples:
    • gmail via Mail.app [mailbox always has the ! symbol and says it's timed out]
    • playing app-based online games, certian functions will not work
    • using FTP software, it won't connect
    Maybe this an issue I can fix with port forwarding, if so how do I go about doing this? I was told my iMac is technically acting as a router, but I don't have a lot of experience with this type of networking. Thanks!
    iMac G5 2GHz • 15" MacBook Pro 2GHz   Mac OS X (10.4.9)  

    Personal Web Sharing can be a bit tricky and yes, it's because of the firewall on the Mac that's sharing its connection.
    The actual firewall software in the Mac is completely configurable, but the friendly user interface doesn't support the more sophisticated configurations. Fancier setups would require the use of commandline scripts run from Terminal.
    You'll save yourself a lot of headaches if you buy a wireless base station, and forget about using Personal Web Sharing. A $60 Linksys will do the job nicely.

  • Web Sharing broken after Restore System from Time Machine

    If you do a complete System Restore from a Time Machine backup, and had Web Sharing turned on, it won't work after the restore. The problem is the restore doesn't put back a folder for Apache logs. It should be in /var/log (or /private/var/log). Without the folder there, Apache won't start and you'll get an error when trying to access anything on the local website:
    Safari can’t connect to the server.
    Safari can’t open the page “http://localhost/control/” because it could not connect to the server “localhost”.
    To fix the problem, use Terminal:
    cd /var/log
    sudo mkdir Apache2
    sudo apachectl restart
    Then Apache will be happy and you'll be back in business!

    The problem has gone after updated to 10.9.4

  • Web Sharing?

    Hello,
    I went to System Preferences > Sharing > I checked Personal Web Sharing. After that I get this information
    "View this computer’s website at http://ipaddress/ or your personal website at http://ipaddress/~myusername/"
    When i clicked on the first link it works and goes to an apache page saying that it was successful but when i clicked on the second link it says Forbidden"
    How can I fix that?
    Also, Where do i put the files to display my php pages?
    Thanks

    Hi,
    Installing PHP is a very simple process, but make
    very sure you follow the directions provided on this
    website below carefully. If you do not, you may be
    installing PHP more than once.
    PHP is already included with OS X's Apache server.
    How To Turn On PHP in OS X >>
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
     An Apple User Group 
    New: MacOSG Podcast
    Disclaimer required by Apple Discussions Terms of Use: MacOSG - a non-profit Apple User Group - may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • Web Sharing - name uses weird domain name instead of IP

    Just bought a new MacBook Pro and transferred my account info from my other MacBook Pro. When I go to Web Sharing to click on the link to go to my website on my local drive I get someonesname.companyname.net/~myname.
    I need it to be the IP address.
    The domain name someonesname.companyname.net shows up in the Networks Netbios setting as well.
    I had to fix this on the last MacBook Pro, but that was two years ago and can't remember what I did to fix.
    HELLLLPPPPPPP!

    Just bought a new MacBook Pro and transferred my account info from my other MacBook Pro. When I go to Web Sharing to click on the link to go to my website on my local drive I get someonesname.companyname.net/~myname.
    I need it to be the IP address.
    The domain name someonesname.companyname.net shows up in the Networks Netbios setting as well.
    I had to fix this on the last MacBook Pro, but that was two years ago and can't remember what I did to fix.
    HELLLLPPPPPPP!

  • Web Sharing Won't Start Up.

    I was using My Powerbook successfully to develop websites using php and apache but suddenly when I upgraded to 10.4.6 web sharing in the system preferences just hangs when it is selected.
    I get a message saying it is starting up but it never gets as far as starting up.
    Consequently I can't use php - all I get on php page load containing dynamic data is a white screen.
    To further mess things up before I found out what the probelm was I tried to fix PHP by loading up PHP 5 (from entropy). I'm not sure that will have donw too much harm as it seems to have just loaded in a different location and the terminal confirms that PHP 4.4.1 is the version that is running.
    Can anyone help me figure out how to fix this mess. I'm not good in the terminal but I'm willing to give anything a go at the moment.
    Cheers
    Dave

    Open Console and then choose Show Log List from the View menu. Navigate to /var/log and then press the right arrow. Choose httpd and then error_log.
    PowerMac G5 1.8   Mac OS X (10.4.5)   MacMini (MacOS 10.4.5 Server), 2nd internal HD, LaCie FW 500GB, QPS FW 80MB

  • 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

  • Web sharing not working (Forbidden error)

    http://localhost/~myusername  doesnt work with web sharing turned on.
    http://192.168.0.102/ (my local IP on the network) also fails to work.
    It won't open locally or from other computers on the network.
    I tried the apple fix here http://support.apple.com/kb/TA25038
    Doesn't help.
    The exact error I get is
    Forbidden
    You don't have permission to access /index.html on this server.
    Apache/2.2.20 (Unix) DAV/2 Server at 192.168.0.102 Port 80

    No one can help?
    I've tried everything I can think of/google.

  • Web sharing no longer working.

    I have seen loads of posts on this issue - even though I have web sharing selected in system preferences, I am unable to get it to work. I am a novice and I know I have to do something in Terminal, but I'm not sure what.
    Can someone please provide a step by step solution for this problem.
    Thanks you.
    mi

    Ok, I couldn't let the dog die so I spent a day to make the sob work. Here is what I found. (replace all incidents of * with your short user name)
    1) Leopard websharing is broke and no one a Apple is working it.
    2) Cut and paste this command to Terminal (sorry, I do not know any way but Terminal on this):
    sudo mkdir /private/var/log/apache2
    3) Authenticate and press return
    4) Change finder so you can see invisible files (use an app like Cocktail, Onyx or YASU)
    5) Open the /private/etc/apache2/users/ folder in your root directory (invisible item, see step 4 above)
    6) Open Textedit and paste the following into a new document:
    # Allow access to *'s Sites directory for web clients.
    <Directory "/Users/*/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    7) Replace * with your short user name (i.e. /Users/sandman/Sites/)
    8) Change the document to plain text
    9) SaveAs to your desk top as *.conf (i.e. sandman.conf)
    10) Move the .conf document to the user folder opened in step 5 and authenticate
    Sorry but all these steps were required for my fix. I also fixed permissions with Disk Utility.
    You may have to move away from your web server's router to another server to view your web site or Safari could refuse connection.
    I hope I don't forget all of this crud after the next update.

  • Web Sharing starting up....

    Hi all
    I'm a newbie that would like to learn the basics of PHP and web applications.
    I've followed instructions and upgraded the current php on my system. I used the terminal and followed step by step instructions as i have no idea what i'm doing with that application, and coding. I tried to test a simple php file (that tells you the current date/time) in dreamweaver (soon after) and it didn't work. =(
    Well, After following more and more instructions i find my machine with a new oracle user, some sw folder with an application called fink inside it, and all sorts of little files and stuffed folders that seemed to do nothing positive for my current goal.
    I found out shortly after that i probably, simply didn't have apache up and running so once again i've folowed instruction but i've got the following issue: I'm trying to get the apache to start up by clicking the Personal Web Sharing 'start' button in the Sharing area in the System Preferences. The button works, it all goes grey which tells me that it's doing something... but unfortuantely nothing seems to be happenning. I've been through the forums and followed many terminal instructions that have been given to people with the same issues but nothing seems to be working.
    I've gone to work with all the most recent instructions and simply by using the terminal to get rid of a few #'s to get its native php kick started, and pressing that start up web sharing button in the preferences, seems to have worked fine. I haven't tested that .php file to test if its worked or not, but the Web Sharing started with no issues.
    I guess i'm a little worried that with all this tweaking and upgrading of my system that i may have i killed my chances at getting this php working on my imac, and probably injured it in other ways too.
    Can anyone give me any hints as to what i've managed to do to my machine and how i may be able to fix anything that i may have broken.
    If my novice terminology isn't helping much, i do apologise and if anyone out there is willing to help me out i'll do my best to make this all make sense.
    Nev
    imac   Mac OS X (10.4.7)  

    Hi Rick
    right.. I've been on php.net
    Gone into the intro section... copied the script from http://uk3.php.net/manual/en/introduction.php into a blank dreamweaver file. saved it as index.php and previewed the file in my safari window staright from dreamweaver (which has a root of file:///Users/.......htm)
    I get a blank screen (so i guess that means its not reading the php)
    I tried testing it locally from my works ftp area... same deal (root was like www...../test/Index.php)
    I've also tried just typing in http://192/168/0/19/~Byron/ and that isn't even showing the normal file that used to show up as standard (from the sites folder)
    which is why i'm thinking i've done something bad...
    My firewall's off =)
    It's not starting up the Personal Web Sharing (and i reckon thats the problem)
    When im just doing normal html static sites in DW its fine.. no problems with viewing locally at all. Its as soon as i introduce server technology (php) that it becomes un-viewable. (well it loads the file... it just doesn't read anything thats on it).
    Yeah its just in the Local area. I'm just trying to view pages locally, on the machine that created the files. Then upload them to the ftp server later on, once i've got it all running properly.
    Php wouldn't have NEEDED upgrading, it was just one of the things that php.net said would have been a good idea for me to do. (so i followed the advice from their site) Now i think about it, i actually upgraded php (from that site) before i found out how to unlock the native php from the system.
    Would that effect anything?
    imac   Mac OS X (10.4.7)  

  • Web Sharing not working after installing security update

    I have been using Web Sharing without problems for several months, but now, after installing the latest security update, my browser cannot find my server at macbook.local.
    The console error messages read:
    10/15/08 11:35:17
    AM org.apache.httpd644
    httpd: Syntax error on line 455 of /private/etc/apache2/httpd.conf: Syntax error on line 15 of /private/etc/apache2/extra/httpd-userdir.conf: Syntax error on line 8 of /private/etc/apache2/users/+entropy-php.conf: Cannot load /usr/local/php5/libphp5.so into server: dlopen(/usr/local/php5/libphp5.so, 10): no suitable image found. Did find:\n\t/usr/local/php5/libphp5.so: no matching architecture in universal wrapper
    10/15/08 11:35:17 AM
    com.apple.launchd[1]
    (org.apache.httpd644) Exited with exit code: 1
    I have read a number of other posts (and searched a bit on Google), but nothing I found seems to address this particular console error message.
    What should I do?

    This page fixed the problem. For me this is the part that I had to run:
    Problem 2: Apache is 64 bit, entropy is 32 bit.
    The only solution to this that I've seen is to force Apache to be 32 bit. For intel based machines:
    Code:
    sudo cp /usr/sbin/httpd /usr/sbin/httpd-fat
    sudo lipo /usr/sbin/httpd -thin i386 -output /usr/sbin/httpd
    that will strip everything except the 32 bit intel code from httpd (after making a backup), forcing it to be 32 bit. For PPC, the command will be similar.
    This fix is a bit tacky, but shouldn't cause any problems.
    After running this everything worked as normal. Thanks to everyone that helped.

Maybe you are looking for

  • How to exclude synchronous interfaces from component based message alerting

    Hi Pi experts, We are configuiring Alerts in PI 7.3 single stack.If we have 'n'number of interfaces, and if we configured general alerts for all.How to exclude synchronous interfaces in that.Alerting is for asynchronous interfaces only.How to do that

  • ARF converted to MP4 or WMV shows desktop which don't see in ARF

    Hello, We are hoping to use WebEx to record training videos, and I was excited to see the "new" cability to convert ARF files to MP4 and WMV in a much easier way than the past and without the 'tinny' noise.  Great job, Cisco! Can someone help with my

  • Move Media Player plug In

    We've purchased (updgraded from snow leapord) a mac osx x v10.7 lion and have been having issues with installing our kids leap frog application. We've followed every step from the tech support gurus at leapfrog customer support and nothing works. We'

  • Adf faces tutorial - Toplink model is out of sync with the database.

    When running the adf faces tutorial I encountered some problems. The starter workspace uses toplink and the model should be based on the OE schema database objects. However the Customers class is different from the database table, especially the cust

  • Education Report Not Working in MSS

    Hello experts, I am having an issue with one mss report for Education and training. The rest of the reports are working fine. Also when I go to LPD_Cust and click on MSS ITS_NAV1 I get a message reading "Please run report ABP_LPD_CORRECT_TEXTABLES in