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)  

Similar Messages

  • Web Sharing Start and Stop routines...

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

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

  • Web sharing starts but will not turn off

    I have enabled web sharing and been running successfully for a long time, recently upgraded to Lion.
    The problem I have now is that I can turn Apache on through the Web Sharing prefs but it will not turn off, technically that not true as the instance is killed off but something is restarting the httpd processes (new pid's). As far as the Pref pane is concerned Apache is off (un checked box), though in reality, a new instance is running.
    The only way to turn it off is by su apachectl stop.
    Any ideas?
    Thanks,
    Adam.

    Have you tried to hold down the sleep and home keys for about 20 seconds or so, until you see a silver apple. See if you can get it to reboot.

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

  • 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' is taking an indefinite amount of time to start

    Hi, for some reason, 'Personal Web Sharing' is taking an indefinite amount of time to startup. This started happening after I installed PHP 5. Any idea on how I can fix this/debug this?

    What do you mean by indefinite exactly?
    Have you repaired permissions since installing PHP5?
    Indefinite, as it forever stays as 'Web Sharing starting up...'. Yes, I have repaired perms.

  • Personal Web Sharing in Sharing Preferences won't start up

    i click the Start button and it just stays, "Web Sharing starting up..."
    whats the deal?

    that would make sense. i am trying to set up coldfusion/apache/mysql so its very well one of those messed up something on my computer.
    here's what the console is saying under httpd:
    [Wed Jul 5 23:44:08 2006] [warn] mod_bonjour: Skipping user 'brad' - cannot read index file '/Users/brad/Sites/index.html'.
    [Wed Jul 5 23:44:08 2006] [warn] Loaded DSO /Applications/ColdFusionMX7/runtime/lib/wsconfig/1/mod_jrun.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
    Processing config directory: /private/etc/httpd/users/*.conf
    Processing config file: /private/etc/httpd/users/+entropy-php.conf
    [Wed Jul 5 23:44:08 2006] [warn] module mod_php5.c is already added, skipping
    [Wed Jul 5 23:44:08 2006] [notice] jrApache[init] JRun 4.0 (Build 92909) Apache module - 02/18/05 07:21:35
    [Wed Jul 5 23:44:08 2006] [notice] Apache/1.3.33 (Darwin) PHP/5.1.4 JRun/4.0 configured -- resuming normal operations
    [Wed Jul 5 23:44:08 2006] [notice] Accept mutex: flock (Default: flock)
    [Wed Jul 5 23:44:40 2006] [error] [client 127.0.0.1] File does not exist: /Library/WebServer/Documents/favicon.ico
    [Wed Jul 5 23:44:47 2006] [notice] caught SIGTERM, shutting down
    anyone know what this means?

  • Web Sharing wont start up

    System Preferences/sharing/service - Personal Web Sharing
    I can get it to work, I click on Personal Web sharing, and all it says is "Web sharing starting up..." and nothing more happens.
    If I restart the Mac and check the Sharing out again, it just onchecked again.
    Why will it not start up?

    This error occurs because you already have a service
    running on port 80, possibly a virtual server,
    configd or ssl service. Look for two instances of the
    "Listen 80" directive in your httpd.conf file. Any
    other applications you have installed?
    What happens when you say
    sudo
    apachectl configtest
    I'm not sure where I find this httpd.conf document
    I did due some chances to some thing so sett up SSH tunnels and VNC screen-sharing software to use my Mac from any PC over the Internet (and LAN).
    I fallowed these instruction from this website howto.diveintmark.org/remote-mac/
    there is a video that I fallowed on this side, this is a direct link The first short part shows how to set up the Mac, I'm not sure if that is the case, if it is, than I have the option too go back to the past, I have my Macs "System" files and "Library" files backed up with Apples BackUp
    MacBook Pro "17 Mac OS X (10.4.9) 2 GB RAM - 160 GB

  • 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

  • Can't turn on Web Sharing on Mac OS 10.7.5

    I'm not able to turn on Web Sharing on my Mac Mini, running 10.7.5.  When I click the checkbox, it stays Web Sharing: starting very briefly, then immediately back to Off.
    I keep reading that Apache comes preinstalled on Mac OS 10.7.5, but I'm not sure it's installed on my Mac?  A search for 'apache' doesn't show the app, and typing apache -v in Terminal results in "command not found".
    Any pointers would be appreciated!

    I have the same problem, exept when i click start, it says its not running, but the web service is running because i can access the sites through http://localhost/.
    I've tried replacing the httpd.conf with the one in /original, and i've also tried renaming the httpd.conf.default, non of these things worked (both of these thing made the check box active, but when you turn it off, you can turn it back on)
    please please help  

  • Use Personal Web Sharing to Serve an External Drive?

    I have many files on one of my external drives that I need to serve up via Personal Web Sharing. While http://localhost/~username works great, I can't figure out how to share that external drive.
    I have tried creating both a Finder alias and an actual symlink to the drive within my ~/Sites/ directory but neither work.
    Is this possible?

    What do you mean by indefinite exactly?
    Have you repaired permissions since installing PHP5?
    Indefinite, as it forever stays as 'Web Sharing starting up...'. Yes, I have repaired perms.

  • OT: Web Sharing (Apache) on the Mac

    I am wanting to set my OSX 10.4.8 G4 up with Web Sharing and
    PHP.
    When I open the Preferences, I can see that Personal Web
    Sharing is not
    enabled, so I click on "Start". The button becomes disabled,
    and I see "Web
    Sharing starting up...", and that's all I get. It never
    starts.
    Where would I go to even begin troubleshooting this?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================

    Nope - doesn't work from the Mac UI.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "crash" <[email protected]> wrote in message
    news:[email protected]...
    > Butting in here,and at home, so don't have access to
    other parts of the
    > thread, but ...
    >
    > Can you not search for the http.conf file? within your
    Apache
    > installation?
    >
    > Thanks,
    >
    > Jon
    >
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:[email protected]...
    >> OK - I have gotten a reply on the Apple boards -
    >> ----------------
    >> I suspect your Apache is confused at two versions of
    PHP. You may need to
    >> comment out the lines:
    >>
    >> LoadModule php_module
    >> and
    >> AddModule mod_php4.c
    >>
    >> from the file
    >>
    >> /private/etc/httpd/httpd.conf
    >> --------------------
    >>
    >> How do I go about editing these things? I can't find
    them on my system!
    >> Where IS /private/etc?
    >>
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Murray *ACE*"
    <[email protected]> wrote in message
    >> news:[email protected]...
    >> > *And* probably wore a painful thong thingy to
    boot.
    >> >
    >> > --
    >> > Murray --- ICQ 71997575
    >> > Adobe Community Expert
    >> > (If you *MUST* email me, don't LAUGH when you
    do so!)
    >> > ==================
    >> >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >> >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >> >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >> >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> > ==================
    >> >
    >> >
    >> > "Steve" <[email protected]> wrote in message
    >> >
    news:[email protected]...
    >> >> On Thu, 23 Nov 2006 13:34:51 -0500, "Murray
    *ACE*"
    >> >> <[email protected]>
    wrote:
    >> >>
    >> >>>"sudo" indeed....
    >> >>
    >> >> I typed sumo by mistake first time and it
    picked me up and threw me
    >> >> out of the office!
    >> >> --
    >> >> Steve
    >> >> steve at flyingtigerwebdesign dot com
    >> >
    >> >
    >>
    >>
    >
    >

  • 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

  • Personal Web Sharing wont work!

    Im trying to get personal websharing working.
    I went into preferences/sharing then clicked on the Personal Web Sharing option, then click start.
    Nothing is happening except that it says "Web Sharing starting up" ive been waiting 10 minutes and still nothing has happend.

    Have you tried loading the URL ?

Maybe you are looking for

  • HP G62 Laptop Windows 7

    I have managed to turn  my desktop sideways - how do I get it back to horizontal? This question was solved. View Solution.

  • Group folders, in the layers palette question

    Love groups, but i feel like i'm always closing them, hitting the little triangle to open, but more importantly -  (before i close a layered doc,) to close / minimise them. I wondered if there's a quick way to close all open groups, alt clicking on o

  • Does Logic 8.0.2 work with OS 10.6.7?

    I need to upgrade my Sibelius 3.1.3 to version 7 - I currently have OS 10.4.11 but the minimum requirement is OS 10.6.7. I've just put in 8GB RAM as a start. If I get 10.6.7 I'm not sure whether Logic 8.0.2 will still work. Also wondering which other

  • Quick fade in effect for my some elements in my swf

    is there a quick fade in effect available?

  • 8.0.2 update completed but new options not showing up

    I've downloaded the Mac 8.0.2 update and successfully installed it but the changes don't seem to be taking effect. When trying to convert my pages with Flash content I'm not able to access any options to do so. They don't appear, as if I hadn't insta