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
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.
thanks so much for useful info
|All times are GMT -5. The time now is 06:52 PM.|