Domanda

I have mysql_connect running with no problem on my site...

I have a script that i'm running from a CRON job, and here it decides to not work, and output these two errors:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ssh2.so' - /usr/lib64/php/modules/ssh2.so: cannot open shared object file: No such file or directory in Unknown on line 0

Fatal error: Call to undefined function mysql_connect() in /home/mysite/public_html/phpMySQLAutoBackup/files/schema_for_export.php on line 22

Yes, I'm using phpMySQLAutoBackup

Any ideas? This befuddles me...

È stato utile?

Soluzione

Similar to PHP Errors on a cronjob, works fine at prompt

Check your $PATH, permissions, & any environment variables...

Altri suggerimenti

The time I got one of these (Unable to load dynamic library ...) I was missing a module. In your case my guess would be that you're missing "libssh2"

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top