Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with setup #418

Open
Maxcraft90 opened this issue Dec 30, 2016 · 10 comments
Open

Problem with setup #418

Maxcraft90 opened this issue Dec 30, 2016 · 10 comments

Comments

@Maxcraft90
Copy link

So i can see the page which is on a subdomain (map.xyz.com).

As soon as I hit setup, i can only see the following:

image

I already changed the htcaccess cause I am only using http:// and i put everything into the environment.ini, even the whole CREST thingie.

Yet nothing is showing up.

Any ideas where I went wrong?

@justindh
Copy link

justindh commented Feb 3, 2017

Did you edit the %pathfinderoot%/app/routes.ini and uncomment the setup line?

@exodus4d
Copy link
Owner

If you have still problems with setting up Pathfinder please, send my an E-Mail, Ill invite you to our Slack channel. I´m pretty sure it´s not a bug and just some kind of misconfiguration.

@toro-
Copy link

toro- commented Jun 16, 2017

seeing this too.

Tried various things. I assume it is do with the rewrite rules, but I am too much of a noob to understand what is going on with them.

I am using Apache

@ddavaham
Copy link

@exodus4d any update on this

@TSarain
Copy link

TSarain commented May 24, 2018

I am having the same problem. I started with Apache then switched to Nginx. Same issue.
Seems routes.ini isn't getting processed correctly likely due to a configuration error on my part.

Emailed a request for invite to slack

@olibob
Copy link

olibob commented Jul 7, 2018

@exodus4d I just ran into this issue.

The routes are uncommented in /app/routes.ini (both when cloning git repo or using a release archive)

Setup is done on fresh ubuntu xenial. I can see the landing page just fine. but 404 not found on setup and admin (sso).

Although the routes are uncommented, there are no setup or admin folders and associated files corresponding to these routes. It's like something is missing to bootstrap.

Please let me know what information I need to provide to get some help. I'm trying to set this up for my corp.

@fredderf11
Copy link

Did you folks ever figure out what the problem is with the inactive routes? I'm having the same problem and am pretty close to just downing a bottle of scotch...

@exodus4d
Copy link
Owner

For installation please use one of those options:

  1. Use a dedicated TLD e.g. pathfinder-w.space
  2. Use a subdomain e.g. dev.pathfinder-w.space

There are some issues with installations in subDirectories e.g. pathfinder-w.space/pathfinder. SubDir install is not frequently tested and all my installations use one of the two suggested options.

In both cases BASE needs to be empty (default setting) in app/environment.ini e.g.:

[ENVIRONMENT]
SERVER                      =   PRODUCTION

[ENVIRONMENT.PRODUCTION]
BASE                        =
URL                         =   {{@SCHEME}}://www.dev.pathfinder-w.space

Better option is to create your own environment.ini in a new folder conf/environment.ini and overwrite all the default stuff. If you have your own conf/environment.ini, you need to overwrite all default settings from app/environment.ini, not just the lines you want to adjust (this might be fixed some day..).

If you have the this set up, and still issues with accessing the page, it´s most likely a Apache/Nginx config issue. Feel free to link your Nginx config here...

@tonytonyistony
Copy link

I have been trying to solve this problem for days now. The only thing I can isolate as a problem through checking logs is some database errors in the logs folder.

Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] PDOException: SQLSTATE[HY000] [1698] Access denied for user ''@'localhost' in /var/www/pathfinder/app/lib/db/sql.php:519
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] Stack trace:
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #0 /var/www/pathfinder/app/lib/db/sql.php(519): PDO->__construct('mysql:host=loca...', NULL, NULL, Array)
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #1 /var/www/pathfinder/app/main/lib/db/SQL.php(19): DB\SQL->__construct('mysql:host=loca...', NULL, NULL, Array)
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #2 /var/www/pathfinder/app/main/lib/db/Pool.php(185): lib\db\SQL->__construct('mysql:host=loca...', NULL, NULL, Array)
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #3 /var/www/pathfinder/app/main/lib/db/Pool.php(142): lib\db\Pool->newDB(Array)
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #4 /var/www/pathfinder/app/main/controller/controller.php(129): lib\db\Pool->getDB('PF')
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #5 /var/www/pathfinder/app/main/controller/controller.php(83): Controller\Controller->initSession(Object(Base))
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #6 /var/www/pathfinder/app/main/controller/appcontroller.php(35): Controller\Controller->beforeroute(Object(Base), Array)
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #7 /var/www/pathfinder/app/lib/base.php(1870): Controller\AppController->beforeroute(Object(Base), Array, 'Controller\AppC...')
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #8 /var/www/pathfinder/app/lib/base.php(1673): Base->call(Array, Array, Array)
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #9 /var/www/pathfinder/index.php(20): Base->run()
Wed, 31 Jul 2019 04:06:20 +0000 [68.226.107.33] #10 {main}

I am at a total loss at how to isolate this issue. The one good thing is its been teaching more about apache2 and nginx. I've also sent an email to you to get access to your slack. I would love to get some feedback on how to set this server up. Until then Im going to just follow @fredderf11 and down a bottle of scotch.

@tonytonyistony
Copy link

tonytonyistony commented Jul 31, 2019

@exodus4d
I have fixed this issue in my environment. Details below...
OS: Ubuntu 18.04.2 LTS
WebServer: Apache/2.4.29 (Ubuntu)
DB: mysqld Ver 10.1.40-MariaDB-0ubuntu0.18.04.1 for debian-linux-gnu on x86_64 (Ubuntu 18.04)

I was having the same issues as described above. Anything outside the root directory was not being displayed with a not found error. I did some research on apache blocking stuff outside the root directory and thats where I found my answers. Below are the steps...

WARNING: This may not be best practice and may compromise your web server.

  1. sudo edit your /etc/apache2/apache2.conf
  2. change your AllowOverride in the <Directory /var/www/> to 'FileInfo' and save
  3. run the following command 'sudo a2enmod rewrite'
  4. sudo edit your /var/www/site-available/.conf
  5. make sure your conf file has the following data
    <Directory /var/www/pathfinder-w.space/public_html>
    Require all granted
    AllowOverride All
    </Directory>
  6. Restart apache and attempt to browse to /setup or /admin

I would also like to state that after looking at the sample configs from exodus for nginx I noticed that his /var/www/ file structure was /var/www/pathfinder-w.space/public_html. I did change my web setting to mimic this variable as well.

I hope this helps! It took me 3 hard days of cross eyed CLI work!

EDIT: Also pertaining to my logs above about DB access deny attempts. This is due to a change in mysql where they no longer allow root access without sudo. I had to make another sql user and give it root privileges to get rid of those errors.
[]https://askubuntu.com/questions/763336/cannot-enter-phpmyadmin-as-root-mysql-5-7/763359#763359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants