I running a PHP script with cron that uses phpseclib installed via composer (version 0.3.9). I'm using Net_SFTP to check an sFTP server for new files. Everything is working fine, but the script is generating this warning:
(process:16615): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied
The script is run by the apache user. The warning will show up even without doing a login. Just instantiating the Net_SFTP class will trigger this, and I only see it when ran from the cron job. Here is the code:
<?php
$host = 'my.sftp.server';
$test = new Net_SFTP($host);
The cron for apache is configured like this:
MAILTO=myEmail@example.com
*/10 * * * * /usr/bin/php /var/www/sftpCheck.php
The error appears from the stderr output when the cron script runs. Any ideas what this warning is and how I can correct it?