Changeset 18691 for trunk/dports
- Timestamp:
- Jul 23, 2006, 12:28:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/net/nedi/Portfile
r18210 r18691 1 # $Id: Portfile,v 1.1 2 2006/06/02 20:09:02markd Exp $1 # $Id: Portfile,v 1.13 2006/07/23 00:28:25 markd Exp $ 2 2 3 3 PortSystem 1.0 … … 87 87 sudo -u mysql ${prefix}/lib/mysql5/bin/mysql_install_db 88 88 89 -Start MySQL: 90 sudo ${prefix}/share/mysql5/mysql/mysql.server start 91 92 -Set MySQL to run at system boot 89 -Start MySQL and set it to run at system boot: 93 90 sudo launchctl load -w /Library/LaunchDaemons/org.darwinports.mysql5.plist 94 91 … … 100 97 101 98 102 2) Download Apache 2 and PHP Binaries99 2) Install PHP5 with SNMP support and Apache 2 103 100 ------------------------------------------------ 104 -Download Complete Apache 2 and Complete PHP 105 http://www.serverlogistics.com/downloads.php 101 sudo port install php5 +apache2 +mysql5 +snmp 106 102 107 Notes about Apache and PHP 108 ---------------------------------- 109 NeDi requires PHP with SNMP support enabled, which is a non-default option 110 and extremely challenging to compile into PHP. Complete PHP is a binary 111 installed PHP package with SNMP support and it requires Complete Apache 2. 103 sudo ${prefix}/apache2/bin/apxs -a -e -n \"php5\" libphp5.so 112 104 113 105 114 3) Create an OS X NeDi user (or choose an existing one) using the Accounts 115 pane in System Preferences 106 3) Turn on Apache 2 107 ------------------------------------------------ 108 Turn off Apple's Apache 1.3 (Personal Web Sharing in System Preferences). Then execute 109 these commands: 110 111 cd ${prefix}/apache2/conf 112 sudo cp httpd.conf.sample httpd.conf 113 114 Edit the user/group variables in the Apache 2 httpd.conf to be your selected NeDi user/group. 115 116 Start Apache 2 and set it to run at system boot: 117 sudo launchctl load -w /Library/LaunchdDaemons/org.darwinports.apache2.plist 116 118 117 119 118 4) Install Complete Apache 2 (version 2.0.52 119 ------------------------------------------------ 120 -Turn off Personal Web Sharing 121 -Run Apache2.pkg installer 122 -Drag Apache2.prefPane to /Library/PreferencePanes 123 Create this folder if it does not exist 124 -Edit httpd.conf: pico /Library/Apache2/conf/httpd.conf 125 126 User <nedi-user> 127 Group <nedi-group> 128 129 -Start Apache 2 via System Preferences pane 130 131 132 5) Install Complete PHP 4 (version 4.3.9) 133 ------------------------------------------------ 134 -Run PHP4.pkg installer 135 -Edit /Library/PHP4/lib/php.ini 136 mysql.default_socket = ${prefix}/var/run/mysql5/mysqld.sock 137 -Drag test.php to /Library/Apache2/htdocs 138 -Start Apache via the Apache 2 System Preferences pane 139 -Test PHP with this link: http://localhost/test.php 140 141 142 6) Configure NeDi, initialize database, and Login to NeDi 120 4) Configure NeDi, initialize database, and Login to NeDi 143 121 ----------------------------------------------- 144 122 -Set NeDi owner: sudo chown -R <nedi-user>:<nedi-group> ${prefix}/share/${name}/ 145 -Apache symlink: ln -s ${prefix}/share/${name}/html/ /Library/Apache2/htdocs/nedi123 -Apache symlink: ln -s ${prefix}/share/${name}/html/ ${prefix}/apache2/htdocs/nedi 146 124 -Edit nedi.conf Backend/Authen/Device Access sections: sudo pico ${prefix}/share/${name}/nedi.conf 147 125 Leave nedi.conf permissions at 600 to protect your network passwords! … … 172 150 173 151 174 7) Discover Your Network with NeDi152 5) Discover Your Network with NeDi 175 153 ----------------------------------------------- 176 154 -Edit the seedlist file: pico ${prefix}/share/${name}/seedlist
Note: See TracChangeset
for help on using the changeset viewer.