Automate Installation of Web Server in openSUSE 10.2 (installs Apache, MySQL, and PHP) – bash script

24 06 2007

We have a special treat for anyone who manages or installs multiple machines running Linux, Apache, Mysql, and PHP. This would also be known as the LAMP stack. I got sick of having to install all that by hand every time I was putting another LAMP server together. What I have done is put together a small bash script that will automate the process of installing Apache, MySQL, and PHP. It also adds them to the init scripts, and actually starts up the MySQL and Apache services. All you have to do is set up your MySQL root password, and you are set to go. This script is available here for anyone who may find it useful. It should be easily modifiable to install perl or python for users of those tools.

Download the script here. Extract with command: “tar -jxvf install-lamp-stack.sh.tar.bz2″

Generally, when installing a new machine, I actually use this script I put together to automate the insertion of YAST Installation Sources as well. Run the Installation Sources script first, and then the LAMP stack script, and you’ll be 90% of the way to having yourself a web server.

Advertisements

Actions

Information

5 responses

25 06 2007
Geoff
25 06 2007
Ian

Xampp is built for development purposes, not for production I believe.

26 06 2007
Eerde

This works very well, used it myself earlier this week.

5 07 2007
tovorinok

Hello

Great book. I just want to say what a fantastic thing you are doing! Good luck!

G’night

11 04 2008
linux user

Thanks for the script. I think it will come in very handy in the near future.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: