Welcome! Log In Create A New Profile

Advanced

[WB26] Script to Install WAS on Ubuntu Server 20.04

Posted by dmontaine 
[WB26] Script to Install WAS on Ubuntu Server 20.04
August 13, 2021 03:58AM
Is the deployment guide available in English. When I look at the installation directory, only the French version is provided. The documents I am looking for describe how to install and configure WAS on Windows and Linux servers. There are three French documents provided and no English documents.



Edited 4 time(s). Last edit at 09/04/2021 07:14AM by dmontaine.
Re: [WB26] WAS Deployment Guide in English
August 13, 2021 09:19PM
Hi,
Have you tried using Google translate?

It does a pretty good job nowadays

Regards,
Darren.
Aad
Re: [WB26] WAS Deployment Guide in English
August 14, 2021 03:19PM
Also the installer for 10 cnx application Server is not in the usual place (only v25).

Another thing is that the installer on French pcsoft site can be set to french, english or spanish but still a lot of text of Application Server is in french and also al loty of error messages are in french!

Come on PCSOFT!
Re: [WB26] Script to Install WAS on Ubuntu Server 20.04
August 16, 2021 07:23PM
Well I kept at it and figured out how to install the Web Application Server on Ubuntu Server.



Edited 6 time(s). Last edit at 09/04/2021 07:15AM by dmontaine.
Re: [WB26] Script to install WAS on Ubuntu Server 20.04
September 03, 2021 07:55PM
I created a VPS Ubuntu Server 20.04 instance at vultr.com. It was a High Frequency instances with 2 virtual CPUs costing $18 per month at their Seattle location. The following script installed the Web Application Server successfully,. (My test for "successful" is that the Precilia Winter example site deploys and displays without problems). Note: The script also installs the Webmin management software. The WDAdminWeb and WDAdminHF260 tools also work correctly.

Note: If your server will only have one web site you can add following
at the bottom of /etc/apache2/apache2.conf

#redirect from root to subdirectory
RedirectMatch ^/$ /WW_PRECILIA_WINTER_WEB/UK/

You may also need to specify a 404 error document
# redirect on 404 to subdirectory
ErrorDocument 404 /thesubdirectory/index.html

----- Web Application Server - Version 26 - Ubuntu 64 --------------

#!/bin/bash
# (c) Donald Montaine 2021 - Released under the Creative Commons CC BY-SA license

# Tested on Ubuntu Server 20.04, 18.04 and 21.04 - 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 where you uploaded the files
# become an administrator using su or sudo
clear
chmod 777 *64

# update and then install packages required by WAS
apt update
apt-get -y upgrade
apt-get -y install vsftpd libqt5gui5 apache2 libapache2-mod-fcgid zlib1g-dev freetype2* ttf-*

# install webmin
wget prdownloads.sourceforge.net/webadmin/webmin_1.981_all.deb
dpkg -i webmin_1.981_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

# Set fcgid.load as an active module
ln -s /etc/apache2/mods-available/fcgid.load /etc/apache2/mods-enabled/fcgid.load

# run the HFSQL installer
# must be in the same directory as this script
./manta_install64

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

# Done
echo "Completed"
echo



Edited 10 time(s). Last edit at 09/04/2021 09:38PM by dmontaine.
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: