[Pgreet-users] Problems encountered and the things I did to fix them
Brought to you by:
elagache
From: Imtiaz A K. <kha...@gm...> - 2005-10-28 07:25:45
|
Here are some of the issues I faced and resolved while setting up Pgreet 1. Once the installation (Install.pl) is complete I ran PgreetConftest and recieved an error about missing Pgreet.pm I added it by using the following in all cgi/perl scripts in the distro: * *use lib '/home2/w/weathers/pg/pgreet/lib/'; * * here /home2/w/weathers is my home directory and pg is the directory into which I checked out pgreet from CVSNext on running the config testI recieved a list of errors for datadir, cgidir, tempdir etc. It seems that the install.pl does not take care of writing a clean pgreet.conf. 2. Next on running the config testI recieved a list of errors for datadir, cgidir, tempdir etc. It seems that the install.pl does not take care of writing a clean pgreet.conf. * replaced cgi-dir with my value of cgi-dir (some folks want to use an alternate to cgi-bin for security reasons) * the conf dir has an extra /conf at the end remove that * the images URL has a pgreet/images by default change that to where you installed pgreet in my case /ecards/images * the temp folder for sessions is /tmp it might not be accessible to user accounts change that to a folder in your home which has rights for Apache to write to (777 would be great to start with and whittle it down to saner permission levels after testing) * the log folder similarly is /var/log whcih will not work for some OS platforms (I changed this also to a user directory) 3. on startup pgreet daemon complains of *strict refs in pgreetd on line 1000*. Not sure what that implies but I commented out use strict in pgreetd and it was able to start up. 4. Then I got an error with regards to session files. Pgreet was unable to create state files. For that the permissions on TEMP directory had to be changed 5. Now I got *Not found 'pgreet_template.epl'* which is not in the distribution but is available when you do a CVS checkout. Even then it had to be manually copied to the templates folder from the source folder. 6. At this point everything seemed ok I was able to pull it up in the browser and customize a card and click send. Once that was done again it all crashed as I started getting these erors in my pgreet log: /Oct 28 00:17:20 pgreetd [19096] shutdown by signal - Error getting name to temp file from template pgreet-tmpfile-XXXXXX: Parent directory (.) is not writable at /home2/w/weathers/bin/pgreetd line 656 /Am stuck here as now it all shows up etc but since pgreetd is dying no card notifications are going out. I tried looking at the permissions and I guess thats where the problem lies. The session files are being written by www (the apache user) with permission 622 and my pgreet daemon is set to run as user weathers. Looking for the setting where I could maybe change permissions on the sessions files so that pgreetd can write to those and process them (I'm thinking this is it)/ / Warm Regards Imtiaz |