|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| Problem debploying a website on 64 bit linux |
| Iniciado por guest, 24,oct. 2017 04:50 - No hay respuesta |
| |
| | | |
|
| |
| Publicado el 24,octubre 2017 - 04:50 |
I have come up with a bash install script that does the configuration on Debian Linux 8 as shown below. Testing the deployment, the TMP file is successfully written to the ftp_webdev directory. However, the deployment process is unable to read the file, even when I change the rights on the ftp_webdev directory to rwxrwxrwx and set up the umask permissions on vsftpd to write the file as rw_rw_rw_.
Anyone have any ideas what I need to add or change? The error I receive is:
INFValidating the password for WebDev account WEBSITE with TEMB5EA.tmp file Failure opening the fileTEMB5EA.tmp Unable to open file. System Error Details: No such file or directory ERRFTP FINCGI
Setup script follows ----------------------------------------------- #!/bin/bash
clear
## # make install scripts executable ##
chmod +x /root/*64
## # update system and download and install webmin ##
apt-get update && apt-get -y dist-upgrade apt-get -y install vsftpd libqtcore4 libqtgui4 libc6-dev libstdc++-4.9-dev zlib1g-dev ttf-mscorefonts-installer lynx build-essential lsb apache2 libapt-pkg-perl libauthen-pam-perl libio-pty-perl apt-show-versions sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.860_all.deb dpkg -i webmin_1.860_all.deb
## # modify the /etc/vsftpd.conf file ##
sed -i 's/#write_enable=YES/write_enable=YES/' /etc/vsftpd.conf sed -i 's/#local_umask=022/local_umask=022/' /etc/vsftpd.conf echo "seccomp_sandbox=NO" >> /etc/vsftpd.conf
## # activate apache2 modules required by the WAS ##
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/cgid.load /etc/apache2/mods-enabled/cgid.load ln -s /etc/apache2/mods-available/cgid.conf /etc/apache2/mods-enabled/cgid.conf systemctl restart apache2.service
## # create required users, add to groups and make subdirectories for user who will own website ##
useradd -m -s /bin/bash website echo 'Create a password for the ""website"" account' echo 'Be careful. If the two passwords entered do not match' echo 'Then no password will be crated for the account' passwd website useradd webdevadmin usermod -a -G www-data webdevadmin usermod -a -G sudo website usermod -a -G www-data website usermod -a -G www-data root mkdir /home/website/data mkdir /home/website/site mkdir /home/website/ftp_webdev mkdir /home/website/webserviceREST mkdir /home/website/webserviceSOAP chown -R website:website /home/website/*
## # create required users, add to groups and make subdirectories for user who will own website ##
/root/webdev_install_test64 /root/manta_install64 echo 'WAS Install Script Finished - Restarting Server' reboot
------------------------------------------------------------------------ |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|