PDA

View Full Version : [ubuntu] LAMPinstaller


Jasper91
November 12th, 2008, 12:26 PM
Hey everyone,

Because a lot of people I met are having a lot of trouble setting up a simple LAMP-server, I wrote a program (my first Linux-program btw ;)) that automaticly:
- Installs and configures Apache2
- Installs and configures vsFTPd (user has to set the correct ports only)
- Installs and configures PHP5 and MySQL
- Installs OpenSSH
- Configures network-settings (requests IP and gateway first)

I don't know about any of you is in need of it, but why keeping it just for myself ;)

File: www.jasperkouwenberg.com/LAMPinstaller
Source: www.jasperkouwenberg.com/LAMPinstaller.cpp

PS: Only Debian-based dist. are supported!

Cya,
Jasper

CrucifiedEgo
November 12th, 2008, 01:46 PM
Thanks for the contribution, but, two nitpicks:

1) Wouldn't this be better as a shell script? It seems like C++ for a bunch of system() calls is overkill.

2) I think that users doing the installation themselves tends to help them understand more about what they're doing and how it works. That's just MHO of course.

Jasper91
November 12th, 2008, 01:52 PM
1. It is 95% shell, but because of the network-settings (IP, gateway) I had to use a prog-language
2. Absolutely true! But this program is just for the (experienced) users who are trying to setup a LAMP-server in very little time

CrucifiedEgo
November 12th, 2008, 01:56 PM
Why not use read?

#!/bin/bash
echo -n "Testing: "
read -e VAR
echo "You entered:" $VAR