LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   php/shell script to install mysql,apache and php automatically (http://www.linuxquestions.org/questions/linux-general-1/php-shell-script-to-install-mysql-apache-and-php-automatically-557363/)

stranger_6_7 05-29-2007 02:09 AM

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.

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.

-twantrd

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:07 AM.