The News‎ > ‎

Installing ActiveMQ, Stomp and LAMP on Ubuntu

posted Apr 13, 2013, 11:21 AM by Leigh Williams
Here is a short post with the most important websites and commands to get ActiveMQ, Stomp and LAMP up and running on Ubuntu for development. I won't recommend this for production usage as there are many more configuration options and settings to check out. Nonetheless, this will help you to be up and running in no time.

1.) (skip jmx section if not needed)
3.) udo apt-get install tasksel
4.) sudo tasksel install lamp-server
5.) sudo apt-get install php-pear
6.) sudo apt-get install php5-dev
7.) sudo pecl install stomp
8.) sudo gedit /etc/php5/cli/php.ini (add to ini file)
9.) sudo gedit /etc/php5/apache2/php.ini (add to ini file)
10.) My file is in /usr/lib/php5/20090626
11.) sudo /etc/init.d/apache2 restart
12.) sudo /etc/init.d/httpd restart
13.) create the following file in /var/www/test.php and add the contents
14.) Look for the Stomp section. Mine is version 1.0.5

important port numbers
ActiveMQ's default port number is 61616
STOMP default port number: 61613
ActiveMQ web interface: http://localhost:8161/admin - great to check out queues, topics, messages on these etc.

Thanks to everyone for their contributions and guides.