Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

IdeoREX

macrumors newbie
Original poster
Oct 30, 2012
3
0
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
 
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
 
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.
 
I use MAMP (non Pro) on my iBook G4 and works very well.

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

Yes, it's a full webserver. You have to change some security options, add MySQL root password, for example...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.