I actually use Gramps and plane to open a site with PhpGedView.
I first want to try it on my laptop, so I load Lamp, build a database with Phpmyadmin, create and load a Gedcom file. Everything is alright but my medias(jpeg pictures) doesn't appear.
The absolute paths for this pictures are alright in the Gedcom file and in the database table pgv_media.
I use some sub-folders, for example(Linux system): /media/DATA/Famille/Genealogie/Personnes/Norvege/Photo_Sigurd_Torstein.jpg where /media/ means external devices.
I found that PGV use inside its folder a sub-folder media/ and try to open media/Photo_Sigurd_Torstein.jpg(when I move the pictures to this sub-folder it's working).
How to keep my folders structure ? Without moving/duplicate the pictures during the test time.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can have the same folder structure, but within the server directory where PhpgedView is installed.
You need to configure the GEDCOM, Multimedia section, General group, "Multi-Media directory levels to keep" option. You'd have to set the value to at least 5 because you have 5 directories subordinate to "media".
If you enable the media firewall option, you can tell the media firewall the absolute server location and name of the base "media" directory instead of blindly using the structure relative to the PGV install directory. The media firewall uses a .htacces file in the insecure "media" subdirectory to launch a PGV script for serving up the desired file, which would normally be outside the web addressable file space, whenever the requested file does not exist in the insecure "media" directory structure subordinate to the PGV install directory.
PGV's media firewall will construct the required .htaccess file when you move at least one file from the insecure "media" directory to the secure directory. The insecure directory requires 777 permissions to do this, but after things are set up, you can restore that directory's permissions to the normal 644 "read only" settings.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks a lot for your answer.
I found an other way todo, it's working pretty well.
You remember my pictures's path: /media/DATA/Famille/Genealogie/Personnes/Norvege/Photo_Sigurd_Torstein
The root for genealogy pictures is /Genealogie/
So I create a symbolic link(Genealogie) in PGV sub-folder /media/ to my /Genealogie/, modified the path in the gedcom to /media/Genealogie/, and put the levels of sub-folder to 2.
So the path is now: /media/Genealogie->Genealogie/Personnes/Norvege/Photo_Sigurd_Torstein
Even if it's well working, I'll try to use the media firewall as you explain to me.
Thanks again
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The purpose of the media firewall is to permit you to store your pictures in a server directory that's not accessible from the outside world.
Usually it is set up in conjunction with relocating the "index" directory to be in such a place, and the media firewall will then suggest that you keep your media files in a "media" directory within that relocated "index" directory. You don't have to follow this suggestion.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I actually use Gramps and plane to open a site with PhpGedView.
I first want to try it on my laptop, so I load Lamp, build a database with Phpmyadmin, create and load a Gedcom file. Everything is alright but my medias(jpeg pictures) doesn't appear.
The absolute paths for this pictures are alright in the Gedcom file and in the database table pgv_media.
I use some sub-folders, for example(Linux system): /media/DATA/Famille/Genealogie/Personnes/Norvege/Photo_Sigurd_Torstein.jpg where /media/ means external devices.
I found that PGV use inside its folder a sub-folder media/ and try to open media/Photo_Sigurd_Torstein.jpg(when I move the pictures to this sub-folder it's working).
How to keep my folders structure ? Without moving/duplicate the pictures during the test time.
Thanks
You can have the same folder structure, but within the server directory where PhpgedView is installed.
You need to configure the GEDCOM, Multimedia section, General group, "Multi-Media directory levels to keep" option. You'd have to set the value to at least 5 because you have 5 directories subordinate to "media".
If you enable the media firewall option, you can tell the media firewall the absolute server location and name of the base "media" directory instead of blindly using the structure relative to the PGV install directory. The media firewall uses a .htacces file in the insecure "media" subdirectory to launch a PGV script for serving up the desired file, which would normally be outside the web addressable file space, whenever the requested file does not exist in the insecure "media" directory structure subordinate to the PGV install directory.
PGV's media firewall will construct the required .htaccess file when you move at least one file from the insecure "media" directory to the secure directory. The insecure directory requires 777 permissions to do this, but after things are set up, you can restore that directory's permissions to the normal 644 "read only" settings.
Thanks a lot for your answer.
I found an other way todo, it's working pretty well.
You remember my pictures's path: /media/DATA/Famille/Genealogie/Personnes/Norvege/Photo_Sigurd_Torstein
The root for genealogy pictures is /Genealogie/
So I create a symbolic link(Genealogie) in PGV sub-folder /media/ to my /Genealogie/, modified the path in the gedcom to /media/Genealogie/, and put the levels of sub-folder to 2.
So the path is now: /media/Genealogie->Genealogie/Personnes/Norvege/Photo_Sigurd_Torstein
Even if it's well working, I'll try to use the media firewall as you explain to me.
Thanks again
The purpose of the media firewall is to permit you to store your pictures in a server directory that's not accessible from the outside world.
Usually it is set up in conjunction with relocating the "index" directory to be in such a place, and the media firewall will then suggest that you keep your media files in a "media" directory within that relocated "index" directory. You don't have to follow this suggestion.