Archive for the ‘resolutions’ Category

Adjusting ServerLimit and ThreadLimit in Apache

No Comments »

I was having this issue for a couple weeks and couldn’t figure it out for the life of me. I would attempt to increase the ThreadLimit (and also ServerLimit) above the default of 64 on Apache on an RHEL6 box, but the change just simply would not take. I continually got the following error:

WARNING: ThreadsPerChild of 128 exceeds ThreadLimit value of 64
threads, lowering ThreadsPerChild to 64. To increase, please see the
 ThreadLimit directive.

Which didn’t make since, because I indeed set the ThreadLimit to 128.

Turns out, it was because I was restarting apache, rather than stopping, then starting it. -_____________-


Freebsd Apache mpm_worker

No Comments »

Building apache w/mpm_worker on FreeBSD breaks several ports. Add the following to /etc/make.conf in order to fix this issue:

APACHE_PORT=www/apache22-worker-mpm

FreeBSD and KDE4, adjusting KDM settings

No Comments »

On FreeBSD using KDE4, if you run into issues when trying to change Login Screen Settings under System Settings, such as receiving the error “Unable to authenticate/execute the action: (code 4)”, make sure you edit /usr/local/etc/dbus-1/system.conf and add the following (the commented section will already be there):

<!-- Config files are placed here that among other things, punch 
       holes in the above policy for specific services. -->
<includedir>/usr/local/kde4/etc/dbus-1/system.d</includedir>
<servicedir>/usr/local/kde4/share/dbus-1/system-services</servicedir>

Restarting dbus and logging out then logging in should suffice, otherwise just reboot. 🙂


Linux java on FreeBSD

No Comments »

So I installed Linux’s jdk1.6 on my FreeBSD box at work and had to add a few environmental variables in order to get everything working correctly. I added the following to my .bashrc:

export PATH=/usr/local/linux-sun-jdk1.6.0/bin:$PATH
export JAVADIR=/usr/local/linux-sun-jdk1.6.0/
export LD_LIBRARY_PATH=/usr/local/linux-sun-jdk1.6.0/jre/lib/i386/jli

I also needed to mount linprocfs; I just added the following to /etc/fstab, and ran mount linprocfs:

linprocfs /compat/linux/proc linprocfs rw 0 0

Hopefully these help someone out!