Difference between revisions of "Apache"

From WebOS Internals
Jump to navigation Jump to search
Line 1: Line 1:
 
I've successfully loaded apache/mysql/php/net-snmp onto the Pre, and tested it with a popular NMS tool "Cacti". It runs very well.
 
I've successfully loaded apache/mysql/php/net-snmp onto the Pre, and tested it with a popular NMS tool "Cacti". It runs very well.
  
All of the prerequisite packages were installed from optware (ipkg-opt install $packageName)
+
All of the prerequisite packages were installed from optware (ipkg-opt install apache mysql php-apache php-mysql net-snmp cron)
 
 
* http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/apache_2.2.11-1_arm.ipk
 
* http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/mysql_4.1.22-3_arm.ipk
 
* http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/php-apache_5.2.10-1_arm.ipk
 
* http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/php-mysql_5.2.10-1_arm.ipk
 
* http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/net-snmp_5.4.2.1-1_arm.ipk
 
* http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/cron_4.1-7_arm.ipk
 
  
 
Here are some screenshots:
 
Here are some screenshots:
Line 26: Line 19:
 
2. Configure apache to load the php module, and the appropriate directory assignments (ex. /cacti/)
 
2. Configure apache to load the php module, and the appropriate directory assignments (ex. /cacti/)
  
3. Install cron
+
3. Configure the cron job.
  
4. Configure whatever LAMP application you want to use
+
4. Configure whatever LAMP application you want to use.
  
 
5. Configure cron and init scripts to run at boot time.
 
5. Configure cron and init scripts to run at boot time.
  
 
6. Allow port 8000 traffic to specific interfaces. (iptables)
 
6. Allow port 8000 traffic to specific interfaces. (iptables)
 
More to follow!
 
  
 
-nebula
 
-nebula

Revision as of 02:54, 12 January 2010

I've successfully loaded apache/mysql/php/net-snmp onto the Pre, and tested it with a popular NMS tool "Cacti". It runs very well.

All of the prerequisite packages were installed from optware (ipkg-opt install apache mysql php-apache php-mysql net-snmp cron)

Here are some screenshots:

Cacti1.jpg

Cacti2.png

Cacti3.png

Detailed instructions to follow, I'm at work right now :(

Basic instructions are:

1. Install the above ipk's

2. Configure apache to load the php module, and the appropriate directory assignments (ex. /cacti/)

3. Configure the cron job.

4. Configure whatever LAMP application you want to use.

5. Configure cron and init scripts to run at boot time.

6. Allow port 8000 traffic to specific interfaces. (iptables)

-nebula