LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

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


Hi,

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
stranger.
 
Old 05-29-2007, 12:56 PM   #2
twantrd
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.

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:45 AM.

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