[1080] | 1 | <h2>Remote sites</h2> |
---|
[858] | 2 | |
---|
[2342] | 3 | <p>Piwigo offers the possibility to use several servers to store the |
---|
[8705] | 4 | photos which will compose your gallery. It can be useful if your gallery is |
---|
[5379] | 5 | installed on a limited space and you have a huge quantity of images to |
---|
| 6 | show.</p> |
---|
[858] | 7 | |
---|
| 8 | <ol> |
---|
| 9 | |
---|
[5513] | 10 | <li>edit file <span class="filename">tools/create_listing_file_local.inc.php</span>, |
---|
[858] | 11 | by modifying parameters section such as |
---|
| 12 | <code>$conf['prefix_thumbnail']</code> or |
---|
| 13 | <code>$conf['use_exif']</code>.</li> |
---|
| 14 | |
---|
[5513] | 15 | <li>using ftp, place the files <span class="filename">tools/create_listing_file.php</span> |
---|
| 16 | and <span class="filename">tools/create_listing_file_local.inc.php</span> (modified) |
---|
[8705] | 17 | on your distant website, in the same directory as your album |
---|
[858] | 18 | directories (as the directory <span class="filename">galleries</span> of |
---|
[5379] | 19 | this website). For example, let's say that you can access <span |
---|
[858] | 20 | class="filename">http://example.com/galleries/create_listing_file.php</span>.</li> |
---|
| 21 | |
---|
[8705] | 22 | <li>go to <span class="pwgScreen">administration panel » Tools » Site |
---|
[1080] | 23 | manager</span>. Ask to create a new site, for example <span |
---|
[858] | 24 | class="filename">http://example.com/galleries</span>.</li> |
---|
| 25 | |
---|
| 26 | <li>a new remote site is registered. You can perform 4 actions : |
---|
| 27 | |
---|
| 28 | <ol> |
---|
| 29 | |
---|
| 30 | <li><strong>generate listing</strong> : launches a distant request to |
---|
| 31 | generate a distant file listing</li> |
---|
| 32 | |
---|
[1080] | 33 | <li><strong>synchronize</strong> : reads the distant <span |
---|
[858] | 34 | class="filename">listing.xml</span> file and synchronizes with |
---|
[5379] | 35 | database information</li> |
---|
[858] | 36 | |
---|
| 37 | <li><strong>clean</strong> : removes distant <span |
---|
[5379] | 38 | class="filename">listing.xml</span> file</li> |
---|
[858] | 39 | |
---|
| 40 | <li><strong>delete</strong> : deletes the site (and all related |
---|
[8705] | 41 | albums and photos) in the database</li> |
---|
[858] | 42 | |
---|
| 43 | </ol> |
---|
| 44 | </li> |
---|
| 45 | </ol> |
---|
| 46 | |
---|