« Phpgedview » : différence entre les versions
m (1 version) |
Aucun résumé des modifications |
||
(2 versions intermédiaires par un autre utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
[[Category: | [[Category:Archives]] | ||
http://www.phpgedview.net | http://www.phpgedview.net | ||
=Installation= | =Installation= | ||
Télécharger phpgedview sur [https://sourceforge.net/projects/phpgedview/files/latest/download sourceforge] et suivre les instructions de readme.txt | |||
Créer la base de données mysql: | Créer la base de données mysql: | ||
#mysqladmin create phpgedview -p | #mysqladmin create phpgedview -p | ||
Ligne 78 : | Ligne 74 : | ||
preserved. | preserved. | ||
== | =Suivre la fréquentation du site avec google analytics= | ||
C'est possible à partir de la version 4.1.6 de phpgedview. | |||
https://wiki.phpgedview.net/en/index.php/Add_Google_Analytics | |||
Il faut créer le code Google Analytics. Il est du type UA-XXXXX-XX. | |||
Il faut ajouter la ligne suivante à la fin du fichier config.php | |||
define('PGV_GOOGLE_ANALYTICS', 'UA-XXXXX-XX'); | |||
La fin du fichier config.php doit donc être de la forme suivante: | |||
<licode file=config.php> | |||
$CONFIGURED = true; | |||
require_once("includes/session.php"); | |||
define('PGV_GOOGLE_ANALYTICS', 'UA-XXXXX-XX'); | |||
</licode> | |||
{{Copy|2007- | {{Copy|2007-2019|Christophe de Livois|FDL}} |
Version actuelle datée du 1 avril 2023 à 06:50
Installation
Télécharger phpgedview sur sourceforge et suivre les instructions de readme.txt
Créer la base de données mysql:
#mysqladmin create phpgedview -p
Lorsque le safe mode est activé, l'uid du script doit être celui de l'utilisateur qui le lance (en l'occurence apache).
#chown apache:apache /var/www/www.livois.com/phpgedview -R
readme.txt
Follow the instructions in this section to install PhpGedView if you are already familiar with the program or are familiar with installing other PHP web applications.
1. Upload the files to your web server. 2. Set Write permissions on config.php and the "index" directory. For optimal security, you should move the "index" directory to a location where it is not accessible from the Internet. 3. Point your browser to the directory where you uploaded your PhpGedView files (for example, http://www.yourserver.com/PhpGedView/). 4. Enter your configuration settings. If you moved the index directory, be sure to specify the correct location to it on this page. Save the configuration parameters. 5. Enter the default administrator user. 6. Login as this user and upload your GEDCOM file. 7. Save the GEDCOM configuration settings. 8. Import the GEDCOM.
Optional Steps
9. If you want to use the language editing features you will need to set Write permissions for all of the files in the ./languages folder.
10. If you want to upload media files using the Upload Media section of
the Admin menu then you need to set Write permissions for your ./media and ./media/thumbs directories.
11. If you want to edit your GEDCOM file online, the GEDCOM file must have
Write permissions set for the PHP user.
12. If you want to use the Backup feature of the Upgrade utility in
PhpGedView you will need to either set Write permission on the PhpGedView folder itself or create a folder named "backup" with Write permissions. Write permissions for the PhpGedView folder can be removed as soon as the backup folder is in place and has the appropriate permissions.
13. For security you should set the permissions back to Read-only when you
are done editing or uploading files. #chmod a-w config.php
Mettre à jour un fichier gedcom
When you change your genealogy data outside of PhpGedView, it is not necessary to delete your GEDCOMs from PhpGedView and start over. Follow these steps to update a GEDCOM that has already been imported:
1. The first step is to replace your old GEDCOM on the site with your new
GEDCOM. You can do this using FTP, or by going to the "Upload GEDCOM" page and uploading a new GEDCOM with the same filename as the old one. Please remember that file names are case sensitive.
2. Re-import the GEDCOM file by going to
Admin->Manage GEDCOMs->Import GEDCOM. The GEDCOM will be validated again before importing.
3. The Import script will detect that the GEDCOM has already been imported
and will ask if you want to replace the old data. Click the "Yes" button.
4. You will again see the Import statistics and the Import Complete
message at the bottom of the page when the Import is complete.
If you use a ZIP file to upload the GEDCOM, the only way to do it is by either using the "Upload GEDCOM" option, or the "Add GEDCOM" option. The GEDCOM file in the zipped file has to have exactly the same name as the already existing GEDCOM. This way existing GEDCOM settings will be preserved.
Suivre la fréquentation du site avec google analytics
C'est possible à partir de la version 4.1.6 de phpgedview. https://wiki.phpgedview.net/en/index.php/Add_Google_Analytics
Il faut créer le code Google Analytics. Il est du type UA-XXXXX-XX. Il faut ajouter la ligne suivante à la fin du fichier config.php
define('PGV_GOOGLE_ANALYTICS', 'UA-XXXXX-XX');
La fin du fichier config.php doit donc être de la forme suivante: <licode file=config.php>
$CONFIGURED = true; require_once("includes/session.php"); define('PGV_GOOGLE_ANALYTICS', 'UA-XXXXX-XX');
</licode>
Copyright
© 2007-2019 Christophe de Livois
Vous avez l'autorisation de copier, distribuer et/ou modifier ce document suivant les termes de la GNU Free Documentation License, Version 1.2 ou n'importe quelle version ultérieure publiée par la Free Software Foundation; sans section invariante, sans page de garde, sans entête et sans page finale. Pour plus d'informations consulter le site de l'APRIL. |