Web Server from a PowerBook G4

Discussion in 'PowerPC Macs' started by IdeoREX, Aug 22, 2013.

  1. IdeoREX macrumors newbie

    Joined:
    Oct 30, 2012
    #1
    Hello,
    So last year I went to university and upgraded computers from my Powerbook G4 (7 years of traveling my backpack, best 1.5k I've ever spent). Anyways, I want to make a web server from it. Is this possible and what's the best way to do it?

    I want to make a Django application so that means an apache server connected to a MySQL database. Could I use MAMP (I'm only used it for local testing)?

    Additional challenge is that I will leave the laptop at home while I'm at school, I can set it up, but I will need to remotely connect to it for minor alterations.

    Thanks
     
  2. cjbriare macrumors member

    cjbriare

    Joined:
    Nov 8, 2008
    Location:
    Las Vegas, NV
    #2
    From my experience, simply using OS X's built in Apache server should do you just fine, and forwarding some ports on your router as well.

    As far as remote access, SSH is good or you can use teamviewer.


    Never touched mysql so I cant help there. :l
     
  3. Wildy macrumors 6502

    Joined:
    Jan 25, 2011
    #3
    Do not use the built-in Apache server if you are exposing it to WAN, it is positively ancient and full of security holes. As soon as you put anything onto WAN it will get bombarded by automated attacks and if you're running old software, it will be compromised fairly soon.

    Grab a copy of Xcode and get Homebrew. Download and instal the following apps using Homebrew: Nginx (or Apache or Lighttpd - anything which supports WSGI), MariaDB (binary-compatible MySQL replacement) Python 2.7 and Django.

    SSH should be the only thing you need to use when administrating! If you have a static IP address then you can go ahead and open up port 80 (or whatever you choose) and forward it to your PowerBook. If your ISP disallows this (highly likely), you'll have to pick another port, or use an SSH tunnel to another server to keep a communication channel open. Feel free to PM me if you need a hand.
     
  4. robertosh macrumors 6502a

    robertosh

    Joined:
    Mar 2, 2011
    Location:
    Spain
    #4
    I use MAMP (non Pro) on my iBook G4 and works very well.
     
  5. IdeoREX thread starter macrumors newbie

    Joined:
    Oct 30, 2012
    #5
    Could I host a website on the WWW with MAMP? I've been using MAMP for local web development.

    Would it be possible to run MAMP on my mac at home and just let it run?

    Thanks
     
  6. mayuka macrumors 6502a

    mayuka

    Joined:
    Feb 15, 2009
    #6
    I'm using OpenBSD on my Mac mini G4 Server for this kind of purposes. If you don't need to run OS X software it is a great choice.
     
  7. robertosh macrumors 6502a

    robertosh

    Joined:
    Mar 2, 2011
    Location:
    Spain
    #7
    Yes, it's a full webserver. You have to change some security options, add MySQL root password, for example...
     

Share This Page