Web Sharing Question

Hi everyone!
I activated Web Sharing in the Sharing preference pane and have added some files to the 'Sites' folder in my user directory.
The content shows up when I enter the address in Safari.
So does this mean anyone I provide the address to will be able to view the content in my sites folder or is it restricted to just people in my local network.
Cause I have some videos I made that I would like to share with people. And sticking them in the sites directory just seems so much better than uploading them to any YouTube-esque site where the quality in video is considerably degraded not to mention the time it takes for me to upload the video to those sites.
Also, I'd love to take this approach for hosting a website without having to pay for hosting and a domain name (I'm a poor college student).
Thanks for any and all insight!
- Jeff

Jeff,
ALRIGHT ALREADY!!!! Ha, couldn't resist that, given the drama thus far :-P
When you turn Web Sharing on, the Apache web server is started, and port 80 (the standard http port) is opened. So yes, anyone across the internet can view whatever is in your "Sites" folder.
However, you first have to meet a few prerequisites in order for everything to work correctly. Most important is dealing with any router you may be behind. Are you (behind one)? If so, http requests to port 80 must be forwarded by your router to your Mac. Check your router's documentation for instructions on accomplishing this. Another "quick and dirty" way to accomplish the same thing is to place your Mac in the router's "DMZ," but I strongly recommend that you only do this for specific transfers, and only for as long as it takes to make the transfers.
Once your port 80 is "out in the open," others can enter your public IP address, followed by a backslash, then a tilde and your short name (http://xx.xxx.xxx.xxx/~jeff, if that's your short name).
You'll have at least as much trouble hosting a website as you do uploading to YouTube, because both rely on the same internet connection. And of course, if you are behind your school's router, there's almost no way anything like this will happen. You might be able to share across your network, but not across the internet.
If you really want to have a nice website, or space to share selected files, why not try a .Mac account? For only $100 a year, you get way more than enough space to host a substantial website, complete with pictures and video, and the website can be built using iWeb. .Mac and iWeb (and iPhoto, and iMovie, etc.) work seamlessly together. The bandwidth might not be the greatest in the world, but it is certainly much better than anything you can do from the typical wireless network with your own computer.
Scott

Similar Messages

  • Personal Web Sharing Questions

    I have started Personal Web Sharing in the Sharing System Preferences. I have used a PC off site and entered the address shown in the Preference window. I get an error window and cannot access the index.html file in the Sites folder.
    My computer is on the internet via a cable modem to Airport Express and access to Airport requires a password (Wep key).
    Does that have anything to do with the problem?
    What are the variables I might be overlooking?
    thanx

    I have quoted from an article by PChuck, I think he wrote it in very understandable terms.
    In general, only open ports when necessary. When an application, running on a client computer on your LAN, wants to communicate with a server outside the LAN, it sends a packet out. The NAT router does, in sequence:
    1. Open a port which points back to the client computer that sent the packet.
    2. Sends the packet to the distant computer, giving its IP address, and the port that was just opened.
    3. Waits for a return packet from the distant computer.
    4. Forwards the return packet from the distant computer to the client computer that started the whole thing.
    NAT is stateful. This is a reason why a NAT router is said to provide protection like a firewall, but it is not. The port that is opened, from the outgoing packet, only responds to the address of the distant server. Thus when a port is opened, only replies from the distant server will be returned to the client computer on the LAN. Packets from any other computer, to that port, simply get dropped by the NAT router.
    NAT, in its purest form, only supports client computers. Unless a client computer opens a port with an outgoing packet, no incoming traffic gets passed, by a NAT router, to any LAN computer.
    So how do you use a server (a computer that waits for unsolicited incoming packets) behind a NAT router? Before UPnP, you would use either port forwarding, or port triggering.
    • With Port Forwarding, you define fixed ports, to be forwarded to a fixed IP address. Those ports are opened when they are defined, and stay opened forever. The ports must be defined, and opened, before they are needed.
    • With Port Triggering, you define fixed ports, to be forwarded, when specific other ports are opened, by any application on any computer. Those ports are opened when triggered, and stay open forever. The ports must be defined before the triggered port is needed.
    • With UPnP, the UPnP capable application tells the router, precisely when needed, what ports are to be opened, and fowarded to what (potentially dynamic) IP address. And properly written UPnP applications will also tell the router when to close those ports.
    Many well meaning security experts see UPnP as a security risk. If you have uncontrolled applications running on your computer, they can control your router, have it open ports at will, and create security risks.
    If your computer has uncontrolled applications running on it, you've already lost that battle. You need to learn about how to get rid of any existing untrustable software, and then you need to learn about keeping any future untrustable software off your computer.
    UPnP is just as reliable, and as safe, as any applications running on your computer. If you control your computers properly, and ONLY trusted applications run on them, UPnP is perfectly safe. If you don't control your computers properly, applications hijacking UPnP to open holes in your router will be the least of your worries.
    UPnP is actually more secure when your computers can be trusted. UPnP, as I state above, will dynamically instruct the router to close specific ports when they are not needed. Port forwarding, and port triggering, leave ports open forever.
    The other advantage of UPnP is that it allows you to have servers on your LAN, using dynamic IP addressing. Port forwarding requires a server to have a fixed IP address. Port triggering, depending upon the NAT router, may or may not require a server to have a fixed IP address.
    • With port forwarding, or port triggering, you can have only a single computer on the LAN running a given server application. A pre defined port can be forwarded to only one server.
    • With UPnP forwarding, multiple computers can run the same UPnP compliant application, such as an IM program. The server application can negotiate with the router, as necessary, and have the port forwarded.
    Bottom line? A properly written UPnP capable application is more functional, and no less secure, than an equivalent non-UPnP capable application. On a LAN with a properly designed layered security strategy, it will not create a security risk.
    MacBook Pro 2.33 Ghz Intel Core 2 Duo   Mac OS X (10.4.9)   3 GB 667 Mhz 8R2205

  • Web Sharing set up question

    First... I thank you in advance for your time and efforts on this issue that I have.
    =========
    I have 4 macs each hooked up to separate TVs and running Plex for content serving and so far have been able to adequately manage the lot of them. I can remote Admin from my mac and I've done a good job with setting permissions and access as far as file/printer sharing goes.
    But I haven't been able to get the web Sharing features working.
    It seems easy enough... turn on the web sharing in preferences and point the browser to the correct IP address.
    When I do that I am able to reach the web page located in the top webserver/documents folder... or the ones in the users site folder from any of the locally networked machines from the IP addys that can be found in the websharing preference pane.
    But from off site... over the net... no one can get access at all... "cannot locate server" ... and "server time out" messages appear.
    These are all new Mac Minis and a new Mac Book running Snow Leopard and they seem to network rather well for me locally so I'm thinking my router is blocking????
    I have the firewall turned off and it reads that all incoming connections are allowed.
    What am I not setting/looking at properly? what need I do to allow someone to get access to my websharing folder and view a web page or download a file? Or to get access to the htdocs folder in MAMP/
    I tried installing MAMP and that all seems to be up and running but I have the same issue... local machines can access the files but off site machines can not. grrrr .... (i love macs)

    For anyone else who has issues with setting up web sharing.
    I found my solusion first by getting an Airport extreme base station and then by following the instructions posted by Thomas and I'll paste part of it here for you but there is a link you'll need to follow for the main instructions.
    Thomas says the following:
    ===============
    You can't just access machines on your home network from the outside world. Your typical home internet connection has one single dynamic IP address assigned to it. Depending on your network setup, that IP address might be your wireless router, wired router or cable/DSL modem, and that device takes responsibility for routing traffic to machines on the local network. On the local network, machines will have IP addresses like 10.0.1.1 (if you're using an Apple AirPort base station), which are completely meaningless to the outside world.
    I posted some instructions for how to get access to a specific machine on my home network from outside here:
    http://discussions.apple.com/thread.jspa?messageID=9436505&#9436505
    Of course, as I mention on that thread, if you have different hardware, this method may not work for you. Also note that you should not expect to host a website this way. Web access for your own use is one thing, but your internet service provider will shut you down if you try to host a public web site over your home network connection.
    ===========
    And one thing that I did learn unfortunately is that NO... you can't route the web sharing feature to more than one machine at a time. Kinda messes things up. At least for my mac mini it did... had to delete my user account and replace it to get back to normal after trying to set up web sharing on two machines.
    Also.. the settings changed both in the System prefs as well as for the airport are easy enough to reverse and set back your previous settings should you want to.

  • Newbye question on web sharing

    Hello,
    I have an Airport Extreme station, linked to the internet with a fix IP address, and a local Wifi network in my house. Adresses in the local network are 10.0.1.1 10.0.1.2 etc. All machines inside my house are macs.
    On mac 10.0.1.2 I have put web sharing with Apache server running it.
    Inside the local network, I can accesss it with http://10.0.1.2/~twohorned/, it works well.
    But how to access it outside my local network ? I tried http://my-fix-ip/10.0.1.2/~twohorned/ but that does not work.
    Thanks !

    Hi
    You need to use port forwarding on the Airport (if that's your network router) to point any web visitors from the outside world to your 10.0.1.2 machine. Configure your Airport using the Airport Utility, go into Manual Setup, and set up forwarding as follows:
    your public IP / port 80 --> 10.0.1.2 / port 80
    and save/update the settings on the Airport.
    Outside visitors can now access your site at:
    http://your-public-IP/~twohorned
    (Note that you may not be able to access that address yourself from inside your network.)
    Matt

  • Web sharing is not starting

    Yesterday i reinstalled the os x bundle cause of isyn was not working properly now isync is working fine but web sharing is not starting. i checked on web sharing from system preferences when i closed the window and comeback again to sharing i see web sharing everytime unchecked i did also locked but still unchecked. if i go to localhost/mysite its say: "Safari can’t open the page “http://localhost/” because it could not connect to the server “localhost”. please tell what i am doing wrong.

    Thanks web sharing is working but if i type http://localhost/gmm/index.html it says"Not Found"
    The requested URL /gmm/index.html was not found on this server.
    but if i type http://localhost/index.html it shows apache page and says "This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues." but i can't see this page in the Sites folder. I didn't change any thing, don't know what to do.

  • Personal File Sharing question

    Hi,
    I have a question about personal file sharing between my iMac Intel (my work computer) and an eMac (student work computer). I work at a college, and our regular back-up system on campus is just not worthwhile, so as a secondary back-up, I created a new account on the eMac (the student computer). I have already successfully accessed the regular student account via personal file sharing (it shows up on the network under the office name given to the computer), but is there a way that I can also connect directly into my new account on the eMac? Is there something that I need to do to make the separate accounts visible?
    Thanks,
    Ken

    I'll try to access this from a Windows PC from the internet first (then try with ubuntu)
    That requires much more work, like finding Outside IP, Port Forwarding, etc., try it locally first.
    1) System Preferences>Sharing>Services tab>Windows Sharing.
    2) Browser won't get you to File Sharing, that would be for System Preferences>Sharing>Services tab>Personal Web Sharing.
    3) By default the Shared folder is shared, but you can log in as the Mac's User & see all that the Mac User can, or Sharepoints for smb...
    http://lowendmac.com/mac2win/04/0623.html
    Get Sharepoints...
    http://www.hornware.com/sharepoints/
    And setup what you wish to share with whom.

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

  • Personal Web sharing not installed HOW - do I install?

    Hi - I have had an extremely frustrating 4 hours or so between trying to google a solution to the problem and examining the contents of the installation disk with pacifist - I am still none the wiser.
    I have not tried to set up a localhost server on my Intel Mac running 10.4.9 I have had since september and it should be as easy as pie to do so from what I have read.... but not in my case!
    I went to apple > system preferences > sharing and tried to check personal web sharing as suggested in many places but get this for my trouble
    'Web Sharing is not installed on this computer. To install Web Sharing, use the Mac OS X installer.'
    My question is how do I do so without dausing a reformat and still not getting the option?
    I have used pacifist to try and locate either PWS or apache installers inon the disc but sinply am at a loss to find either. Hope someone can help
    Thanks in advance

    NOt that I am aware of - I may have tried to do something like launch the apache index page from httpd or similar in the first couple of days of owning the machine but unless by some sure accident I have not altered any settings.... ( I never got into admin settings or any of that from what I remember)
    I'm not even looking for PHP or mySQL now - Just a running WS so that I can test CSS in it.
    Even so - I still have absolutely no idea where the pws taller is located on the installation disk that I am referred to so therefore am not willing to unstall it for reasons mentioned. I most certainly do not want a reinstall for the sake of a little but in my case neccessary application
    Good point Gnarlodious - like to hear what angle you are coming from on this (particularly if you can help me get this sorted out from the disk as Apple suggest. Much as I love my conversion to apple I have to say the documentation and overall support from the site is appalling (I thought Microsoft was bad......). Instructions such as that encountered on the PWS toggle are vague to say the very least
    Thanks for the reply

  • Mini Web Server Question

    I'm guessing there might be a person or two who can help me with a solution for a new mini that I'm using as a web server. Everything is set up and working perfectly. Apache is running well, and I've established my Virtual Hosts and enabled PHP and MySQL. What I haven't been able to figure out, however, is how to go about limiting access to particular directories on my server.
    Here is what I would like to accomplish.
    I've got a couple of sights that have the root directory of /www/sitename/publichtml/.
    In those public_html directories are resource directories with names like "images" "downloads" etc.
    From my websites, I pull resources from those directories in order to serve images, resources, etc.
    What I would LIKE to do is still allow those directories to serve the resources to the sites, but prohibit direct access to those directories from direct web access. In other words, I want my images to pull from those directories, but I don't want someone to be able to directly navigate to the directory www.sitename/images/imagename.jpg.
    I would like some message to show up along the lines of "You do not have permission to access this directory".
    I attempted to do this with file permissions, but it either allows total access to the directory or won't allow the web pages to pull the resources.
    Does anyone know of any other solution that will help me accomplish my goal?
    Thanks!
    Chris

    You are going to be more likely to get a good answer to this question in the Mac OS X Server forums. If you are using Leopard Server, go [here|http://discussions.apple.com/forum.jspa?forumID=1237].
    If you are using Mac OS X Web Sharing you should post [here|http://discussions.apple.com/forum.jspa?forumID=1225].
    Best of luck.

  • Screen sharing questions

    Merry xmas everyone.
    I have a few questions I hope you can answer.
    I just discovered screen sharing between my mac mini and macbook laptop via a physical ethernet connection using a linksys router (no wifi).
    I go to the finder and see the other computer and click share screen, and it shows up beutifully. But without asking for a user name and password. I tried logging in from a guest account and it then asked me for a user name and password. So just to make sure for my peace of mind, both machines have the exact same user name and password (and .mac account), so is that the reason they can both connect to each other easily without the need to verify.
    Is this share screen even possible via wifi (using Finder and not ichat)? Or just via a hard line connection?
    2nd... is there a way to share the audio between both machines? My overall goal is to connect to my main computer from my laptop from my night stand so I can listen to my podcast, and have them marked as listened to, so that I don't have to wrestled with keeping two podcast libraries on two different machines sync to my ipod... ugh.
    plus i won't have to drop the extra cash on an ipod dock.
    Thanks
    have a great new year everyone

    1. While screen sharing is it possible to drag a document from the remote screen to the computer you are using?
    No, but if you use iChat as your screen sharing tool you can copy the file(s0 manually that way. In Finder you could also simply both screen share and mount the filesystem of the mac.
    2. Does screen sharing work over the internet (like web sharing)?
    Not using the direct screen sharing abilities. But if the mac you're trying to control is set up to be accessed from the internet (with afp://) then you should be able to enter that address into the "New..." menu item window in the screen sharing application. The application is at: /System/Library/CoreServices.

  • Web sharing & 403 Firbidden, one more time

    I've read, to varying degrees of understandability, various articles and help files on the 10.5 web sharing issue. I've tried & failed. I've come to the article below, which I think states clearly why web sharing does not work out of the box with 10.5.5. I want to follow the ix it offers, but, as with so many other articles, it talks a level or 2 above my expertise.
    My questions include:
    • How do you "Navigate to the Apache2 user configuration directory"? What does that mean?
    • What is "cd /private/etc/apache2/users"? Is it a file? Is it something you type in Terminal?
    • What it "tee"?
    Questions go on along these lines until the end of the article; in short, is there a how-to for Apache / Terminal beginners. The overriding question is, why hasn't Apple addressed the web sharing snag by the 10.5.5 iteration of the OS?
    FYI I am hung up on web sharing directly due to my move from Palm to iTouch as PDA. With the Palm Zire31 I was able to do light word processing, and did hundreds of paragraphs with it; also as a reader, and reads tens of thousands of articles on it. I want to do the same with the iTouch. To that end I've duly downloaded and installed BookZ and eReader, to enable me to move articles back & forth from the iTouch to my new iMac, to be blocked by the dreaded 403 error.
    After reckoning this problem I hope a 3rd party will come out with a real light WP app like that for the Palm: WordSmith.
    Here's the article-
    Configure Apache Web Sharing for user accounts in Mac OS X 10.5 Leopard:
    http://www.gigoblog.com/2007/11/08/configure-apache-web-sharing-for-user-account s-in-mac-os-x-105-leopard/
    Someone please help me.

    Leopard web sharing works just fine out of the box (well, it does for me anyway), although if you updated from Tiger rather than doing a fresh install (not really a good idea for new OS version), you may get the 403 error. Once turned on, it is as simple (?) as dropping files into your user's Sites folder.
    That article is horrible - I don't know what the heck they are doing using a utility such as tee to edit configuration files. For stuff like this, the free text editor TextWrangler works as well as shell utilities (especially for those not comfortable with them), and it can also navigate to and open those normally hidden files.
    As for Apache, it is industrial strength, so there is a lot of stuff you can do with it (don't ask me, I'm just a duffer). The default websites on your computer (as shown in the System Preferences > Sharing > Web Sharing pane) have links to the documentation on your computer, or you can wander around and find other references such as Apache DevCenter.

  • Web Sharing + Remote mysql Access

    Hey! I just had a quick question.
    I'm a developer and I was wondering how to enable Web Sharing to allow my PHP code to access mysql databases remotely.
    Currently, my web sharing and php and stuff like that work great, but I get the following error whenever I try to connect to a database.
    "Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/private/tmp/mysql.sock' (2) in /Users/matt/Sites/bio/web/dbconnect.php on line 2
    Could not connect: Can't connect to local MySQL server through socket '/private/tmp/mysql.sock' (2)"
    I'm pretty saavy with software, but anything dealing with firmware or hardware, I am very much humbled. Can someone please help with enabling access to connect to a remote mysql database?
    Thanks so much.

    Nah I haven't actually physically installed it on my computer. I didn't think I had to install it, since I already actually have the database built that I want to connect to.
    Should I install it, then?

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

  • Real web sharing

    Though there are "tons" of posts about this, I cannot find one that speaks to my level; nor one that seems to really fix the web sharing "Forbidden: You don't have permission to access /~shortname/ on this server" conundrum.
    I'm brand new to OS 10.5.5, and I'm brand new to web sharing. Someone care to give a beginners blow-by-blow? Who knows, you may save everyone tons of band width if you describe it easily, clearly and completely enough.
    As for me, I'm angry at Apple for turning what appeared to be easy (in Tiger) into Herculean. Another question screaming to be asked is why did this happen?

    Why are you forbidden? It's not actually you that is forbidden. It is the www user which is actually trying to access the web page, not you. This is done in order to prevent hacking. There is a special user, www, that was created to be the agent to make web requests.
    The Apache 2 configuration files determine where this user has permission to view.
    On one of my installations, my username.conf file was not created. Once I duplicated one of the others and renamed it with my username, all worked fine.
    Other problems could be permissions on the Sites folder. Leopard further strengthened security by more use of Access Control Lists (ACL). Instead of the basic permissions of read, write, execute for the owner, group, and everyone, Apple added finer detailed control of what each of those could do with a folder. However, Finder's Permissions section in Get Info does not play well with those ACLs if you "apply to enclosed items." This also propagates any ACLs to all contents of the folder. This will break a lot of things if done on the Home directory.
    In order to determine what the actual cause on your machine is, we have to request you perform some terminal commands to see what is wrong.

  • Web sharing -- deciphering my address

    Hi all, I've got a question about web sharing..
    All the information I'm seeing about web sharing says your address will be http://ipaddress/~username/
    I've set up web sharing through my sys prefs and it says my address is
    http://jsmith-01.mycompany.net/~username/
    I'm wondering where the 'jsmith-01' (just an example) comes from. Is it coming from my computer or from my companies network? How would I change it?
    Powerbook G4   Mac OS X (10.4.4)  
    Powerbook G4   Mac OS X (10.4.4)  

    That should come from the sharing preference pane - and should end in .local

Maybe you are looking for

  • I have a new mac book pro which i use in england but I need to use German charachters frequently, is there a way of having both visable on the keyboard?

    I have a new mac book pro which i use in england but I need to use German charachters frequently, is there a way of having both visable on the keyboard? For example so that I can just press shift or another key to get the German character.

  • Business Process Monitoring (Job Monitoring)

    Hi all, I have some business processes being monitoring. Most of them are background jobs and we are monitoring delays, cancellation, duration... My problem is that we have an external tool (CONTROLM) for job scheduling. That means that jobs are not

  • Retrieving record from oracle DB very slow..pls help

    Hi, i'm writing a VB code to retrieving records from Oracle DB Server version 8. I'm using VB Adodb to retrieve the records from various tables. Unfortunately one of the table are very slow to response, the table only contain around 204900 records. T

  • Cant open dreamweaver files! HELP!

    I have created a website with dreamweaver 8 and all has been going well this week. But today when i try and open the files, it quickley opens them then closes them immediatly. They open fine in safari and firefox, so i am totally confused. Any ideas

  • Quicktime to clips

    I'm using FCPro. I was given several long Quicktime files that have to be cut up into clips and sorted out. I imported them into my project and started to mark them and drag them back into the bin area. It works great but I'm having trouble re-naming