As an experiment I've redesigned two small web sites from IIS to PHP to work on linux (Mint) apache. The two sites work fine on a local Manjaro test server. Moving them to an existing online server, I thought, would be easy. Hmm. That was two weeks ago (note: only working a few hours a day!).
Server is Apache/2.4.1.18 (ubuntu) running on Linux Mint 18.1 (Serena) (on Windows Hyper_V if it matters). Test server is Manjaro running apache/2.4.38.
All sites are in /srv with permissions www-data:www-data.
The original HTTPS web site on the online server (squirrelmail for my mail server) works fine, with error and custom server logs.
Neither of the two new ones writes logs at all.
One of the sites works in a local browser, the other does not. Neither is yet online. Both are HTTPS sites with no certificate.
As far as I can see all three sites are virtually the same.
Original site has external IP and DNS. New sites assigned VirtualHost *:443 and given 127.0.0.1 in hosts file.
.htaccess files same for all three.
Neither of the new sites generates session data. Original site - no idea where it's kept. Do I need to put any of the mods-available session*.load files into mods-enable? The test server runs a slightly different version of apache (httpd) which does not enable things this way so no example to copy, but there are no session* modules enabled with a LoadModule statement.
VirtualHost for the new working site is (no SSL defined)...
<VirtualHost *:443>
ServerAdmin alert@mymail.domain
DocumentRoot /srv/brisacu
ServerName www.example.com
ServerAlias example.com
<Directory "/">
AllowOverride None
Require all denied
</Directory>
<Directory "/srv/brisacu">
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
CustomLog ${APACHE_LOG_DIR}/brisacu/access.log combined env=!dontlog
</VirtualHost>
I've tried commenting out the two <directory> blocks (which are not in the original working one) on both new web sites.
I've searched the web for various topics to do with this and found nothing that makes a difference. Can anyone help, please?