#1 2025-02-02 18:41:32

Dave_G
Member
2019-03-24
20

How to duplicate a Piwigo site?

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

 

#2 2025-02-02 20:45:02

Schneider-Fotografie
Extension maintainer
Berlin
2023-04-16
160

Re: How to duplicate a Piwigo site?

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


-Schneider-Photography- Gallery
----------------------------------
BYB | Block You Bots
„Stay human. I block the rest.“

Offline

 

#3 2025-02-02 23:59:05

Dave_G
Member
2019-03-24
20

Re: How to duplicate a Piwigo site?

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

 

#4 2025-02-03 00:26:50

Dave_G
Member
2019-03-24
20

Re: How to duplicate a Piwigo site?

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

 

Board footer

Powered by FluxBB