It's been a while since I touched Linux, I need to get CACTI up and running quick. When I login to the http://localhost/cacti. I get a directory listing, and all the php files will show up as text when I click on them.
I forced PHP-5.1 to use --with-mysql option but doesn't seem to work when I run the php -m command but don't see any instance of mysql.
Could someone help. I'm currently running RHAT 9 on VMWARE.
PHP Problem
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Better upgrade to 5.1.1 or downgrade to either 4.3.11 or 5.0.4.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
php problem
Is that the only answer?TheWitness wrote:Better upgrade to 5.1.1 or downgrade to either 4.3.11 or 5.0.4.
TheWitness
I'm having the same problem on a new install. running php -m & -v yields:
PHP 4.3.4 (cli) (built: Dec 10 2005 06:02:58)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
blowfish:/etc # php -m
[PHP Modules]
bcmath
bz2
calendar
ctype
curl
dba
dbase
domxml
exif
filepro
ftp
gd
gettext
gmp
iconv
imap
ldap
mbstring
mcal
mcrypt
mhash
mime_magic
mysql
odbc
openssl
overload
pcre
pgsql
posix
qtdom
readline
session
shmop
snmp
sockets
standard
swf
sysvsem
sysvshm
tokenizer
wddx
xml
xslt
yp
zlib
[Zend Modules]
PHP 4.3.4 (cli) (built: Dec 10 2005 06:02:58)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
So the mysql module is loaded but the index.php script is being run.
Older prototyped box has same version of PHP 4.3.4 running and it works.
Main difference is prototype box is running cacti 0.8.6c as opposed to the 0.8.6h that is on the new production server that only yields dir listings.
php problem solved
Solved the problem.
First tried other suggestion found in forums to add index.php as a defualt doc type in apace. That just led to the doc being downloaded by the browser.
Found the apache2_php4 module was not loaded.
Edit /etc/sysconfig/apache2 file. Under APACHE_MODULES added 'php4'
Restarted apache2 and I'm now able to access th login page.
First tried other suggestion found in forums to add index.php as a defualt doc type in apace. That just led to the doc being downloaded by the browser.
Found the apache2_php4 module was not loaded.
Edit /etc/sysconfig/apache2 file. Under APACHE_MODULES added 'php4'
Restarted apache2 and I'm now able to access th login page.
Who is online
Users browsing this forum: No registered users and 1 guest