UFF
bash-2.05# ls -d usr/local/apache2/htdocs/cacti-0.8.6b
usr/local/apache2/htdocs/cacti-0.8.6b
Problems of operation with SOLARIS
Moderators: Developers, Moderators
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.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,
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
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,
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,
Who is online
Users browsing this forum: No registered users and 1 guest