3

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...

Kristiono Setyadi
  • 5,635
  • 1
  • 19
  • 29
Shackrock
  • 4,601
  • 10
  • 48
  • 74

2 Answers2

2

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"

Samih3
  • 184
  • 3
  • 9
1

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

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

Community
  • 1
  • 1
Farray
  • 8,290
  • 3
  • 33
  • 37