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 :

Thanks
John