CDash icon indicating copy to clipboard operation
CDash copied to clipboard

3.0.1 Base install failure

Open jonathan-dove opened this issue 5 years ago • 4 comments

Tried to do just a base install in Debian Stretch with the following specs: PHP 7.4.10 NPM 6.14.8 Composer 1.10.13

When I do follow the base instructions for installation I get a 404 error that it can't find install.php... it is able to hit index.php obviously. after a ton of different ways of attacking this, I tried installing 2.6, got to install.php, created a single project to create the database... all of that worked just fine. Then I reinstalled 3.0.3 and got the dashboard, but can't get to any other page. I get 404 errors for every page I go to from the front page (user.php, ViewProjects.php, ect...)

jonathan-dove avatar Oct 04 '20 23:10 jonathan-dove

This is just a hunch, but it sounds like your web server isn't honoring the RewriteRules used for routing that are defined in CDash's .htaccess file.

Are you using apache or nginx as your web server?

zackgalbreath avatar Oct 05 '20 13:10 zackgalbreath

apache

jonathan-dove avatar Oct 05 '20 13:10 jonathan-dove

In that case, check that you have AllowOverride All set in the apache configuration for the relevant VirtualHost or Directory.

A way to test if this is working or not is to add the following snippet to the top CDash's public/.htaccess file:

Authtype Basic
AuthName "My custom CDash test auth"
AuthUserFile /var/www/htpasswd
Require valid-user

If apache is configured to parse .htacess files then you should be presented with an authentication dialog when you browse to any CDash URL.

zackgalbreath avatar Oct 05 '20 14:10 zackgalbreath

I am using nginx, and my URLs seem to be wrong (all least a part of them).

So, I am running CDash in docker, APP_URL is http://my.server/cdash/ (with the trailing slash), and nginx.conf has

       location /cdash/ # with slash
        {
                proxy_pass http://my.server:3001/; # with slash but not adding the suffix

And I can access "some" resources, but not others. That is, links are messy. Some lead to http://my.server/cdash/resource, and some to http://my.server/resource

lockywolf avatar Aug 09 '22 06:08 lockywolf