Is there a way to set up and pre-configure a lamp environment within a bash script without user prompting by dpkg and present data like mysql or root user password and such kinds of things?
Is there a way to set up and pre-configure a lamp environment within a bash script without user prompting by dpkg and present data like mysql or root user password and such kinds of things?
Yes but you need to create the installation script yourself.
Example that installs Apache 2, PHP 5, MySQL, the Java JDK, NetBeans, and C++. Where PASSWORD needs to be your MySQL password (found that here):
If there is more in this script than you need (like C++, netbeans) just remove the apt-get lines. Also might need to change version numbers to the latest stable versions.