Problems of operation with SOLARIS

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

Moderators: Developers, Moderators

Guest

Post by Guest »

UFF :oops:

bash-2.05# ls -d usr/local/apache2/htdocs/cacti-0.8.6b
usr/local/apache2/htdocs/cacti-0.8.6b
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

Post by zanaguara »

Anonymous wrote:UFF :oops:

bash-2.05# ls -d usr/local/apache2/htdocs/cacti-0.8.6b
usr/local/apache2/htdocs/cacti-0.8.6b
Ooopps, I'm sorry, try:

bash-2.05# ls -ld usr/local/apache2/htdocs/cacti-0.8.6b

I suppose "nobody" has not permission to write under cacti directory.
KARLOS

Post by KARLOS »

bash-2.05# ls -ld usr/local/apache2/htdocs/cacti-0.8.6b
drwxr-xr-x 11 500 100 1536 Dec 21 08:23 usr/local/apache2/htdocs/cacti-0.8.6b

regards,
zanaguara
Cacti User
Posts: 60
Joined: Tue Nov 16, 2004 10:33 am
Location: Spain

Post by zanaguara »

KARLOS wrote:bash-2.05# ls -ld usr/local/apache2/htdocs/cacti-0.8.6b
drwxr-xr-x 11 500 100 1536 Dec 21 08:23 usr/local/apache2/htdocs/cacti-0.8.6b

regards,
Ok, your cacti installation is owned by user 500 and group 100. And apache is being executed by "nobody" (on Solaris nobody's uid is 60001). Your cacti installation is only writable by user 500 (drwxr-xr-x), so "nobody" has no permission to write under cacti-0.8.6b.

There are several approaches to work around this issue:

a) The shortest (I prefer the other):

being root, execute:

# chmod -R 777 /usr/local/apache2/htdocs/cacti-0.8.6b

b) Recommended:

- create cacti user:

# mkdir /export/home
# groupadd -g 100 cacti
# useradd -u 500 -g cacti -s /usr/bin/bash -d /export/home/cacti -m cacti
# passwd cacti

- change User in httpd.conf, so

User cacti

- restart apache

Now it should work. If not:

- being root:

# chown -R cacti:cacti /usr/local/apache2/htdocs/cacti-0.8.6b

Hope this help,

regards,

zanaguara
Guest

Post by Guest »

i get this results but not go


bash-2.05# grep User usr/local/apache2/conf/httpd.conf
# User/Group: The name (or #number) of the user/group to run httpd as.
# . On SCO (ODT 3) use "User nouser" and "Group nogroup".
User cacti
# UserDir: The name of the directory that is appended onto a user's home
UserDir public_html
# Control access to UserDir directories. The following is an example
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%{User-agent}i" agent
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
bash-2.05# ls -ld usr/local/apache2/htdocs/cacti-0.8.6b
drwxrwxrwx 11 cacti cacti 1536 Dec 21 08:23 usr/local/apache2/htdocs/cacti-0.8.6b

KARLOS

regards,
KARLOS

Post by KARLOS »

At the end, putting the following command in crontab of user root functions well. Graphics and data are generated.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/php
/usr/local/apache2/htdocs/cacti-0.8.6b/poller.php

Thanks to Zanaguara
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests