RE: [WebDNA] Ubuntu and WebDNA

This WebDNA talk-list message is from

2019


It keeps the original formatting.
numero = 114703
interpreted = N
texte = 2325 This is a multipart message in MIME format. ------=_NextPart_000_177D_01D55C4F.0F404660 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I just noticed that dir listings is somehow still enabled. Does anyone know how to disable dir listings in Ubuntu 18.x From: Vincent Medina [mailto:vmedina@apcn.net] Sent: Sunday, August 25, 2019 10:50 PM To: talk@webdna.us Subject: [WebDNA] Ubuntu and WebDNA I got Ubuntu Server 18.04.3 LTS running with WebDNA Fast CGI Here are my notes (Got from the Talk list, friends and various other sources) feel free to critique.. This is not for a virtual host Use the directions on the WebDNA site to install WebDNA with Apache -------------------------------------------------------------------------- Side Note: Upgrading to WebDNA Server 8.6.3 Download the Zip Change "mod_WebDNA_apache2.4.so" file name to "mod_webdna.so", replace existing files (mod_webdna.so,WebCatalog, WebDNAMonitor) with the new ones from the zip archive, made the last two files executable, and reboot. ------------------------------------------------------------------------ Change the following: sudo nano /lib/systemd/system/apache2.service sudo nano /etc/systemd/system/multi-user.target.wants/apache2.service Change 'PrivateTmp = true' to PrivateTmp = false on both files, then reboot. - FTP - NOTE: Must use SFTP to write sudo apt-get install vsftpd sudo systemctl start vsftpd sudo systemctl enable vsftpd backup the original config file: sudo mv /etc/vsftpd.conf /etc/vsftpd.conf.orig create a new config file: sudo nano /etc/vsftpd.conf c/p this into the config file: listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO pasv_enable=Yes pasv_min_port=10000 pasv_max_port=10100 allow_writeable_chroot=YES Now create a ftp account sudo useradd -m ftpuser sudo passwd ftpuser Then add user to www-data sudo adduser ftpuser www-data Create a folder under /var/www/html/ give rights to the www-data group chgrp www-data chmod g+rwx Allow WebDNA to write to db's chgrp www-data chmod g+rwx Other Stuff: Remove dir browsing In /etc/apache2/apache2.conf Look for and change it to: Options FollowSymLinks Options -Indexes root level accesscd sudo su - --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us ------=_NextPart_000_177D_01D55C4F.0F404660 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I just noticed that dir listings is somehow = still enabled. Does anyone know how to disable dir listings in Ubuntu = 18.x

 

 

From:= = Vincent Medina [mailto:vmedina@apcn.net]
Sent: Sunday, August = 25, 2019 10:50 PM
To: talk@webdna.us
Subject: = [WebDNA] Ubuntu and WebDNA

 

I got Ubuntu = Server 18.04.3 LTS running with WebDNA Fast CGI Here are my notes (Got = from the Talk list, friends and various other sources) feel free to = critique….

 

This is not = for a virtual host

 

Use the = directions on the WebDNA site to install WebDNA with = Apache

 

-------------------------------------------------------= -------------------

Side = Note:

Upgrading to WebDNA Server = 8.6.3

 

Download the Zip

Change "mod_WebDNA_apache2.4.so" file name = to "mod_webdna.so",

replace = existing files (mod_webdna.so,WebCatalog, WebDNAMonitor) with the new = ones from the zip

archive, made the = last two files executable, and reboot.

 

-------------------------------------------------------= -----------------

 

Change the = following:

 

sudo nano = /lib/systemd/system/apache2.service

sudo nano = /etc/systemd/system/multi-user.target.wants/apache2.service

 

Change = 'PrivateTmp =3D true'

to

 

PrivateTmp = =3D false

 

on both files, then reboot.

 

- FTP = -

 

NOTE: Must use SFTP to write

 

sudo apt-get = install vsftpd

sudo systemctl start = vsftpd

sudo systemctl enable = vsftpd

 

backup the original config file:

 

sudo mv = /etc/vsftpd.conf /etc/vsftpd.conf.orig

 

create a new = config file:

 

sudo nano /etc/vsftpd.conf

 

c/p this = into the config file:

 

listen=3DNO

listen_ipv6=3DYES

anonymous_enable=3DNO

local_enable=3DYES

write_enable=3DYES

local_umask=3D022

dirmessage_enable=3DYES

use_localtime=3DYES

xferlog_enable=3DYES

connect_from_port_20=3DYES

chroot_local_user=3DYES

secure_chroot_dir=3D/var/run/vsftpd/empty

pam_service_name=3Dvsftpd

rsa_cert_file=3D/etc/ssl/certs/ssl-cert-snakeoil.pem

rsa_private_key_file=3D/etc/ssl/private/ssl-cert-snakeo= il.key

ssl_enable=3DNO

pasv_enable=3DYes

pasv_min_port=3D10000

pasv_max_port=3D10100

allow_writeable_chroot=3DYES

 

Now create a = ftp account

 

sudo useradd -m ftpuser

sudo passwd ftpuser 

 

Then add = user to www-data

 

sudo adduser = ftpuser www-data

 

Create a = folder under /var/www/html/<new folder>

 

give rights = to the www-data group

 

chgrp = www-data <new folder>

chmod = g+rwx  <new folder>

 

Allow WebDNA = to write to db's

 

chgrp = www-data <dbfile>

chmod g+rwx = <dbfile>

 

Other = Stuff:

 

Remove dir browsing

In /etc/apache2/apache2.conf

 

Look for = <Directory /var/www/> and change it to:

 

<Directory /var/www/>

    Options = FollowSymLinks

    = Options -Indexes

</Directory> 

 

 

root level = accesscd

sudo su -

 

 

---------------------------------------------------------= This message is sent to you because you are subscribed to the mailing = list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us = archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us ------=_NextPart_000_177D_01D55C4F.0F404660-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Ubuntu and WebDNA (Paul Willis 2019)
  2. Re: [WebDNA] Ubuntu and WebDNA (Stuart Tremain 2019)
  3. Re: [WebDNA] Ubuntu and WebDNA (Stuart Tremain 2019)
  4. RE: [WebDNA] Ubuntu and WebDNA ("Scott @ Itsula" 2019)
  5. RE: [WebDNA] Ubuntu and WebDNA (Vincent Medina 2019)
  6. RE: [WebDNA] Ubuntu and WebDNA ("Scott @ Itsula" 2019)
  7. Re: [WebDNA] Ubuntu and WebDNA (WebDNA Solutions 2019)
  8. RE: [WebDNA] Ubuntu and WebDNA ("Vincent Medina" 2019)
  9. RE: [WebDNA] Ubuntu and WebDNA (Dan Strickler 2019)
  10. Re: [WebDNA] Ubuntu and WebDNA (Stuart Tremain 2019)
  11. RE: [WebDNA] Ubuntu and WebDNA ("Vincent Medina" 2019)
  12. Re: [WebDNA] Ubuntu and WebDNA (Stuart Tremain 2019)
  13. RE: [WebDNA] Ubuntu and WebDNA ("Vincent Medina" 2019)
  14. RE: [WebDNA] Ubuntu and WebDNA ("Vincent Medina" 2019)
  15. Re: [WebDNA] Ubuntu and WebDNA (Stuart Tremain 2019)
  16. RE: [WebDNA] Ubuntu and WebDNA ("Vincent Medina" 2019)
2325 This is a multipart message in MIME format. ------=_NextPart_000_177D_01D55C4F.0F404660 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I just noticed that dir listings is somehow still enabled. Does anyone know how to disable dir listings in Ubuntu 18.x From: Vincent Medina [mailto:vmedina@apcn.net] Sent: Sunday, August 25, 2019 10:50 PM To: talk@webdna.us Subject: [WebDNA] Ubuntu and WebDNA I got Ubuntu Server 18.04.3 LTS running with WebDNA Fast CGI Here are my notes (Got from the Talk List, friends and various other sources) feel free to critique.. This is not for a virtual host Use the directions on the WebDNA site to install WebDNA with Apache -------------------------------------------------------------------------- Side Note: Upgrading to WebDNA Server 8.6.3 Download the Zip Change "mod_WebDNA_apache2.4.so" file name to "mod_webdna.so", replace existing files (mod_webdna.so,WebCatalog, WebDNAMonitor) with the new ones from the zip archive, made the last two files executable, and reboot. ------------------------------------------------------------------------ Change the following: sudo nano /lib/systemd/system/apache2.service sudo nano /etc/systemd/system/multi-user.target.wants/apache2.service Change 'PrivateTmp = true' to PrivateTmp = false on both files, then reboot. - FTP - NOTE: Must use SFTP to write sudo apt-get install vsftpd sudo systemctl start vsftpd sudo systemctl enable vsftpd backup the original config file: sudo mv /etc/vsftpd.conf /etc/vsftpd.conf.orig create a new config file: sudo nano /etc/vsftpd.conf c/p this into the config file: listen=NO listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key ssl_enable=NO pasv_enable=Yes pasv_min_port=10000 pasv_max_port=10100 allow_writeable_chroot=YES Now create a ftp account sudo useradd -m ftpuser sudo passwd ftpuser Then add user to www-data sudo adduser ftpuser www-data Create a folder under /var/www/html/ give rights to the www-data group chgrp www-data chmod g+rwx Allow WebDNA to write to db's chgrp www-data chmod g+rwx Other Stuff: Remove dir browsing In /etc/apache2/apache2.conf Look for and change it to: Options FollowSymLinks Options -Indexes root level accesscd sudo su - --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us ------=_NextPart_000_177D_01D55C4F.0F404660 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I just noticed that dir listings is somehow = still enabled. Does anyone know how to disable dir listings in Ubuntu = 18.x

 

 

From:= = Vincent Medina [mailto:vmedina@apcn.net]
Sent: Sunday, August = 25, 2019 10:50 PM
To: talk@webdna.us
Subject: = [WebDNA] Ubuntu and WebDNA

 

I got Ubuntu = Server 18.04.3 LTS running with WebDNA Fast CGI Here are my notes (Got = from the Talk List, friends and various other sources) feel free to = critique….

 

This is not = for a virtual host

 

Use the = directions on the WebDNA site to install WebDNA with = Apache

 

-------------------------------------------------------= -------------------

Side = Note:

Upgrading to WebDNA Server = 8.6.3

 

Download the Zip

Change "mod_WebDNA_apache2.4.so" file name = to "mod_webdna.so",

replace = existing files (mod_webdna.so,WebCatalog, WebDNAMonitor) with the new = ones from the zip

archive, made the = last two files executable, and reboot.

 

-------------------------------------------------------= -----------------

 

Change the = following:

 

sudo nano = /lib/systemd/system/apache2.service

sudo nano = /etc/systemd/system/multi-user.target.wants/apache2.service

 

Change = 'PrivateTmp =3D true'

to

 

PrivateTmp = =3D false

 

on both files, then reboot.

 

- FTP = -

 

NOTE: Must use SFTP to write

 

sudo apt-get = install vsftpd

sudo systemctl start = vsftpd

sudo systemctl enable = vsftpd

 

backup the original config file:

 

sudo mv = /etc/vsftpd.conf /etc/vsftpd.conf.orig

 

create a new = config file:

 

sudo nano /etc/vsftpd.conf

 

c/p this = into the config file:

 

listen=3DNO

listen_ipv6=3DYES

anonymous_enable=3DNO

local_enable=3DYES

write_enable=3DYES

local_umask=3D022

dirmessage_enable=3DYES

use_localtime=3DYES

xferlog_enable=3DYES

connect_from_port_20=3DYES

chroot_local_user=3DYES

secure_chroot_dir=3D/var/run/vsftpd/empty

pam_service_name=3Dvsftpd

rsa_cert_file=3D/etc/ssl/certs/ssl-cert-snakeoil.pem

rsa_private_key_file=3D/etc/ssl/private/ssl-cert-snakeo= il.key

ssl_enable=3DNO

pasv_enable=3DYes

pasv_min_port=3D10000

pasv_max_port=3D10100

allow_writeable_chroot=3DYES

 

Now create a = ftp account

 

sudo useradd -m ftpuser

sudo passwd ftpuser 

 

Then add = user to www-data

 

sudo adduser = ftpuser www-data

 

Create a = folder under /var/www/html/<new folder>

 

give rights = to the www-data group

 

chgrp = www-data <new folder>

chmod = g+rwx  <new folder>

 

Allow WebDNA = to write to db's

 

chgrp = www-data <dbfile>

chmod g+rwx = <dbfile>

 

Other = Stuff:

 

Remove dir browsing

In /etc/apache2/apache2.conf

 

Look for = <Directory /var/www/> and change it to:

 

<Directory /var/www/>

    Options = FollowSymLinks

    = Options -Indexes

</Directory> 

 

 

root level = accesscd

sudo su -

 

 

---------------------------------------------------------= This message is sent to you because you are subscribed to the mailing = list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us = archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us ------=_NextPart_000_177D_01D55C4F.0F404660-- . "Vincent Medina"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Rookie Hacker? (1998) Format question WC Mac f3 (1997) Question on the sandbox (2003) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) math on date? (1997) webmerchant redialing (1998) Dismissing dialogs (was 2.1b3 --> way slow) (1997) [SearchString] problem with [search] context (1997) WebTen + WebCatalog Plugin clarification (1998) TCP Connect (1999) StoreBuilder Q's (2003) Cleaner URLs (2003) Make sure I understand this??? (1997) Error.html (1997) listfiles-looking for slick solution (1997) check out page (SSL) not loading on Netscape 4.0+ (1999) still having search problem, please help :) (2004) Error: unknown exception (2000) Simple way to create unique SKU (1997) Mac GUI editors (1997)