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

setup problem #450

Closed
jintarokee opened this issue Mar 2, 2017 · 4 comments
Closed

setup problem #450

jintarokee opened this issue Mar 2, 2017 · 4 comments

Comments

@jintarokee
Copy link

Installed at https://mysite.com/pathfinder/
In environment.ini

BASE                        =   /pathfinder
URL                         =   https://mysite.com

In .htaccess
RewriteBase /pathfinder/

But:
setup link https://mysite.com/setup instead of https://mysite.com/pathfinder/setup
Sign Up link https://mysite.com/sso/requestAuthorization instead of https://mysite.com/pathfinder/sso/requestAuthorization

if i'am manualy go to https://mysite.com/pathfinder/setup
i see blank page and error in apache log
PHP Parse error: syntax error, unexpected '(' in /var/www/pathfinder/app/main/lib/socket.php on line 47

47 string at socket.php protected $ttl = ( self::DEFAULT_TTL_MAX / self::DEFAULT_RETRY_MAX );

@MorpheusXAUT
Copy link
Contributor

Have you enabled AllowOverride All in your Apache settings, as mentioned in this comment?

@glyyf
Copy link

glyyf commented Apr 11, 2017

I'm also having this issue, but with a fairly default setup. Hosted on local server,
Base is blank (default)
URL = http://(local-ip)

SSO works, The landing page works, but if I try to access http://(local-ip)/setup, I get a 500 error and in the error log it lists:
PHP Parse error: syntax error, unexpected '(' in /var/www/html/app/main/lib/socket.php on line 47

Using PHP version 7.1.3, mysql version 14.14, on a Debian based system.

Thanks ahead for the help.

@exodus4d
Copy link
Owner

@glyyf The problem you have relates to this like:

protected $ttl = (self::DEFAULT_TTL_MAX / self::DEFAULT_RETRY_MAX);

Assigning Class member variables works in PHP 7.1 but not in older PHP versions (I think < 7.0).
You have 7.1.3, I have no problems with 7.1.2 and can not image this has changed :(

Please re-check your PHP version on /setup page.

@glyyf
Copy link

glyyf commented Apr 13, 2017

@exodus4d

Yup, that was it, it was using PHP 5 for some reason.

For anybody working with the same issue, I am working of a debian based system, so I ran

sudo a2dismod php5.0
sudo a2enmod php7.1
and then restarted the server with sudo service apache2 restart

and it looks like we're good to go.

Thanks for your help!

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

4 participants