Category Archives: Tips, Tricks, and Troubleshooting

Building a hardened LAMP web server.

Here we will cover some steps you can take to make sure that your LAMP (Linux, Apache, MySQL, PHP) server is secure. Ideally you would not normally run all 3 components on the same server, but in some cases it is overkill to separate them. For example this particular site is hosted on a virtual […]

Posted in Tips, Tricks, and Troubleshooting | Comments closed

ActiveMQ Starved DB Connections

This is indicated by the following error: 2011-12-18 01:25:29,132 [erSimpleAppMain] WARN JDBCPersistenceAdapter – Could not get JDBC connection: Network error IOException: Connection refused: connect java.sql.SQLException: Network error IOException: Connection refused: connect at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:410) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at net.sourceforge.jtds.jdbcx.JtdsDataSource.getConnection(JtdsDataSource.java:188) at net.sourceforge.jtds.jdbcx.JtdsDataSource.getConnection(JtdsDataSource.java:137) at org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:58) at org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doGetLastMessageStoreSequenceId(DefaultJDBCAdapter.java:159) at org.apache.activemq.store.jdbc.JDBCPersistenceAdapter.getLastMessageBrokerSequenceId(JDBCPersistenceAdapter.java:230) at org.apache.activemq.broker.region.DestinationFactoryImpl.getLastMessageBrokerSequenceId(DestinationFactoryImpl.java:145) at org.apache.activemq.broker.region.RegionBroker.(RegionBroker.java:122) at org.apache.activemq.broker.jmx.ManagedRegionBroker.(ManagedRegionBroker.java:99) at org.apache.activemq.broker.BrokerService.createRegionBroker(BrokerService.java:1830) […]

Posted in Tips, Tricks, and Troubleshooting | Comments closed

Using NTLM authentication with Jira 4.4

This one took me a while to find so I am going to repost it here. Unfortunately with the newer version of Jira you can not leave the username/password blank on the db configuration screen. http://confluence.atlassian.com/pages/viewpage.action?pageId=262471708   Symptoms During startup JIRA throws a BlankStringArgumentException. The database connection doesn’t work. The following appears in the atlassian-jira.log: […]

Posted in Tips, Tricks, and Troubleshooting | Comments closed

Free Class 1 SSL Certificate

StartSSL offers free SSL certs, Ars wrote a nice article on how to get one and install it on your server. http://arstechnica.com/security/news/2009/12/how-to-get-set-with-a-secure-sertificate-for-free.ars

Posted in Tips, Tricks, and Troubleshooting | Comments closed

Cisco Router Cheat Sheet Adding ports to a Vlan

To change to privileged mode: enable Show existing VLAN’s: show vlan Change to configuration mode mode: configure terminal Switch to configuration for port 3: interface fastethernet 0/3 Change port to vlan 10: switchport access vlan 10

Also posted in Cisco | Comments closed

Xen Bridge Loops

We discovered this problem after setting up 2 Xen boxes each with 2 network cards on separate switches. It seems like it should have worked, however whenever we activated the second card on the second box it would start throwing errors on the switch and shutdown the network. Here is the solution. Basically you have […]

Also posted in Xen | Comments closed

Simple NFS setup

edit /etc/exports add a line like this /opt/ 192.168.0.0/24(rw) this shares /opt with the 192.168.0.0/24 subnet On the client use mount 192.168.0.25:/opt /opt This mounts /opt on 192.168.0.25 to the clients /opt directory /opt must exist

Also posted in NFS | Comments closed

Cisco VPN 3000 Error

Lan to Lan tunnel 43178 01/16/2009 17:41:39.290 SEV=4 IKE/100 RPT=2519 xxx.xxx.xxx.xxx Group [VPNC_Base_Group] Received encrypted Oakley Main Mode packet with invalid payloads, MsgId (0x00000000) This can be caused by a client that does not support groups, use the default preshared key on the client. Configuration/User Management/Base Group

Also posted in Cisco | Comments closed

Print Disk Partitions in Solaris

To print out the partitions on a disk in Solaris, use the format command. WARNING: this utility will also wipe out everything on your disk if you ask it to. bash-3.00# format Searching for disks…done AVAILABLE DISK SELECTIONS: 0. c0t0d0 /pci@1f,4000/scsi@3/sd@0,0 1. c0t1d0 /pci@1f,4000/scsi@3/sd@1,0 2. c3t2d0 /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@2,0 3. c3t3d0 /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@3,0 Specify disk (enter its number): […]

Also posted in Solaris | Comments closed

Easy Amanda Client Install on Solaris 8,9,10

First install BlastWave installer  http://www.blastwave.org/howto.html install Amanda /opt/csw/bin/pkgutil –install gzip edit inetd.conf vi /etc/inetd.conf make sure amanda line looks like this amanda dgram udp wait amanda /opt/csw/libexec/amandad amandad on 8 and 9 restart inetd /usr/bin/pkill -HUP inetd on 10 install the inetd inetconv edit the amandahosts file vi /opt/csw/etc/amanda/.amandahosts change permissions chmod 600 /opt/csw/etc/amanda/.amandahosts install […]

Also posted in Solaris | Comments closed