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.) http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.html (skip jmx section if not needed) 2.) http://www.supertom.com/code/activemq-php-stomp-quickstart.html 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 extension=stomp.so to ini file) 9.) sudo gedit /etc/php5/apache2/php.ini (add extension=stomp.so to ini file) 10.) My stomp.so 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 <?php phpinfo(); ?> 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. |
The News >