Welcome! Log In Create A New Profile

Advanced

[WB23] Updated WAS install script for Debian 9 based distros

Posted by donaldmontaine 
[WB23] Updated WAS install script for Debian 9 based distros
October 23, 2018 09:40PM
[WB 23] (October 22, 2018) Here is the updated script to install a WebDev 23 Application server on a Debian 9 (Stretch) based system. I used the version 15 Turnkey Linux Core image to test. Finally someone on the French forum noticed that there was as setting charge required in /lib/systemd/system/apache2.service (warning, it is possible that Apache updates could overwrite this modification). I have added this change to the script and it now works with the current Debian 9 release.

-----------------------------------------------------------------------------------

#!/bin/bash
# Donald Montaine 2018 - Released to Public Domain

# Tested on Turnkey Linux Core (Debian Stretch) - 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 issue
# become an administrator using su or sudo
clear
chmod 777 *64

# 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 [prdownloads.sourceforge.net]
dpkg -i webmin_1.870_all.deb
apt-get -y -f install

# set up vsftpd
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

# modify /lib/systemd/system/apache2.service
sed 's/PrivateTmp=true/#PrivateTmp=true/' /lib/systemd/system/apache2.service > /lib/systemd/system/apache2.service.tmp
mv /lib/systemd/system/apache2.service.tmp /lib/systemd/system/apache2.service

# run the WAS installer twice
# Must be in same directory as this script
./webdev_install_test64
./webdev_install_test64

# create wbuser account
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

# Install the database server
# Must be in same directory as this script
./manta_install64

# Done
echo "Completed"
echo
Re: [WB23] Updated WAS install script for Debian 9 based distros
October 23, 2018 11:59PM
Cool
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: