Zverik / Level0

Web-based OpenStreetMap Editor
http://level0.osmz.ru
Do What The F*ck You Want To Public License
53 stars 14 forks source link

Login returns http 500 #23

Closed cascafico closed 8 years ago

cascafico commented 8 years ago

I followed all wiki steps, but still logging-in returns an error http 500. Here's oauth client settings:

Nome (Richiesto): LamponeLevel0 URL applicazione principale (Richiesto): http://lampone.zapto.org/Level0/www/index.php

Requested authorizations:

in config.php I inserted only

deploy_locale ran smoothly

Is there anything I miss?

Zverik commented 8 years ago

Is there anything related in the apache error log? Does the error happen when you press "login", or after you return from osm.org?

cascafico commented 8 years ago

You are right!

Here's nginx error:

2015/11/27 18:10:21 [error] 2600#0: *40465 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'OAuth' not found in /var/www/Level0/www/osmapi.php on line 6" while reading response header from upstream, client: x..x.x.x, server: localhost, request: "POST /Level0/www/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "lampone.zapto.org", referrer: "http://lampone.zapto.org/Level0/www/?url=node/429973805"

It happens when I press Login, so I cannot login at all.

Zverik commented 8 years ago

Right, you need to install OAuth PECL package.

cascafico commented 8 years ago

Thanks! It was a lilltle hard building the extension for my basic Debian Raspberry but in worked, eventually.

Zverik commented 8 years ago

Great :)