Buddy,

     Where is your "htdocs" directory? This directory holds all your default 
webpages that you see
when installing apache. Look for the "DocumentRoot" directive in your apache 
config this will
point to where HTML docs should live. When you find that directory follow the 
instructions below.


The easiest way to get jffnms going is to:

1. Install jffnms into /opt/jffnms (Don't forgett permissions):

        # groupadd jffnms
        # useradd -g jffnms -d /opt/jffnms -s /bin/false -c 'JFFNMS User' jffnms
        # usermod -G jffnms apache

. Unpack the release:
        # tar xvzf jffnms-0.8.x.tar.gz

    You will get a directory called jffnms-0.8.x/
        # mv jffnms-0.8.x /opt/jffnms

. Permissions
        # chown -R jffnms:jffnms /opt/jffnms
        # chmod 770 /opt/jffnms
        # chmod -R ug+rw /opt/jffnms

. Crontab
        Install the JFFNMS crontab file
        # crontab -u jffnms /opt/jffnms/docs/unix/crontab

        Now modify the values at the top if they don't match your system:
        # crontab -e -u jffnms

2. Create a symlink from your <YOUR-PATH>/htdocs/ directory that points to 
/opt/jffnms/htdocs/
   Run the command below in your -----"htdocs"---- directory.
        # ln -s /opt/jffnms/htdocs jffnms

3. To get to jffnms via Web Client Use: 
     
        http://<server-ip>/jffnms/index.php

--- Buddy Shearer <[EMAIL PROTECTED]> wrote:

> Sorry for the delay.  Had to work for a while to pay for this FreeBSD/JFFNMS
> fun I'm having ;)
> 
> Here is what I have: 
> /usr/local/etc
> total 104
> drwxr-xr-x  2 root  wheel    512 May  4 09:33 apache
> drwxr-xr-x  5 root  wheel    512 May  3 15:54 cups
> -r--r--r--  1 root  wheel   1480 Oct 15  2004 fam.conf
> -r--r--r--  1 root  wheel    848 Mar  5  2003 ksysguarddrc
> drwxr-xr-x  2 root  wheel    512 May  3 15:53 openldap
> drwxr-xr-x  2 root  wheel    512 May  3 15:53 openslp
> drwxr-xr-x  2 root  wheel    512 May  2 20:22 pam.d
> -r--r--r--  1 root  wheel     94 Nov  3  2004 php.conf
> -r--r--r--  1 root  wheel  38695 Nov  3  2004 php.ini-dist
> -r--r--r--  1 root  wheel  39526 Nov  3  2004 php.ini-recommended
> drwxr-xr-x  2 root  wheel    512 May  3 21:48 rc.d
> drwxr-xr-x  2 root  wheel    512 May  3 15:53 snmp
> drwxr-xr-x  3 root  wheel    512 May  3 16:01 xdg
> -r--r--r--  1 root  wheel    340 Oct 15  2004 xml2Conf.sh
> -r--r--r--  1 root  wheel    232 Oct 15  2004 xsltConf.sh
> 
> /usr/local/etc/apache
> total 212
> -rw-r--r--  1 root  wheel    348 May  3 21:48 access.conf
> -rw-r--r--  1 root  wheel    348 Nov  3  2004 access.conf-dist
> -rw-r--r--  1 root  wheel  36736 May  4 12:43 httpd.conf
> -rw-r--r--  1 root  wheel  36534 Nov  3  2004 httpd.conf-dist
> -rw-r--r--  1 root  wheel  36566 May  3 22:04 httpd.conf.bak
> -rw-r--r--  1 root  wheel  36749 May  4 12:34 httpd.conf~
> -rw-r--r--  1 root  wheel  12965 May  3 21:48 magic
> -rw-r--r--  1 root  wheel  12965 Nov  3  2004 magic-dist
> -rw-r--r--  1 root  wheel  15020 May  3 21:48 mime.types
> -rw-r--r--  1 root  wheel  15020 Nov  3  2004 mime.types-dist
> -rw-r--r--  1 root  wheel    357 May  3 21:48 srm.conf
> -rw-r--r--  1 root  wheel    357 Nov  3  2004 srm.conf-dist
> 
> /usr/local
> total 78
> drwxr-xr-x   2 root  wheel  15872 May  3 22:29 bin
> drwxr-xr-x  10 root  wheel    512 May  5 15:18 etc
> drwxr-xr-x  90 root  wheel  17408 May  3 22:29 include
> drwxr-xr-x   2 root  wheel    512 May  3 21:35 info
> drwxr-xr-x   6 root  wheel    512 May  3 16:17 kdevbdb
> drwxr-xr-x  13 root  wheel  26624 May  3 22:29 lib
> drwxr-xr-x   4 root  wheel    512 May  3 01:06 libdata
> drwxr-xr-x   8 root  wheel    512 May  3 21:48 libexec
> drwxr-xr-x  35 root  wheel   1024 May  3 22:29 man
> drwxr-xr-x   2 root  wheel    512 May  3 22:29 sbin
> drwxr-xr-x  49 root  wheel   1024 May  3 22:29 share
> drwxr-xr-x   6 root  wheel    512 May  3 21:48 www
> 
> /usr/local/www
> total 10
> lrwxr-xr-x  1 root  wheel    27 May  3 21:48 cgi-bin ->
> /usr/local/www/cgi-bin-dist
> drwxr-xr-x  2 root  wheel   512 May  3 21:48 cgi-bin-dist
> lrwxr-xr-x  1 root  wheel    24 May  3 21:48 data ->
> /usr/local/www/data-dist
> drwxr-xr-x  6 root  wheel   512 May  4 13:50 data-dist
> drwxr-xr-x  3 root  wheel  3584 May  3 21:48 icons
> drwxr-xr-x  2 root  wheel   512 May  3 21:48 proxy
> 
> My last incantation I tried placing jffnms in data-dist below.  And I did
> start getting Permission denied.  When I issued chmod and changed the files
> to full access I received Bad Authentication.
> 
> /usr/local/www/data-dist
> total 108
> drwxr-xr-x  5 root  wheel    512 May  4 13:50 admin
> -rw-r-----  1 root  wheel   2925 Mar  7 14:14 auth.php
> -rw-r-----  1 root  wheel    261 Mar  7 14:14 blank.php
> -rw-r-----  1 root  wheel   3657 Mar  7 14:14 controls.php
> -rw-r-----  1 root  wheel  20693 Mar  7 14:14 default.css
> -rw-r-----  1 root  wheel  15563 Mar  7 14:14 events.php
> -rw-r-----  1 root  wheel    733 Mar  7 14:14 frame_interfaces.php
> -rw-r-----  1 root  wheel    702 Mar  7 14:14 frame_interfaces_events.php
> drwxr-xr-x  3 root  wheel   2048 May  4 13:50 images
> -rw-r-----  1 root  wheel    917 Mar  7 14:14 index.php
> -rw-r-----  1 root  wheel   2278 Mar  7 14:14 login.php
> -rw-r-----  1 root  wheel    486 Mar  7 14:14 logout.php
> drwxr-xr-x  2 root  wheel    512 May  4 13:50 sounds
> -rw-r-----  1 root  wheel   2965 Mar  7 14:14 start.php
> -rw-r-----  1 root  wheel   9677 Mar  7 14:14 view_interfaces.php
> -rw-r-----  1 root  wheel   5801 Mar  7 14:14 view_interfaces_map_list.php
> -rw-r-----  1 root  wheel  17592 Mar  7 14:14 view_performance.php
> drwxr-xr-x  2 root  wheel   2560 May  4 13:50 views
> 
> I also, added my user list and groups below.
> root:*:0:0::0:0:Charlie &:/root:/bin/csh
> toor:*:0:0::0:0:Bourne-again Superuser:/root:
> daemon:*:1:1::0:0:Owner of many system processes:/root:/usr/sbin/nologin
> operator:*:2:5::0:0:System &:/:/usr/sbin/nologin
> bin:*:3:7::0:0:Binaries Commands and Source:/:/usr/sbin/nologin
> tty:*:4:65533::0:0:Tty Sandbox:/:/usr/sbin/nologin
> kmem:*:5:65533::0:0:KMem Sandbox:/:/usr/sbin/nologin
> games:*:7:13::0:0:Games pseudo-user:/usr/games:/usr/sbin/nologin
> news:*:8:8::0:0:News Subsystem:/:/usr/sbin/nologin
> man:*:9:9::0:0:Mister Man Pages:/usr/share/man:/usr/sbin/nologin
> sshd:*:22:22::0:0:Secure Shell Daemon:/var/empty:/usr/sbin/nologin
> smmsp:*:25:25::0:0:Sendmail Submission
> User:/var/spool/clientmqueue:/usr/sbin/nologin
> mailnull:*:26:26::0:0:Sendmail Default
> User:/var/spool/mqueue:/usr/sbin/nologin
> bind:*:53:53::0:0:Bind Sandbox:/:/usr/sbin/nologin
> proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/usr/sbin/nologin
> _pflogd:*:64:64::0:0:pflogd privsep user:/var/empty:/usr/sbin/nologin
> uucp:*:66:66::0:0:UUCP
> pseudo-user:/var/spool/uucppublic:/usr/local/libexec/uucp/uucico
> pop:*:68:6::0:0:Post Office Owner:/nonexistent:/usr/sbin/nologin
> www:*:80:80::0:0:World Wide Web Owner:/nonexistent:/usr/sbin/nologin
> nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/usr/sbin/nologin
> mysql:*:88:88::0:0:MySQL Daemon:/var/db/mysql:/sbin/nologin
> jffnms:*:1001:1001::0:0:JFFNMS user:/root/jffnms:/bin/csh
> 
> 
> wheel:*:0:root
> daemon:*:1:
> kmem:*:2:
> sys:*:3:
> tty:*:4:
> operator:*:5:root
> mail:*:6:
> bin:*:7:
> news:*:8:
> man:*:9:
> games:*:13:
> staff:*:20:
> sshd:*:22:
> smmsp:*:25:
> mailnull:*:26:
> guest:*:31:
> bind:*:53:
> proxy:*:62:
> authpf:*:63:
> _pflogd:*:64:
> uucp:*:66:
> dialer:*:68:
> network:*:69:
> www:*:80:
> nogroup:*:65533:
> nobody:*:65534:
> mysql:*:88:
> jffnms:*:1001:jffnms
> 
> //////////////// DONE NOW \\\\\\\\\\\\\\\\\\\\\\\
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Craig Small
> Sent: Wednesday, May 04, 2005 8:56 PM
> To: [email protected]
> Subject: Re: [jffnms-users] FreeBSD install
> 
> On Wed, May 04, 2005 at 09:04:38AM -0400, Buddy Shearer wrote:
> > All is loaded and configured according to available docs.  When I try 
> > to bring up the web site for the first time it tells me Forbidden.
> 
> Right let's steer away from the whole Gentoo whatever thing, because this
> has nothing at all to do with compiling.
> 
> Forbidden means one of two things:
>   1) The user your Apache server runs as is not allowed to read this
>      file, your standard Unix chmod,chown and friends help here.
>   2) The permission structure *within* Apache is not allowing it, this
>      is all the <Directory ... > clauses in the Apache config.
> 
> > I have tried chown and chmod but I am definately missing something and 
> > it is probably obvious.
> That's thing #1, so it must be #2. But, also check. su to the www-data or
> whatever Apache runs as and try to cat the file, also try to ls -l the
> directory.
> 
> The Apache error log will give you the reason, from the small amount I know
> about FreeBSD it has a policy of locking down hard, even more than Debian
> which is saying something. A fine policy, but it can bite you such as now.
> 
> I'd be sure that they would not allow any access outside the DocumentRoot
> directory, a sensible default really.
> 
> Something like this may help, assuming you have JFFNMS installed under
> /opt/jffnms
> 
> <Directory /opt/jffnms/htdocs>
>       Options Indexes
>       AllowOverride Node
>       Order allow,deny
>       Allow from all
> </Directory>
> 
>  - Craig
> -- 
> Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
> Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
> csmall at : enc.com.au                      ieee.org           debian.org
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win
> an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> _______________________________________________
> jffnms-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
> _______________________________________________
> jffnms-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jffnms-users
> 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to