tomclegg.net


Diary
Examples
    256-router
    adzap
    apache-double-reverse
  >cacti-adodb-php4<
    debian-quota
    diskonmodule
    dynip
    ezmlm-linux
    fbsdhabits
    freebsdclone
    maildirpop3d-awfulhak
    mandy
    md
    mrtg
    net-snmp
    nodefaultroute
    oracle9i
    oracle9i-bsd5
    oracle9i-client
    oracle9i-nat
    php-cgi
    php-commandline
    php-image
    php-kics
    php-mini_httpd
    pinouts
    plesk-symlink-php
    pxe
    qmail-linux
    qmail-qfilter
    racoon-sonicwall
    redundant-vpn
    rewriterule
    seahorse-workaround
    setting-locale-failed
    smalldog
    snmpv3-cacti
    spamassassin
    squid-tproxy
    supfile
    suse73
    svc-nmbd
    svc-smbd
    svc-smtpd
    toyotastereo
    vm
    vn-file
    wmp-invalid
    xcode-remote-install
    xen-eth0-renamed
    xen3-ubuntu-dapper
Hire Tom
Mostly Mozart
Patches
School
Scrapbook
Software
Telephones




colocation
comments
davidireland
edsgranola
faq
funsites
goodlooking
goodmovies
houserules
liberating
resume
resume2
scratch
shopping
snacks
todo
university
warisbogus

Cacti vs. php4 and adodb
Posted March 17, 2009

After upgrading debian etch to lenny, cacti says:

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/share/php/adodb/adodb.inc.php on line 430

Solution:

aptitude remove php4-cli php4-mysql php4-common php4-snmp libapache-mod-php4

The following actions will resolve these dependencies:

Remove the following packages:
cacti  
libapache2-mod-php4

Score is 190

Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

Remove the following packages:
libapache2-mod-php4

Install the following packages:
php5-cli [5.2.6.dfsg.1-1+lenny2 (stable, stable)]
php5-snmp [5.2.6.dfsg.1-1+lenny2 (stable, stable)]

Score is 101

Accept this solution? [Y/n/q/?] Y
Then install libapache2-mod-php5
aptitude install libapache2-mod-php5
/etc/init.d/apache2 restart