Difference between revisions of "Apache"

From WebOS Internals
Jump to navigation Jump to search
 
(3 intermediate revisions by 2 users not shown)
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:
  
[[http://i40.tinypic.com/2lbmb84.jpg Screenshot 1]]
+
[[Image:Cacti1.jpg]]
 
 
[[http://i41.tinypic.com/v58wm8.png Screenshot 2]]
 
  
[[http://i41.tinypic.com/6xx2zn.png Screenshot 3]]
+
[[Image:Cacti2.png]]
  
Detailed instructions to follow, I'm at work right now :(
+
[[Image:Cacti3.png]]
  
 
Basic instructions are:
 
Basic instructions are:
  
 
1. Install the above ipk's
 
1. Install the above ipk's
 +
 
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
+
 
4. Configure whatever LAMP application you want to use
+
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.
 
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

Latest revision as of 21:37, 28 October 2011

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

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