Possible LDAP issues after creating dev environment on same server as production

Possible LDAP issues after creating dev environment on same server as production

از John Williams در
Number of replies: 1

Hi,

I am running on LAMP with the moodle software installed in /var/www/html, moodledata is in /export/moodledata.

I could not find a step by step on how to set up a test moodle on the same server as production. I have followed these steps :

Make sure everyone is out of the system;

Use webdb to copy moodle database to moodle_dev;

Add same priviliges to moodle_dev as are in moodle;

cp /export/moodledata to /export/moodledata_dev and chown/chmod to match moodledata;

Copy /var/www/html/* into a subdirectory /var/www/html/dev;

Edit /var/www/html/dev/config.php to point at new database + wwwroot + dirroot + dataroot;

Access site at http://moodlesite/dev

We use LDAP authentication. I now get an error which can occur on either system when I try to access both dev and prod at the same time :

A server error that affects your login session was detected. Please login again or restart your browser.
( Continue )

I think this may be a browser problem as it only seems to happen if I have prod open in one browser tab and dev open in in another tab in the same browser session. If I have different browser windows it has not happened so far.

docs.gif

Thanks

John

میانگین امتیازات:  -
In reply to John Williams

Re: Possible LDAP issues after creating dev environment on same server as production

از Ken Wilson در
Hi John

Did you remember to set a different cookie prefix for the development server? Can you please check at Site Administration -> Server -> Session handling -> Cookie Prefix on the dev server that it is set to something different to the production server, e.g. "dev".

Any better?

Ken