Skip to content
Permalink
Browse files

Bug: NONE

Submitted by: markd@opendarwin.org
Reviewed by:
Approved by:
Obtained from:
ui_msg changes only.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@18691 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Mark Duling
Mark Duling committed Jul 23, 2006
1 parent 3820ecd commit 964816350fa297bafa777a885bbf014d5f8e8303
Showing with 16 additions and 38 deletions.
  1. +16 −38 net/nedi/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.12 2006/06/02 20:09:02 markd Exp $
# $Id: Portfile,v 1.13 2006/07/23 00:28:25 markd Exp $

PortSystem 1.0

@@ -86,10 +86,7 @@ ui_msg "\n#### To complete the NeDi OS X installation ####
-Configure MySQL:
sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db

-Start MySQL:
sudo ${prefix}/share/mysql5/mysql/mysql.server start

-Set MySQL to run at system boot
-Start MySQL and set it to run at system boot:
sudo launchctl load -w /Library/LaunchDaemons/org.darwinports.mysql5.plist

NOTE: MySQL must have been installed with the +server variant in order to
@@ -99,50 +96,31 @@ ui_msg "\n#### To complete the NeDi OS X installation ####
Follow the instructions that were given after you executed 'mysql_install_db' above.


2) Download Apache 2 and PHP Binaries
2) Install PHP5 with SNMP support and Apache 2
------------------------------------------------
-Download Complete Apache 2 and Complete PHP
http://www.serverlogistics.com/downloads.php

Notes about Apache and PHP
----------------------------------
NeDi requires PHP with SNMP support enabled, which is a non-default option
and extremely challenging to compile into PHP. Complete PHP is a binary
installed PHP package with SNMP support and it requires Complete Apache 2.

sudo port install php5 +apache2 +mysql5 +snmp

3) Create an OS X NeDi user (or choose an existing one) using the Accounts
pane in System Preferences
sudo ${prefix}/apache2/bin/apxs -a -e -n \"php5\" libphp5.so


4) Install Complete Apache 2 (version 2.0.52
3) Turn on Apache 2
------------------------------------------------
-Turn off Personal Web Sharing
-Run Apache2.pkg installer
-Drag Apache2.prefPane to /Library/PreferencePanes
Create this folder if it does not exist
-Edit httpd.conf: pico /Library/Apache2/conf/httpd.conf
Turn off Apple's Apache 1.3 (Personal Web Sharing in System Preferences). Then execute
these commands:

User <nedi-user>
Group <nedi-group>
cd ${prefix}/apache2/conf
sudo cp httpd.conf.sample httpd.conf

-Start Apache 2 via System Preferences pane
Edit the user/group variables in the Apache 2 httpd.conf to be your selected NeDi user/group.


5) Install Complete PHP 4 (version 4.3.9)
------------------------------------------------
-Run PHP4.pkg installer
-Edit /Library/PHP4/lib/php.ini
mysql.default_socket = ${prefix}/var/run/mysql5/mysqld.sock
-Drag test.php to /Library/Apache2/htdocs
-Start Apache via the Apache 2 System Preferences pane
-Test PHP with this link: http://localhost/test.php
Start Apache 2 and set it to run at system boot:
sudo launchctl load -w /Library/LaunchdDaemons/org.darwinports.apache2.plist


6) Configure NeDi, initialize database, and Login to NeDi
4) Configure NeDi, initialize database, and Login to NeDi
-----------------------------------------------
-Set NeDi owner: sudo chown -R <nedi-user>:<nedi-group> ${prefix}/share/${name}/
-Apache symlink: ln -s ${prefix}/share/${name}/html/ /Library/Apache2/htdocs/nedi
-Apache symlink: ln -s ${prefix}/share/${name}/html/ ${prefix}/apache2/htdocs/nedi
-Edit nedi.conf Backend/Authen/Device Access sections: sudo pico ${prefix}/share/${name}/nedi.conf
Leave nedi.conf permissions at 600 to protect your network passwords!
backend MSQ
@@ -171,7 +149,7 @@ comm <my-commnity-string> (community string of your Cisco devices)
Initial user/pass is 'admin'/'admin'


7) Discover Your Network with NeDi
5) Discover Your Network with NeDi
-----------------------------------------------
-Edit the seedlist file: pico ${prefix}/share/${name}/seedlist
-Edit nedi.conf Device Acc. variables: sudo pico ${prefix}/share/${name}/nedi.conf

0 comments on commit 9648163

Please sign in to comment.
You can’t perform that action at this time.