Use .htaccess on subfolders with Drupal

Category:

My objective is to protect XCache Admin directory under drupal website. The build-in authentication by XCache doesn't work correctly with mod_fcgi setup. I have no idea why. (It works perfectly with mod_php) So, I just tried to use .htaccess and .htpassword to protect that XCache Admin directory instead.

Drupal 6 + Views 2 : Created similar node based on Node Title

Category:

I need my node to show related nodes below it. Since I know that my Node Title will be very similar in the name but different Season or Number like example below. Node 1 - Final Destination DVD Node 2 - Final Destination DVD 2 Node 3 - Final Destination DVD 3 Node 4 - Lost Season 1 Node 5 - Lost Season 2 When I open Node 1, links to Node 2 and Node 3 should be there below the content. When I open Node 5, links to Node 4 should be there below the content. I can do that by set Views as below:

Replace normal " Build-in InnoDB" with "InnoDB Plugin" under DirectAdmin + CentOS 64 bits + MySQL 5.1

For some reason, under CentOS, Custombuild in DirectAdmin use "MySQL - Generic Linux (glibc 2.3) (x86, 64-bit) RPM file" instead of MySQL RPM files for Redhat. The different for these 2 packages are that, RPM for Redhat contain "ha_innodb_plugin.so" but not in Generic RPM package.

Compare files in Plugin folder on two different RPM.


MySQL Linux Generic RPM


MySQL Linux Redhat RPM

Apache Error : [emerg] (28)No space left on device: mod_fcgid: Can't create global fcgid-proctbl mutex

My server run DirectAdmin with mod_fcgid installed. After I tuned MySQL. I, then, restarted both httpd and MySQL service. Both services started without any problem but I can't access my website at all. After I checked my Apache Error log, I found an error which said :

[emerg] (28)No space left on device: mod_fcgid: Can't create global fcgid-proctbl mutex
After search around how to fix this problem, I believe it's something about IPCS. Try run
# ipcs -a

PECL Install Error: /bin/sh: bad interpreter: Permission denied

When I tried to use PECL to install APC. I got error below : # pecl install apc downloading APC-3.0.19.tgz ... Starting to download APC-3.0.19.tgz (115,735 bytes) .........................done: 115,735 bytes 47 source files, building WARNING: php_bin /usr/local/php5/bin/php appears to have a suffix 5/bin/php, but config variable php_suffix does not match running: phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519

How to secure /tmp and /dev/shm Partition

Category:

How to secure /tmp if we didn't partition /tmp when installed CentOS. Also, secure /dev/shm to protect rootkits. 1. Secure /tmp partition 1.1: Backup your fstab file cp /etc/fstab /etc/fstab.bak 1.2: Creating tmpMnt partition file (~ 1Gb in size) cd /var dd if=/dev/zero of=tmpMnt bs=1024 count=1048576 1.3: Format new partition mkfs.ext3 -j /var/tmpMnt It will show /var/tmpMnt is not a block special device. Proceed anyway? (y,n) Just press Y

Drupal 6.19 and 5.23 released

Drupal 6.19 released, fixing security issues The nineteenth maintenance release of the Drupal 6 series. Only bugfixes have been committed. No security fixes are included in this release. New features are only being added to the forthcoming Drupal 7.0 release. This release includes the security fixes from Drupal 6.18 which was released alongside Drupal 6.19. No additional security fixes are included. The complete list of changes committed since Drupal 6.17 are as follows:

Drupal 6.17 released

Drupal 6.17 released, fixing security issues Drupal 6.17, a maintenance release fixing issues reported through the bug tracking system, is now available for download. There are no security fixes in this release. Upgrading your existing Drupal 6 sites is recommended. For more information about the Drupal 6.x release series, consult the Drupal 6.0 release announcement.

How to install Memcached on CentOS (with DirectAdmin installed) + Memcached PECL

After I was done with install Memcached on CentOS a while ago, I just know today that there are 2 different PECL modules. One is "Memcache PECL" while another is "Memcached PECL". The one I did before is "Memcache PECL", so, now, I try to install "Memcached PECL" which is newer and require libmemcached library. The content below is almost exactly to my previous Memcache PECL installed. Only a few changes to install Memcached PECL instead.

How to install Memcached on CentOS (with DirectAdmin installed) + Memcache PECL

I just want to try if Memcached can really help my server load or not. So, I look around to find the way how to do it. There are a couple ways but to me, below are what I did to installed it. Get Libevent which is require to install Memcached. Their homepage is here -> http://www.monkey.org/~provos/libevent/ wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz tar -xvf libevent-1.4.13-stable.tar.gz cd libevent-1.4.13-stable ./configure;make;make install; Then, get Memcached from http://memcached.org

Pages

Subscribe to BXTra.net RSS