|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| WAS Bash Installation Script |
| Iniciado por guest, 12,mar. 2018 21:53 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 12,marzo 2018 - 21:53 |
This is the bash script I wrote to install HFSQL and the WAS on Debian 8. I would appreciate any suggestions to make it better or to remove any unnecessary parts.
#!/bin/bash # Donald Montaine 2018 - Released to Public Domain
# Tested on Debian 8 - 64 bit # upload this script and these four files to the same directory # manta_install64, mantainstall.zip # webdev_install_test64, WEBDEV_Install.zip # login and cd to the directory then # become an administrator using su or sudo # chmod 777 *64 # chmod 777 ./WASInstall.sh # to run this script ./WASInstall.sh
# get all updated packages and then install packages required by WAS apt update apt-get -y dist-upgrade apt-get -y install vsftpd libqtcore4 libqtgui4 apache2 zlib1g-dev sudo
# install webmin wget http://prdownloads.sourceforge.net/webadmin/webmin_1.870_all.deb dpkg -i webmin_1.870_all.deb apt-get -y -f install
# set up vsftpd cp /etc/vsftpd.conf /etc/vsftpd.conf.bak sed 's/#write_enable/write_enable/' /etc/vsftpd.conf > /etc/vsftpd.tmp mv /etc/vsftpd.tmp /etc/vsftpd.conf sed 's/#local_umask=022/local_umask=002/' /etc/vsftpd.conf > /etc/vsftpd.tmp mv /etc/vsftpd.tmp /etc/vsftpd.conf rm /etc/vsftpd.tmp
# run the WAS installer twice # Must be in same directory as this script ./webdev_install_test64 ./webdev_install_test64
# create wbuser account echo "Enter password for wbuser" adduser wbuser usermod -a -G webdevadmin wbuser usermod -a -G wbuser www-data usermod -a -G webdevadmin www-data usermod -a -G root www-data
# create directories and set permissions for wbuser mkdir /home/wbuser/data mkdir /home/wbuser/site mkdir /home/wbuser/webserviceREST mkdir /home/wbuser/webserviceSOAP mkdir /home/wbuser/ftp_webdev chgrp webdevadmin /home/wbuser/data chgrp webdevadmin /home/wbuser/site chgrp webdevadmin /home/wbuser/webserviceREST chgrp webdevadmin /home/wbuser/webserviceSOAP chgrp webdevadmin /home/wbuser/ftp_webdev chmod ug+rwx /home/wbuser/data chmod ug+rwx /home/wbuser/site chmod ug+rwx /home/wbuser/webserviceREST chmod ug+rwx /home/wbuser/webserviceSOAP chmod ug+rwx /home/wbuser/ftp_webdev
# Active apache modules * set WEBDEV22 to autostart ln -s /etc/apache2/mods-available/actions.load /etc/apache2/mods-enabled/actions.load ln -s /etc/apache2/mods-available/actions.conf /etc/apache2/mods-enabled/actions.conf ln -s /etc/apache2/mods-available/cgi.load /etc/apache2/mods-enabled/cgi.load update-rc.d WEBDEV22 defaults 91s
# Install the database server # Must be in same directory as this script ./manta_install64
# Done echo "Completed" echo |
| |
| |
| | | |
|
| | |
| |
| Publicado el 12,marzo 2018 - 23:20 |
:spos: Donald
:hot:
Cheers King |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|