Hello,
I have a self-hosted Linux server running Piwigo 14.5 using Apache and MariaDB. I want to make some configuration changes to the site, but I don't want to experiment on the production site, so I'd like to duplicate the site into a test site that I can experiment with before moving the changes into production. Is there documentation on the best way to do this?
Piwigo URL: http://www.daveguertin.net
Offline
Hello Dave_G
Just copy everything into a new folder. (Piwigo folder for example) Make a backup of your database and create a new database for the copy and import the backup into the database. That's how I did it :-)
Greetings Olaf
Offline
Thanks! I've done that and it's sort of working, but it seems that both my production site and the test site are using the same database, because when I make a change to the test site it affects the production site as well.
My production site is in /var/www/html/photos, and the test site is in /var/www/html/photostest. I've set the database to use in each directory in the database.inc.php file in local/config:
/var/www/html/photos/local/config/database.inc.php:
$conf['db_base'] = 'piwigo';
/var/www/html/photostest/local/config/database.inc.php:
$conf['db_base'] = 'piwigotest';
Both databases have grants to the same db_user.
What have I missed?
Offline
Never mind! It was an Apache misconfiguration. I had inadvertently set the Apache config file to point the production site to the test directory. Doh! It's fixed and working correctly now,
Offline