-   Linux - General (
-   -   php/shell script to install mysql,apache and php automatically (

stranger_6_7 05-29-2007 02:09 AM

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

twantrd 05-29-2007 12:56 PM

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.


mcjohn87 08-11-2009 02:07 AM

thanks so much for useful info
script install

All times are GMT -5. The time now is 09:12 PM.