Newbie trying to set up G4 OSX 10.3.9 with Apache/php/MySQL

Discussion in 'Mac OS X Server, Xserve, and Networking' started by CodeNewb, Mar 9, 2009.

  1. CodeNewb macrumors newbie

    Joined:
    Mar 9, 2009
    #1
    I'm teaching myself html, css, php, and MySQL from books), and am nearing the end of the html/css book..

    It suddenly dawned on me that using a hosted server to learn to web program would be a total PITA... So I want to use my G4 for this.. I have an extra hard drive in it, that is mostly empty...

    This is my main computer.. I do my web surfing, music, etc. on this thing..

    Someone recommended that I could download everything I need in one self installing package called XAMPP... Which sounded wondeful, but when I went to the website it said that it was for OSX 10.4 and above..

    I'm running 10.3.. So I thought, well maybe I can get a copy of 10.4 on ebay on the cheap.. because I'd like to install OSX on my G3 iBook anyways (running OS9 still).. But 'YIKES!' .. It costs $180-220 for a copy of tiger.. I don't understand this as leopard is $129.. but it is what it is..

    In either case, I'm out of work and barely getting by, so spending that kind of money is a non starter..

    Which is why I'm here.. How can I get these apps on my G4's spare hard drive using the existing OS I'm running?

    Before I run around and start installing things without knowing where to get them, what they are, what caveats, etc.. I thought I'd ask here first..

    According to the book, I need to have apache, and the latest versions of php and MySQL

    Be gentle..LOL I'm venturing into uncharted waters here... (for me) :)
     
  2. Consultant macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #2
    Google: osx web server

    Gets http://oreilly.com/pub/ct/49
     
  3. CodeNewb thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #3
    The book (Head first series), said that to find out if I have apache installed, type in http://localhost in an open browser window.. When I do, I get "server not found" error page..

    Doesn't this mean there is no server on the computer?
     
  4. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #4
    That's not a good way to tell. If Apache is listening on 8888, then according to your book, it isn't running, but very well could be.

    Using Terminal, you can:

    ps -auxw | grep httpd

    To see if the daemon is running.
     
  5. CodeNewb thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #5
    Thank You, thank you, thank you!!!

    In the first couple paragraphs of that tutorial, the problem was obvious.. It just needed to be turned on! You'd hink the book (also an oreilly publication) would have mentioned this...LOL

    Gonna work through the whole tutorial...

    Question.. does turning on 'personal web sharing' in any way increase vulnerability to my system as it pertains to bad guys out on the net? I'm using a DSL switch with build in firewall.. does 'web sharing' disable this or reduce it's effectiveness in any way?
     
  6. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #6
    Well, any open port can decrease security, but as long as you don't open port 80 to the outside world, you should be okay.
     
  7. CodeNewb thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #7
    Where all should I look to make sure this port is not enabled? I remember seeing something about port setting in Mail.. Is there a global setting somewhere? Do I need to go into every browser and what not, and check settings? Is any setting in Mail an issue?
     
  8. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #8
    No it's not associated with Mail. This would be on your router. If you've never configured port forwarding on your router, then you should be fine.
     
  9. CodeNewb thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #9
    From the tutorial:
    By default, the Apache server has been configured to use your Mac OS X "short" user name. (You can find your short user name in the Users preference panel. Click on "Edit User".) If your short user name is "morbus", for example, you can access your personal web site by opening any web browser on the local network and typing http://127.0.0.1/~morbus/. Don't forget that last forward slash!


    Where is this users preference panel? I can't find it... It doesn't seem to be part of te system preferences, and a search for "users preference" comes up empty...
     
  10. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #10
    Those would be user accounts. I think you better get a newer/better book. That thing seems to have all sorts of errors.
     
  11. CodeNewb thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #11
    That was from the on line tutorial that consultant posted...

    In user accounts, I can not find the "short name"...I'm assuming by"user accounts" you mean 'accounts' in the main system preferences?..

    Yat Da Hey?
     
  12. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #12
    Yes, and if edit the user, there should be a shortname or login)
     
  13. CodeNewb thread starter macrumors newbie

    Joined:
    Mar 9, 2009
    #13
    nevermind.. I found it.. It's not really 'short'.. just the space removed between the first and second word...
     
  14. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #14
    Okay, yeah OS X calls it a shortname for legacy purposes.
     

Share This Page