Personal Web Sharing Hangs on Startup - Apache never installed?

Hello.
When clicking start in the Sharing System Pref for Personal Web Sharing nothing happens.
The checkbox dims and it forever says "Web Sharing starting up..."
I went to console to look at console.log and saw this each time I attempted to start up Web Sharing:
httpd: could not open document config file /System/Library/WebObjects/Adaptors/Apache/apache.conf
/usr/sbin/apachectl start: httpd could not be started
The interesting thing is, I have no directory /System/Library/WebObjects/
Is it possible that I never installed apache when I installed Tiger?
Powerbook G4 (15-inch FW800)   Mac OS X (10.4.6)  

Hi--
I haven't changed this file at all. I do use fink and
have installed many packages. Perhaps it messed
around with this file (although that seems unlikely)?
Look in your regular Apache config file. Look for an "Include" line for that file there:
<pre class="command">grep WebObjects /etc/httpd/httpd.conf</pre>If it's there, just edit that file to add a "#" to the beginning of that line:
<pre class="command">#Include /System/Library/WebObjects/Adaptors/Apache/apche.conf</pre>My guess is that something installed by Fink added that line: it's not in the default.
charlie

Similar Messages

  • Personal Web Sharing doesn't want to start. (Apache problem)

    I have accidently deleted apache folders from my iBook. Then I reinstalled the apache, but when I tried to start my Personal Web Sharing, it just won't start. It says "Web Sharing Starting Up", but it stays that way for ages. Any idea? It worked before (I mean before the accident). I dunno if it's got to do with the mySQL coz I reinstalled another version of mySQL.
    iMac   Mac OS X (10.4.4)  

    I am experiencing the same problem: going through the System Preferences (in OSX 10.4.10), to the Sharing pane, then the Services Tab, and clicking Start Personal Web Sharing only gives me "Starting Web Sharing..." and never actually starts it.
    I have tried the following solutions:
    • replaced httpd.conf files using both the httpd.conf.default file from the machine in error as well as from another Mac (adapting the usernames as appropriate)
    • replacing the entire /private/etc/httpd directory with the one from the other Mac, whose Web Server will start up
    • when starting it via Terminal, i get "fopen: no such file or directory" so I created it... no dice.
    Can anybody give me any more suggestions?
    If not, I do have AppleCare on it - think they might help?

  • Personal Web Sharing aka Apache Config

    I have turned on 'Personal Web Sharing' and created a fairly basic test web site in /Users/<user>/Sites that gets picked up readily and quickly by IE on computers on my LAN. However, trying to view the site locally has me confused. When I run Safari or Firefox and manually type in the URL ("http:/IP/~user"), it takes several minutes for each page to load, and Safari doesn't get any of the images that are included. If I select the link in the Sharing panel in System Preferences, the site is accessed almost instantly. The one difference I have noted is that, when typing the URL manually in to the browser, the IP address is changed to the computer name, e.g., "computer.local/~user", whereas when the link in System Preferences is used the URL uses the IP address, e.g., "192.168.0.10/~user". Any thoughts?
    Thanks.

    ShutterMonkey wrote:
    The one difference I have noted is that, when typing the URL manually in to the browser, the IP address is changed to the computer name, e.g., "computer.local/~user", whereas when the link in System Preferences is used the URL uses the IP address, e.g., "192.168.0.10/~user". Any thoughts?
    I bet when you type in the URL, you don't include the trailing slash, just like you've typed it here. If you don't include the trailing slash, your Apache will basically "redirect" back to itself and include the trailing slash. It appears that if you haven't set up a server name in your Apache config file, then it must "redirect" back to the Bonjour name (the ".local" one).
    When you click on the link in the Sys Prefs, they've included the slash, so the "redirect" doesn't happen, hence the IP address stays.
    charlie

  • Unable to start up Personal Web Sharing (OS X 10.3.9)

    I have been trying to start up Personal Web Sharing since yesterday. It keeps saying "Web Sharing starting up...", but nothing ever happens.
    Actually, what I want to do is to set up a test server environment (not a real server for everyone on the web to access) to learn PHP, MySQL and XOOPS. I bought Teach Yourself PHP, MySQL and Apache by Julie C. Meloni (Sams Publishing) and installed MySQL 5.0.22 and PHP 5.1.4 following the instructions on the book. But I was not able to see anything when I entered http://localhost/phpinfo.php on FireFox. (The book tells me to create a simple script called phpinfo.php and save it to /Library/WebServer/Documents.)
    I thought the problem might be that I didn't have Personal Web Sharing on, so I went to System Preferences' Sharing panel to start it up. But it just hangs in starting mode... never starts...
    I tried Charles's suggestion to Harvey ( http://discussions.apple.com/thread.jspa?messageID=680762&#680762 ). The /usr/sbin/apachectl configtest command returns the following result:
    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)
    I'm wondering if PHP 5.x does not support Panther, but php.net doesn't seem to say so... (I downloaded PHP 4.4.4, but haven't figured out how to use it to replace PHP 5.1.4...) Or maybe it's because I'm connecting to the web via an open network (at a cafe)?
    Any suggestions will be much appreciated!
    powerbook g3 firewire   Mac OS X (10.3.9)   XLR8 G4 upgraded

    Thank you~ FifthWheel & Karl~!
    Even if you're on an open network, or on no network at all,
    Apache should start if it is properly configured (even with
    no network, the loopback address 'localhost' is still available).
    Thank you for the answer! This has been very confusing to me!
    I still haven't been able to find out whether PHP 5.1.4 is compatible with Panther's Apache or not (couldn't even find which version of Apache Panther has...) But a guy from another Mac forum (www.oikos.com.tw) seems to be very certain that Entropy's PHP 5.x package is not compatible with Panther. I guess I will just take what he said. I've already sent my complaint to Sams Publishing.
    I found "Building and Installing Apache 2.0.54 and PHP 5.0.4 on Mac OS X 10.3.8" on phpmac.com. But it seems quite risky for someone who does not have unix knowledge like me. So I guess what I should do is to find out how to remove the PHP 5.1.4 I installed and install PHP 4.x instead.
    Still seeking for a solution... I guess I should start learning Unix too...

  • Apache2 & personal web sharing

    I have installed apache 2.2.8 and on http://127.0.0.1/ and http://localhost/ the browser is serving /usr/local/apache2/htdocs/index.html but:
    1. personal web sharing just hangs waiting when I click Turn On PWS
    2. http://127.0.0.1/~macuser/ does not bring up an index.html I placed there (in /Users/macuser/Sites/ )
    I am not sure what did I do wrong, as I am not a code guy and new to this
    I run the whole compile and install process several times because it did not work and in the process I had removed the default apache 1.3 that was installed and working
    It also seems like my system startup time is significantly longer than before the apache2 installation.
    when I run sudo /usr/local/apache2/bin/apachectl start in terminal it says "already running" although sys pref would not show personal web sharing is on
    I am not sure how is this all related but all I want is to be able to serve pages via apache from my Sites directory
    any ideas would should I check for?
    PPC 10.4.11
    Thanks

    is fairly easy to remedy this,
    Edit the httpd.conf which is in the apache2 directory you have created.
    Once open (i'd recommend BBedit but txt edit will do just make sure it doesn't save the file to rich text)
    search down the httpd.conf file untill you find ;
    # PidFile: The file in which the server should record its process
    # identification number when it starts.
    and change it too
    #<IfModule !mpm_netware.c>
    PidFile /private/var/run/httpd.pid
    #</IfModule>
    I'm afraid you'll have to get a bit developer as the next section is in the terminal;
    open up the terminal and in a new shell Apple Key + N;
    first type; sudo
    Then Your password if your admin: your password
    Then : cd /usr/sbin/;
    Then: mv apachectl apachectl-1.3;
    Then : ln -s /apache2/bin/apachectl apachectl;
    You'll now be able to stop and start web serving from your system preference pane;
    You should also modify httpd.conf with the following (however this isn't essentila just to switch it on from system prefs)
    change user and group to:
    User www
    Group www
    You may also need to change owner of the httpd.conf in the terminal file to edit it.
    sudo chmod -R 777 ((drag your apache directory here))
    all done
    Message was edited by: purplepanda1

  • 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

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

  • Personal web sharing will not start up

    my personal web sharing will not start up.
    i tried to start it up at work on my laptop and i got a message that said anther computer on the network was using the same name. since then the personal web sharing can be clicked on but, never starts up.
    anyone have any ideas how i can fix this? i am trying to learn PHP and i need to have it working so i can sync up with apache.

    Try changing your computer's name. To do so go to the Sharing preference pane and change the computer's name to something else. Try restarting web sharing after this...

  • Personal web sharing will not start

    my personal web sharing will not start up.
    i tried to start it up at work on my laptop and i got a message that said anther computer on the network was using the same name. since then the personal web sharing can be clicked on but, never starts up.
    anyone have any ideas how i can fix this? i am trying to learn PHP and i need to have it working so i can sync up with apache.

    my personal web sharing will not start up.
    i tried to start it up at work on my laptop and i got
    a message that said anther computer on the network
    was using the same name. since then the personal web
    sharing can be clicked on but, never starts up.
    anyone have any ideas how i can fix this? i am trying
    to learn PHP and i need to have it working so i can
    sync up with apache.
    The solution to your problem is most likely contained within your question.
    You'll need to locate the machine on your network that has the same name as yours and change its name... or you'll need to rename your computer to something else.

  • Personal Web Sharing on 10.4.8

    I have read other topics about this, but couldn't find any that help me.
    My problem is this - when I click on Start (for Personal Web Sharing) in the Preferences app, the service never starts. When I open terminal and enter -
    cd /etc/httpd/
    ls -l httpd.conf
    I get -
    -rw-r--r-- 1 root wheel 38414 Nov 23 09:27 httpd.conf
    When I enter apachectl start, I get this -
    fopen: Permission denied
    httpd: could not open error log file /private/var/log/httpd/error_log.
    /usr/sbin/apachectl start: httpd could not be started
    When I look at my account in PREFERENCES : Accounts, I see it as an Admin account.
    What the heck is wrong? Any ideas?
    Murray

    And, by the way, you're absolutely right about the
    two versions of PHP - I upgraded to 5.0x, and that's
    when the trouble started!
    I made that exact mistake and that's exactly what happened to me too.
    The following lines, which are found in the file /etc/httpd/httpd.conf had to be uncommented to make PHP work:
    LoadModule php4_module libexec/httpd/libphp4.so
    AddModule mod_php4.c
    I don't know if recommenting them (putting a #) in front of them) will work for you; when I installed PHP 5 on top of PHP 4 I eventually wound up having to reinstall the OS ( I mean, there's a reason I don't tamper around with it much).
    I may some time soon try upgrading, but for now I'll hang with PHP 4; it works.
    SJK

  • Personal Web Sharing doesn't start up

    A while ago I shut off the "Personal Web Sharing" tool simply because I did not need it. However at this moment I'm trying to restart it (which I assume is the Apache web service). So I go to System Preferences -> Sharing, and tick the "Personal Web Sharing" box. However, when I do, all I get is the message "Web sharing is starting up..." It stalls there and doesn't go any further.
    I haven't made any changes to Apache, but I have attempted to install PHP on my system using the package on http://www.entropy.ch/software/macosx/ -- it failed, giving me a generic error message.
    Is there a solution to this problem? Does it have anything to do with the messed-up PHP installation?

    I am experiencing the same problem: going through the System Preferences (in OSX 10.4.10), to the Sharing pane, then the Services Tab, and clicking Start Personal Web Sharing only gives me "Starting Web Sharing..." and never actually starts it.
    I have tried the following solutions:
    • replaced httpd.conf files using both the httpd.conf.default file from the machine in error as well as from another Mac (adapting the usernames as appropriate)
    • replacing the entire /private/etc/httpd directory with the one from the other Mac, whose Web Server will start up
    • when starting it via Terminal, i get "fopen: no such file or directory" so I created it... no dice.
    Can anybody give me any more suggestions?
    If not, I do have AppleCare on it - think they might help?

  • PERSONAL WEB SHARING ON iMAC G5 WILL NOT START

    hello:
    i am hoping someone would be able to help me on this issue. i attempted to start the Personal Web Sharing service on my computer (iMAC G5 with MAC OS 10.4) from System Preferences > Sharing. however, after i highlight Personal Web Sharing on the list of services and click the Start button, the message changes to "web sharing starting up..." and simply remains that way (i've waited for a long time). it does not change to "web sharing on".
    am i doing something wrong? is it possible that my Apache installation has been compromised? my goal is to be able to use my computer to create and run .php web pages.
    any help / suggestions are greatly appreciated
    iMac G5   Mac OS X (10.4.8)  

    Sorry, this still doesn't seem to be working.
    Actually, it's me steering you wrong. It's been a while since I fooled around with the Entropy PHP installation and it looks like he's changed it.
    He used to put the configuration stuff for PHP at the bottom of the main Apache config file, but now he's putting it in that separate file in the httpd users directory. That's why moving the default Apache configuration file into place didn't help.
    You have two choices: one is to just forget about the PHP5 stuff for now and go with Apple's default PHP install. The other is to try to get PHP5 up and running.
    The first option is very easy: just run this command:
    <pre class="command">mv private/etc/httpd/users/+entropy-php.conf ~/Desktop</pre>That will put the offending file on the desktop. Now try starting the web server. Most likely, PHP won't work yet, but Apache should start. In order to use the default PHP5, you need to make some changes to the httpd.conf file. You can use pico in the Terminal. It's pretty simple and the key commands are printed at the bottom. Where you see the up arrow listed, that means to use the "control" key, i.e., "control"-x to exit. You need to use sudo, though so you have root privileges:
    <pre class="command">sudo pico /etc/httpd/httpd.conf</pre>Search ("control"-w) for "php". The first line you'll see is this:
    <pre class="command">#LoadModule php4_module libexec/httpd/libphp4.so</pre>Uncomment it by removing the "#" from the start of the line. Search again until you find this line:
    <pre>#AddModule mod_php4.c</pre>Again, remove the "#". Now search again until you find these lines:
    <pre class="command"><IfModule mod_php4.c>
    # If php is turned on, we repsect .php and .phps files.
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    # Since most users will want index.php to work we
    # also automatically enable index.php
    <IfModule mod_dir.c>
    DirectoryIndex index.html index.php
    </IfModule>
    </IfModule></pre>Just verify that they look like these. If they don't, copy and paste your corresponding lines into a reply. Now stop and restart the web server and see if PHP pages will work. You should be using OS X's built-in 4.x version.
    If, on the other hand, you'd rather use the Entropy PHP5 installation, post back and tell me and we'll see if we can figure out what's up with that...
    charlie

  • Unable to start/stop Personal Web Sharing

    I do some web development, so I tried making the necessary changes to run PHP files via localhost. I followed various online articles by making some changes to the httpd.conf file, and then downloading MySQL and a later version of PHP (5.0). Since installing yesterday afternoon, I've been unable to start or stop Personal Web Sharing. Any ideas?
    Thank you.
    Nathan

    Are you sure you got the proper version of each for your platform? Depending on which version you dowloaded it may not have been a universal bianary and you might be running ppc instead of x86 or vice versa. I wouldnt expect you to have broken apache if you made only the modifications you noted in your inital post - but perhaps if it was trying to load the php module and it was the worng platform it might through that error and prevent it fromt starting.. but normally whn php fails it jsut throws a warning and continues without it loaded (at least with Marc's automatic configuration). But thats the only thing i can think of.
    So next steps:
    1.) Verify you are running the x86/PPC (or Universal) versions of PHP and MySQL (MySQL shouldnt really matter but since its one of the majorchanges before apache broke we'll look at it as well).
    2.) on the command line run this command and post the output back here:
    <pre style="scrolling: auto; width: 90%;">httpd -V</pre>
    3.) lets restore your old config:
    <pre style="scrolling: auto; width: 90%;">
    sudo cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.121906.bak
    sudo cp /etc/httpd/httpd.conf.default /etc/httpd/httpd.conf
    sudo apachectl start</pre>
    And then post the ouput of the start command back here.

  • Hosting multiple web sites usinf personal web sharing

    would someone be kind enough to give me a guide to hosting MULTIPLE web sites on a Mac Mini
    i have broadband connected to my router
    my mac connects to my router with an ip address of 192.168.1.150
    I have registered the domain names and want to forward them to the computer hosting the web sites
    how can I get each domain name to point to each different web site on my computer

    This is a topic you should post to an Apache discussion group being as though Apple's personal web sharing software is Apache.

  • Personal Web Sharing - Don't have permission to access...

    Hi,
    I'm new here so I'm not sure the best place to post my question.
    I posted the question below at the tail end of this discussion:
    http://discussions.apple.com/thread.jspa?threadID=663879&tstart=0
    However, that thread is marked "answered" and my question isn't, so I am re-posting here. Please read the above thread so that you'll know what I already know and have done.
    My question (if you haven't read it at the bottom of that thread):
    I am trying to set up personal web sharing, I have followed all of the above discussion, including Port Forwarding from my router. (I had actually done all of this before searching here, getting instructions from "The Missing Manual: Panther Edition" book.)
    The problem is: when I try to access my shared web pages, I get a "You don't have permission to access..." message.
    I have changed permissions on all files in the (user)/Sites folder (the one I'm sharing) so that "Others" can "Read Only" but still I cannot access these pages from another computer via the internet. I can access them fine from my home computer.
    I know everything is set up correctly and connecting because the remote browser correctly retrieves my computer name (where the shared files are) and port number. It just won't let me in.
    Any help appreciated.
    thanks,
    Eric
    G4 Mac OS X (10.3.9)

    braintrino,
    I'm not sure how to make sense of your statements.
    The situation with FileVault is conceptually simple. The contents of a FileVault user's home directory are on an encrypted disk image. When the user logs in from the login window, that image is mounted (using their home directory path as the mount point); when they log out, the image is unmounted. Note that logging in via ssh doesn't cause the system to mount their home directory...
    So, when a user is logged in, Apache can (if normal UNIX permissions permit it) see their ~Sites folder and serve pages. When the user is logged out, Apache can't.
    I suppose that a FileVault user might be able to get around this, if they don't mind leaving their ~Sites folder unencrypted... They could create a folder outside of their home directory (e.g., /Users/Shared/braintrinos_site/) and put their Web pages there; log into their account and replace their ~Sites folder with a symbolic link to their Web page directory; log out, then ssh in and add a symbolic link from their home directory to their Web page directory. Then, whether they're logged in or not, Apache should be able to see a symbolic link from ~Sites to the unencrypted Web page directory.
    Powerbook G4 1GHz   Mac OS X (10.3.9)  

Maybe you are looking for