Open paul-frost opened 10 years ago
I'm not able to create the user. The kartat folder exists (created by myself), its permission is set to 755. When I enter a user and a pw and press "Log in", I get "Login failed". The rg2userinfo.txt-file is not created. Do you have any hint? Thank you very much in advance.
The most likely problem is the rg2-config.php file does not define RG_BASE_DIRECTORY correctly.
If that looks OK can you give me a link to your installation so I can have a look?
Dear Simon
Thank you very much for your quick response and your offer to have a look at my problem. My installation is here: rg.clavadetscher.ch/routegadget/rg2 I attach the rg2-config.php file (renamed in rg2-config.txt).
Kind regards Diego Clavadetscher
Am 26.05.2015 um 09:50 schrieb Simon Errington:
The most likely problem is the rg2-config.php file does not define RG_BASE_DIRECTORY correctly.
If that looks OK can you give me a link to your installation so I can have a look?
— Reply to this email directly or view it on GitHub https://github.com/Maprunner/rg2/issues/187#issuecomment-105431407.
<?php /**
*/ // Location of directory where Routegadget is installed. // This should have /cgi-bin, /kartat and /rg2 sub-directories. // Example define('RG_BASE_DIRECTORY', 'http://www.happyherts.routegadget.co.uk'); define('RG_BASE_DIRECTORY', 'http://rg.clavadetscher.ch/routegadget/');
// location of Splitsbrowser files if required: see Wiki for details of how to install Splitsbrowser define('SPLITSBROWSER_DIRECTORY', 'http://rg.clavadetscher.ch/splitsbrowser');
// default language if not English: this is overridden if the query includes a language (e.g. ?lang=fi) // requires a dictionary file xx.txt in the lang directory // define('START_LANGUAGE', 'fi');
// Set encoding for input data default UTF-8 define('RG_FILE_ENCODING', 'UTF-8');
// User interface colour theme: see gallery at http://jqueryui.com/themeroller/ // Example define('UI_THEME', 'smoothness'); define('UI_THEME', 'smoothness');
// set these to an RGB colour definition to override default configuration of white text on blue background for the header // if you change them make sure the text shows up on the background define('HEADER_COLOUR', '#002bd9'); define('HEADER_TEXT_COLOUR', '#ffffff');
// text displayed at bottom of info dialog. Use '' to leave blank. // text shown here is required for routegadget.co.uk sites but can be deleted otherwise define('ADDITIONAL_INFO_TEXT', 'Maps published on this web site that contain OS data by permission of Ordnance Survey® Licence Number 100046745.');
// proj4 co-ordinate reference system for new maps // see http://spatialreference.org/ref/epsg/ for master list // see http://spatialreference.org/ref/epsg/27700/ for example of UK National Grid // select "proj4" in the list see http://spatialreference.org/ref/epsg/27700/proj4/ for example parameter string // // Note: EPSG:27700 is built in to RG2 as default so you do NOT need to declare it here: this is just an example // EPSG:900913 (Google) is also built in // Uncomment the following lines and edit for the required co-ordinate system // //define('EPSG_CODE', "EPSG:27700"); //define('EPSG_PARAMS', "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs ");
?>
Diego,
The configuration file looks OK.
You should have at least the following directories set up under http://rg.clavadetscher.ch/routegadget/
/rg2 (with all the files and directories from github) /kartat
I think the problem is the lock directory. You need to create a /lock directory at the same level as /rg2, and this needs to be writeable. The error being reported is "permission denied" when trying to write to the lock directory.
There might also be a permission problem on the /kartat directory, but try creating/changing the /lock directory first.
On 26/05/2015 14:39, Fechter65 wrote:
Dear Simon
Thank you very much for your quick response and your offer to have a look at my problem. My installation is here: rg.clavadetscher.ch/routegadget/rg2 I attach the rg2-config.php file (renamed in rg2-config.txt).
Kind regards Diego Clavadetscher
Am 26.05.2015 um 09:50 schrieb Simon Errington:
The most likely problem is the rg2-config.php file does not define RG_BASE_DIRECTORY correctly.
If that looks OK can you give me a link to your installation so I can have a look?
— Reply to this email directly or view it on GitHub https://github.com/Maprunner/rg2/issues/187#issuecomment-105431407.
<?php /**
- The configuration file for RG2. *
- This file should be modified to set up the details for a specific Routegadget installation. / // Location of directory where Routegadget is installed. // This should have /cgi-bin, /kartat and /rg2 sub-directories. // Example define('RG_BASE_DIRECTORY', 'http://www.happyherts.routegadget.co.uk'); define('RG_BASE_DIRECTORY', 'http://rg.clavadetscher.ch/routegadget/');
// location of Splitsbrowser files if required: see Wiki for details of how to install Splitsbrowser define('SPLITSBROWSER_DIRECTORY', 'http://rg.clavadetscher.ch/splitsbrowser');
// default language if not English: this is overridden if the query includes a language (e.g. ?lang=fi) // requires a dictionary file xx.txt in the lang directory // define('START_LANGUAGE', 'fi');
// Set encoding for input data default UTF-8 define('RG_FILE_ENCODING', 'UTF-8');
// User interface colour theme: see gallery at http://jqueryui.com/themeroller/ // Example define('UI_THEME', 'smoothness'); define('UI_THEME', 'smoothness');
// set these to an RGB colour definition to override default configuration of white text on blue background for the header // if you change them make sure the text shows up on the background define('HEADER_COLOUR', '#002bd9'); define('HEADER_TEXT_COLOUR', '#ffffff');
// text displayed at bottom of info dialog. Use '' to leave blank. // text shown here is required for routegadget.co.uk sites but can be deleted otherwise define('ADDITIONAL_INFO_TEXT', 'Maps published on this web site that contain OS data by permission of Ordnance Survey® Licence Number 100046745.');
// proj4 co-ordinate reference system for new maps // see http://spatialreference.org/ref/epsg/ for master list // see http://spatialreference.org/ref/epsg/27700/ for example of UK National Grid // select "proj4" in the list see http://spatialreference.org/ref/epsg/27700/proj4/ for example parameter string // // Note: EPSG:27700 is built in to RG2 as default so you do NOT need to declare it here: this is just an example // EPSG:900913 (Google) is also built in // Uncomment the following lines and edit for the required co-ordinate system // //define('EPSG_CODE', "EPSG:27700"); //define('EPSG_PARAMS', "+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs ");
?>
— Reply to this email directly or view it on GitHub https://github.com/Maprunner/rg2/issues/187#issuecomment-105526302.
Simon, Thank you once again. I create the /lock directrory at the same level as /rg2 and /kartat and set it to "755" (even "777"), but I'm still unable to create the user. /kartat has also the permision set to "755".
The error being reported from the login attempt is: Warning: mkdir() [function.mkdir]: Permission denied in /home/www/web5/html/RouteGadget/routegadget/rg2/rg2api.php on line 1099<br /
Google returns lots of pages like this. It looks like it is something to do with directory and file ownership as well as permission settings.
If you are not installing on routegadget.co.uk but on your own server and don't have an existing older routegadget installation I think it's better to create a routegadget folder and then add the rg2 inside that. You also need to create a kartat folder and place an empty keksi.txt file in it. That kartat folder and all files enclosed needs the permissions set to 755 on a linux server to allow it to be written to. The rg2-config.php file needs the RG_BASE_DIRECTORY set to http://www.yourdomain.com/routegadget
The first time you try and login to http://www.yourdomain.com/routegadget/rg2/?manage whatever you type in for the username & password will be stored for future use. This creates a file named rg2userinfo.txt in the kartat folder. If you forget your login details you need to delete this file from the server via FTP so a new one can be created.