OpenSUSE Linux Rants

OpenSUSE Linux Tips, tricks, how-tos, opinions, and news

My Resume  -  My LinkedIn Profile

June 21, 2007

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

by @ 11:05 am. Filed under bash, freebies, SUSE Tips & Tricks

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.

3 Responses to “Automate Installation of Web Server in openSUSE 10.2 (installs Apache, MySQL, and PHP) – bash script”

  1. Clint Savage Says:

    So why aren’t you building an rpm and using rug/yum to install it instead of making someone extract your tool? Also, I believe you could have left the -j option off the extraction. The new version of tar detects compressed versions automagically.

  2. Clint Savage Says:

    Oh, and YAST sucks! Use rug! (yes, I know you have to use yast for many things, it still sucks!)

  3. Scott Morris Says:

    Hey, Clint, what’s up, man?! 🙂 Yep, I get that a lot from people. I guess it just doesn’t seem to bother me like it does many others. Er maybe I’m just a n00b. Either way, have a good one, and thanks for stopping by.

OpenSUSE Linux Rants
Official OpenSUSE Linux Site

internal links:

categories:

SUSE Resources

search blog:

archives:

April 2018
S M T W T F S
« Feb    
1234567
891011121314
15161718192021
22232425262728
2930  

66 queries. 1.478 seconds