@anonymous-piwik-user opened this Issue on March 3rd 2010

Hello!
My OS: CentOS
Piwik vers: 0.5.4
I have a Zend Server Community Edition and mysql 5.0.77
Piwik works good, very good). pdo_mysql - is up and running. All excellent.

But when you run the script:
piwik/misc/cron/archive.sh

You get an error:
#0 / ...path.../libs/Zend/Db/Adapter/Pdo/Mysql.php (96): Zend_Db_Adapter_Pdo_Abstract-> _connect ()
#1 / ...path.../core/Db/Pdo/Mysql.php (30): Zend_Db_Adapter_Pdo_Mysql-> _connect ()
#2 / ...path.../core/Piwik.php (1479): Piwik_Db_Pdo_Mysql-> getConnection ()
#3 / ...path.../core/FrontController.php (218): Piwik:: createDatabaseObject ()
#4 / ...path.../index.php (103): Piwik_FrontController-> init ()
#5 (main)

Thank you.

@robocoder commented on March 3rd 2010 Contributor

Check your PATH (and lib path). When you use archive.sh, you're using php-cli -- depending on your PATH, this could be Zend Server or the pre-built php binaries that came with your original CentOS install.

@anonymous-piwik-user commented on March 9th 2010

Where can directly set the path to pdo_mysql, which would archive.sh saw him?

@robocoder commented on March 9th 2010 Contributor

That's not what I said.

The problem is that archive.sh is finding your old php binary instead of the Zend Server version. Check your PATH. You might have to do something like editing your PATH, customizing archive.sh for your environment, or creating a soft-link, eg

ln -s /usr/local/zend/bin/php-cli /usr/bin/php
@anonymous-piwik-user commented on March 9th 2010

Write:

for TEST_PHP_BIN in php5 php; do
      if which /usr/local/zend/bin/php >/dev/null 2>/dev/null; then
        PHP_BIN=`/usr/local/zend/bin/php`
        break
      fi
    done

But it became an error:

The mysql driver is not currently installed

Mysql - installed, and - works fine.:

rpm-qa | grep mysql
libdbi-dbd-mysql-0.8.1a-1.2.2
mysql-5.0.77-4.el5_4.1
mysql-server-5.0.77-4.el5_4.1
mysql-5.0.77-4.el5_4.1
mysql-devel-5.0.77-4.el5_4.1
mysql-bench-5.0.77-4.el5_4.1
mysql-connector-odbc-3.51.26r1127-1.el5
mysql-devel-5.0.77-4.el5_4.1

What to do? What data are needed to solve this problem?

@robocoder commented on March 9th 2010 Contributor

Please don't use Trac for technical support.

I have posted my response in the forum where you re-opened a thread.

http://forum.piwik.org/index.php?showtopic=5401

Thanks.

This Issue was closed on March 9th 2010
Powered by GitHub Issue Mirror