cacti in a chroot environement

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
HAlex

cacti in a chroot environement

Post by HAlex »

Hello,

I am trying to install cacti on a chroot installation of apache and php4. But I cannot log into cacti (mysql access is working - tested with phpmyadmin). Everything work fine when I do not put apache in a jail. What do cacti really need in a chroot environement ?

a.
NC
Posts: 7
Joined: Tue Feb 24, 2004 2:15 pm
Location: FRANCE

cacti in a chroot environement

Post by NC »

Hi,

Be carreful with Mysql :
If you try to connect to "localhost",
the client try to open an UNIX socket "/tmp/mysql.sock".

If you use "127.0.0.1", the client will use TCP/IP stack
(connect to port tcp/3306).
This is what you want.
halex

Post by halex »

Sorry didn't help

In fact, the mysql connection is working well within cacti (tested by hacking the scripts), since I have made a hardlink of the mysql.sock file.

the problem seems to come from the auth_login.php script, I am still investigating.. If anybody have hints...;

a.
mtw00
Posts: 5
Joined: Mon Mar 08, 2004 10:40 am

Post by mtw00 »

Might want to do an 'strace -e trace=open php4 auth_login.php' and see if php4 is trying to open libraries that are outside your chroot environment.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests