I've read the support forum with no luck. I'm having trouble installing Providence on my Linode server. I want to be able to provide this software to several local museums in our very rural area, so I'm hoping you can help!
My hunch is I've either got a permissions problem or I've missed a package because the instructions weren't explicit for Ubuntu 22.04 and I haven't brought up a LAMP stack in a long time. All packages on my system are totally up-to-date.
- Ubuntu 22.04 LTS
- Apache/2.4.52 (Ubuntu)
- MySql 8.0.36-0ubuntu0.22.04.1
- PHP 7.4.33 (cli) (built: Sep 2 2023 08:03:46)
I used git clone https://github.com/collectiveaccess/providence.git public_html
and updated the setup.php file. I've created a MySQL database called collacc_npwh with a user_npwh who has all privileges. I've reset Apache and also rebooted. I tried it with 'redis' and with 'file' in CA_CACHE_BACKEND.
I did have to manually set permissions on a bunch of the created folders, chowned absolutely everything to username:www-data and even tried chmod -R 777.
The sitename.org/install works great. The tables are created as you would expect. I save my given user 'administrator' and a password. I've tried this with Testing (and the other created users/passwords) and with ISAD(G). When I open sitename.org, I see the login page along with an empty box where the image should be but is not. When I enter credentials, whether correct (administrator/givenpassword) or incorrect (random/random), I get a "CSRF token is not valid" error.
My file at /etc/php/7.4/cli/php.ini has the following vars:
upload_max_filesize = 250M
post_max_size = 250M
memory_limit = 512M
display_errors = On
This is the recent Apache error log:
[Sun Mar 24 18:13:12.176283 2024] [php7:error] [pid 7994] [client 2600:3c01::f03c:93ff:fe2f:51f8:52816] PHP Parse error: syntax error, unexpected ''YToxMTY6e3M6MzI6IjJmNjZkMTk5M' (T_ENCAPSED_AND_WHITESPACE) in /var/www/sitename.org/public_html/app/tmp/collacc_npwhCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14
[Sun Mar 24 18:13:12.235989 2024] [php7:error] [pid 8035] [client 2600:3c01::f03c:93ff:fe2f:51f8:52826] PHP Parse error: syntax error, unexpected ''YToxMTY6e3M6MzI6IjJmNjZkMTk5M' (T_ENCAPSED_AND_WHITESPACE) in /var/www/sitename.org/public_html/app/tmp/collacc_npwhCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14
[Sun Mar 24 18:13:12.246102 2024] [php7:error] [pid 7969] [client 50.37.202.131:47374] PHP Parse error: syntax error, unexpected ''YToxMTY6e3M6MzI6IjJmNjZkMTk5M' (T_ENCAPSED_AND_WHITESPACE) in /var/www/sitename.org/public_html/app/tmp/collacc_npwhCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14, referer: https://www.sitename.org/index.php/system/Auth/DoLogin
[Sun Mar 24 18:13:12.247997 2024] [php7:error] [pid 7995] [client 50.37.202.131:47392] PHP Parse error: syntax error, unexpected ''YToxMTY6e3M6MzI6IjJmNjZkMTk5M' (T_ENCAPSED_AND_WHITESPACE) in /var/www/sitename.org/public_html/app/tmp/collacc_npwhCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14, referer: https://www.sitename.org/index.php/system/Auth/DoLogin
[Sun Mar 24 18:13:12.494078 2024] [php7:error] [pid 8531] [client 2600:3c01::f03c:93ff:fe2f:51f8:52830] PHP Parse error: syntax error, unexpected ''YToxMTk6e3M6MzI6IjJmNjZkMTk5M' (T_ENCAPSED_AND_WHITESPACE) in /var/www/sitename.org/public_html/app/tmp/collacc_npwhCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14
[Sun Mar 24 18:13:12.534126 2024] [php7:error] [pid 7994] [client 2600:3c01::f03c:93ff:fe2f:51f8:52834] PHP Parse error: syntax error, unexpected ''YToxMTk6e3M6MzI6IjJmNjZkMTk5M' (T_ENCAPSED_AND_WHITESPACE) in /var/www/sitename.org/public_html/app/tmp/collacc_npwhCache/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/efd02694d21a801f/598ce1b6114171fe/c21f969b5f03d33d/43e04f8f136e7682/e92d1ceb7caccf1b/c14ac4c40a5783fd.php on line 14
[Sun Mar 24 18:13:14.608020 2024] [access_compat:error] [pid 922] [client 50.37.202.131:47418] AH01797: client denied by server configuration: /var/www/sitename.org/public_html/index.cgi
[Sun Mar 24 18:13:14.608088 2024] [access_compat:error] [pid 922] [client 50.37.202.131:47418] AH01797: client denied by server configuration: /var/www/sitename.org/public_html/index.pl