I have just installed phpgedview version 4.2.3 and cannot get the index file relocation to work.
I have moved the index folder from /home/user/public_html/phpgedview/index
to /home/user/index
and have changed the configuration file from ./index/ to ../../index/ but it reverts to ./index/ when I save it.
Any help will be greatly appreciated
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
why the relative address in the config? (and, did you set your permissions to change the file before you attempt to write to it?)
if you moved the file to /home/user/index then enter the absolute address to the index folder. But I suspect permissions.
And moving the folder is really not necessary as there is an .htaccess file on the original that should prevent hacking access. Also, if you don't use the SYNC feature (which you shouldn't IOHO), then you can remove the GEDCOM after it is imported.
Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Stephen:
The Help text says to use relative paths. In my opinion, that's preferable to using absolute paths.
I think you're right - the problem is probably that the config.php file doesn't have proper permissions. Also, the relocated index directory and its contents still need universal read/write/modify (0777) permissions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, I knew of the HELP, but I prefaced the statement to use absolute paths if he/she couldn't get the relative paths to work. However, I'm with you on most or all the permissions being wrong, and perhaps he/she didn't keep an INDEX folder in the original location as well. It is a good idea to keep one there. No need for the INDEX to be called INDEX when reloaded either. Mine are not. -Stephen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your thoughts
It doesn't matter whether I use relative or absolute paths - I try both each time I make a change.
/home/user/public_html/phpgedview/config.php permissions are 0777
/home/user/public_html/phpgedview/index folder is permisiioned 077 and contents still exist
/home/user/index folder and contents all have permissions of 0777
I imported a gedcom before realising that I would want to move the index file and have subsequently removed it.
Should I blow this install away and start fresh ?
Sorry if my questions are simple but this is my first attempt at web hosting and php ( steep learning curve )
Thanks again for your time
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Problem solved
I reloaded the index directory and config.php then moved the index directory before downloading the gedcom - the index is now defined by an absolute entry.
Thanks again for your help
Wilf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have just installed phpgedview version 4.2.3 and cannot get the index file relocation to work.
I have moved the index folder from /home/user/public_html/phpgedview/index
to /home/user/index
and have changed the configuration file from ./index/ to ../../index/ but it reverts to ./index/ when I save it.
Any help will be greatly appreciated
why the relative address in the config? (and, did you set your permissions to change the file before you attempt to write to it?)
if you moved the file to /home/user/index then enter the absolute address to the index folder. But I suspect permissions.
And moving the folder is really not necessary as there is an .htaccess file on the original that should prevent hacking access. Also, if you don't use the SYNC feature (which you shouldn't IOHO), then you can remove the GEDCOM after it is imported.
Stephen
Stephen:
The Help text says to use relative paths. In my opinion, that's preferable to using absolute paths.
I think you're right - the problem is probably that the config.php file doesn't have proper permissions. Also, the relocated index directory and its contents still need universal read/write/modify (0777) permissions.
Yes, I knew of the HELP, but I prefaced the statement to use absolute paths if he/she couldn't get the relative paths to work. However, I'm with you on most or all the permissions being wrong, and perhaps he/she didn't keep an INDEX folder in the original location as well. It is a good idea to keep one there. No need for the INDEX to be called INDEX when reloaded either. Mine are not.
-Stephen
Thanks for your thoughts
It doesn't matter whether I use relative or absolute paths - I try both each time I make a change.
/home/user/public_html/phpgedview/config.php permissions are 0777
/home/user/public_html/phpgedview/index folder is permisiioned 077 and contents still exist
/home/user/index folder and contents all have permissions of 0777
I imported a gedcom before realising that I would want to move the index file and have subsequently removed it.
Should I blow this install away and start fresh ?
Sorry if my questions are simple but this is my first attempt at web hosting and php ( steep learning curve )
Thanks again for your time
Problem solved
I reloaded the index directory and config.php then moved the index directory before downloading the gedcom - the index is now defined by an absolute entry.
Thanks again for your help
Wilf