Cacti Debian Install

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

heckler40
Posts: 21
Joined: Mon Oct 02, 2006 5:36 pm
Location: bash

Post by heckler40 »

JJX wrote:
heckler40 wrote: Another little tidbit. On my home test machine, I did install php5 and uninstall php4. I then tried to login into cacti and got the same error message in my second post. It was only when I reinstalled php4 and uninstalled php5 that I got it to work.

Code: Select all

It was only when I reinstalled php4
php4 was installed...and this didn't work. It was solved by installing php5, uninstalling php4, installing php4 and uninstalling php5.

This is what this thread is about. Am I missing something???

<edit>
Did you see this post above? I stated:
netmgmt:~# dpkg --list | grep php
ii libapache2-mod-php4 4.4.2-1.1 server-side, HTML-embedded scripting languag
ii libphp-adodb 4.72-0.1 The 'adodb' database abstraction layer for p
ii php4-cli 4.4.2-1.1 command-line interpreter for the php4 script
ii php4-common 4.4.2-1.1 Common files for packages built from the php
ii php4-mysql 4.4.2-1.1 MySQL module for php4
ii php4-odbc 4.4.2-1.1 ODBC module for php4
ii php4-pgsql 4.4.2-1.1 PostgreSQL module for php4
ii php4-snmp 4.4.2-1.1 SNMP module for php4
ii php4-sybase 4.4.2-1.1 Sybase / MS SQL Server module for php4
wwolkers
Posts: 24
Joined: Thu Sep 14, 2006 6:44 am

Post by wwolkers »

actually, the message that you should install php4 is correct :)

if I check what I have installed on my debian system:

dpkg -l | grep php
ii libapache2-mod-php4 4.4.2-1.1 server-side, HTML-embedd
ii libphp-adodb 4.72-0.1 The 'adodb' database abs
ii php-db 1.7.6-2 PHP PEAR Database Abstra
ii php-http 1.3.6-2 PHP PEAR module for HTTP
ii php-mail 1.1.6-2 PHP PEAR module for send
ii php-net-smtp 1.2.6-2 PHP PEAR module implemen
ii php-net-socket 1.0.6-2 PHP PEAR Network Socket
ii php-pear 5.1.6-1 PEAR - PHP Extension and
ii php-xml-parser 1.2.6-2 PHP PEAR module for pars
ii php4 4.4.2-1.1 server-side, HTML-embedd
ii php4-cli 4.4.2-1.1 command-line interpreter
ii php4-common 4.4.2-1.1 Common files for package
ii php4-gd 4.4.2-1.1 GD module for php4
ii php4-mysql 4.4.2-1.1 MySQL module for php4
ii php4-pear 4.4.2-1.1 PHP Extension and Applic
ii php4-snmp 4.4.2-1.1 SNMP module for php4
ii php5-cgi 5.1.6-1 server-side, HTML-embedd
ii php5-common 5.1.6-1 Common files for package
ii phpmyadmin 2.8.2-0.2 set of PHP-scripts to ad


I have the php4 package installed, you don't..
probably that's the package that does the configuration?
heckler40
Posts: 21
Joined: Mon Oct 02, 2006 5:36 pm
Location: bash

Post by heckler40 »

I'm confused now. You have more packages installed but that means I didn't have php4 installed???
trattos
Posts: 5
Joined: Thu Sep 28, 2006 4:36 pm
Location: Marseille (France)

Post by trattos »

Reset your Debian's config and use this how to step per step.
wwolkers
Posts: 24
Joined: Thu Sep 14, 2006 6:44 am

Post by wwolkers »

what I mean is... there is a package called php4.

you don't have that installed.
apt-get install php43
should fix that for you.

It probably won't contain much, but should do the trick. haven't looked at the package actually. Might even be a virtual package, in which case it'll only depend on all the packages you need to have a working php4 installation :)
heckler40
Posts: 21
Joined: Mon Oct 02, 2006 5:36 pm
Location: bash

Post by heckler40 »

I'm not sure what's in the package, but if you look above a couple posts I still don't have "php4" and it is working after I did the install, uninstall, install, uninstall thingy.
Saint Aardvark
Posts: 2
Joined: Sat Oct 21, 2006 11:07 pm

Here's what worked for me:

Post by Saint Aardvark »

As suggested earlier in the thread, edit /etc/php4/cli/php.ini and uncomment this line: ";extension=mysql.so". Do this by removing the semi-colon, so that the line just reads "extension=mysql.so". After this, it should work. (I'm not sure if the same thing needs to be done for /etc/php4/apache/php.ini or /etc/php4/apache2/php.ini, but it probably wouldn't hurt.)
coreyt
Posts: 3
Joined: Wed Feb 07, 2007 7:51 pm

Post by coreyt »

FYI I found this problem with Ubuntu as well.


apt-get remove php5-mysql

Then

apt-get install php5-mysql


That fixed the problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests