Menu

Error when building Indexes

Help
Anonymous
2003-08-23
2003-08-25
  • Anonymous

    Anonymous - 2003-08-23

    I get an error message when I try to build my indexes, that reads :

    Warning: fopen(./index/temp.lock): failed to open stream: Permission denied in /home/heroldf/public_html/phpGedView/buildindex.php on line 68
    Unable to create index file. Make sure write permissions are available to the phpGedViewDirectory. Permissions may be restored once index files are written.

    Any ideas?  I have all my permissions set right according to what I've found about it.

    Thanks,
    Kelly

     
    • John Finlay

      John Finlay - 2003-08-25

      It is trying to create a temporary file called temp.lock in the index directory.  The temp.lock file is used to prevent multiple access to the buildindex.php script.  The file is deleted when the script is finished running.  I have come across times when this file is created, but never deleted.  If the file already exists, it could cause this error and you should delete it manually.

      If it doesn't exist, then there is a problem creating new files in the phpGedView/index directory.  Double check the write permissions have been set on the index directory.

      Executing the following command in a terminal shell will set the most liberal permissions on the index directory.

      chmod 777 /home/heroldf/public_html/phpGedView/index

      Then you should be able to build the indexes.  After the indexes are built , you can set more stringent/secure permissions if you want using the following command:

      chmod 775 /home/heroldf/public_html/phpGedView/index

      --John

       

Log in to post a comment.