function Menu(){ echo "--------------------------------------------------" echo "Please choose to install the following optional modules." select i in "Apache" "MySQL" "PHP" do case $i in Apache) $MODULE=$H_FILES_DIR ApacheInstall ;; MySQL) $MODULE=$M_FILES_DIR MySQLInstall ;; PHP) $MODULE=$P_FILES_DIR PHPInstall ;; *) echo "FOUND NOTHING BY USING SUPPORTED ARGUMENT" ;; done }
function ApacheInstall(){ echo "The Apache Server wait install..." wget -c $H_URL/$H_FILES && tar -jxvf && cd &H_FILES_DIR && ./configure --prefix=$H_PREFIX if [ $? -eq 0 ];then make && make install echo "--------------------------------------------------" echo "$MODULE Server Installation succeed!" else echo "$MODULE Make or Make install ERROR, Please Check...." exit 0 fi }