Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-29-2007, 02:09 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 24

Rep: Reputation: 15
php/shell script to install mysql,apache and php automatically


I have developed an application and provided a tar of it to the users for installing. As the application requires mysql, apache and php as pre requisites, i cannot provide tar files to an end user who has no understanding of how to install and configure these packages of apache ,mysql and php. Is there any way i can write a php or shell script that by just running it will install all the three i.e apache,mysql and php automatically.

Thanks for the help
Old 05-29-2007, 12:56 PM   #2
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
That shouldn't be too hard. I would write it in a shell script to do something like this:

[On target machine, when the end user runs the script it will:]
1. creates a temp directory
2. rsyncs the source code from the host machine that has apache, php, and mysql, and all dependencies to the temp directory
3. compiles all the apps
4. check for exit codes during compilation time. If there is a problem, notify you via email so you can investigate.

Something along those lines.

Old 08-11-2009, 02:07 AM   #3
LQ Newbie
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
thanks so much for useful info
script install


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running shell script with PHP in Apache mr_scary Programming 2 10-20-2006 04:17 PM
LXer: Title: PHP/MySQL Classifieds Script AddAsset1.php Script Insertion LXer Syndicated Linux News 0 07-02-2006 06:21 PM
Apache, PHP, MySQL Install SpiderIRE Linux - Software 3 10-03-2005 04:50 AM
PHP Shell Script (with MySql) Tony Empire Programming 1 09-20-2005 09:59 AM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration