Unable to log in to Cacti (new install)

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

Moderators: Developers, Moderators

Post Reply
sclements
Posts: 2
Joined: Tue Nov 13, 2007 8:12 pm

Unable to log in to Cacti (new install)

Post by sclements »

Greetings all! I am new to Cacti and am installing it on an OpenBSD 4.2 machine. I am unable to log into the User Login screen for the first time. When I use the default credentails of admin/admin, it returns me to the log in screen with no error. When I try any other credentials, it returns:
Invalid User Name/Password Please Retype

Checking my httpd access log, I get the following when I try to log in:
[Tue Nov 13 19:15:57 2007] [error] PHP Warning: session_start(): open(/tmp/sess_60143d56c8d851bcca2cd159459077a1, O_RDWR) failed: No such file or directory (2) in /htdocs/cacti-0.8.7/include/global.php on line 119
[Tue Nov 13 19:15:57 2007] [error] PHP Warning: Unknown(): open(/tmp/sess_60143d56c8d851bcca2cd159459077a1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Tue Nov 13 19:15:57 2007] [error] PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
[Tue Nov 13 19:15:57 2007] [error] PHP Warning: session_start(): open(/tmp/sess_60143d56c8d851bcca2cd159459077a1, O_RDWR) failed: No such file or directory (2) in /htdocs/cacti-0.8.7/include/global.php on line 119
[Tue Nov 13 19:15:57 2007] [error] PHP Warning: Unknown(): open(/tmp/sess_60143d56c8d851bcca2cd159459077a1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
[Tue Nov 13 19:15:57 2007] [error] PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

When I look at /tmp, I see the following permissions set:
drwxrwxrwt 4 root wheel 512 Nov 13 19:20 tmp

but I see no temp files actually being created in there (it is empty).

The only thing that was strange about the install was on the installation file location checks, it was unable to locate any of my binaries. I did a which and confirmed that they were all there and executable and I double (and triple) checked the paths and they were correct. It did locate the logfile path and showed it as okay. The log file 'cacti.log' in the logs folder is empty. I'd love to continue on with cacti but am stumped. Any advice anyone can offer would be much appreciated!
Thanks in advance. -Sam
sclements
Posts: 2
Joined: Tue Nov 13, 2007 8:12 pm

on OpenBSD

Post by sclements »

By default, httpd will chroot(2) to the ``ServerRoot'' path, serving documents from the ``DocumentRoot'' path. As a result of the default secure behaviour, httpd cannot access any objects outside ``ServerRoot'' - this security measure is taken in case httpd is compromised.


To work around this, you can add -u to the httpd startup in /etc/rc.conf
httpd_flags="-u"

I can now log in and will see if I run into any other issues!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests