User account menu

  • Log in
BXTra.net

[HOW-TO] Display pager in the top of the node in Drupal 6 with Zen Theme

By BXTra | 10:49 AM PST, Sat January 08, 2011
Drupal
I need to display pager for both top and bottom of the node for user to easily to move between pages. The one in the bottom is normally display but I want it to display in the top section also. To do that, Just put the following code :

<?php echo theme('pager', null, 1, 0, array(), 9); ?>

If you want to change the number of pages in the list, just change number 9 to anything you want.

When put that code in page.tpl.php, it will look like below :
  • Read more about [HOW-TO] Display pager in the top of the node in Drupal 6 with Zen Theme
  • Add new comment

[HOW-TO] DirectAdmin with mod_fcgid

By BXTra | 8:14 PM PST, Wed January 05, 2011
DirectAdmin
FastCGI
All steps below should be done with a new clean install of DirectAdmin. It is possible to make it work on the server that already have users on it. I did that and it works perfectly fine. However, the steps will be a bit different and it won't work if you just follow instruction below.

1. Copy and paste below command into your SSH
  • Read more about [HOW-TO] DirectAdmin with mod_fcgid
  • 18 comments
  • Add new comment

Drupal 7 is official released !!

By BXTra | 4:21 PM PST, Wed January 05, 2011
After nearly three years of intense community collaboration by nearly a thousand contributors, Drupal 7.0 is today officially released! Friendly and powerful: Drupal 7 We are proud to present to you our best work yet – Drupal 7, the friendly and powerful content management platform for building nearly any kind of website: from blogs and micro-sites to collaborative social communities. Easier to use
  • Read more about Drupal 7 is official released !!
  • Add new comment

Drupal 6.20 released

By BXTra | 5:51 PM PST, Wed December 15, 2010
Drupal 6.20, 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. Download Drupal 6.20 Here
  • Read more about Drupal 6.20 released
  • Add new comment

Use .htaccess on subfolders with Drupal

By BXTra | 6:48 PM PST, Mon November 08, 2010
Drupal
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.
  • Read more about Use .htaccess on subfolders with Drupal
  • Add new comment

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

By BXTra | 12:49 AM PDT, Thu October 28, 2010
Drupal
Views

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:

  • Read more about Drupal 6 + Views 2 : Created similar node based on Node Title
  • 1 comment
  • Add new comment

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

By BXTra | 1:55 AM PDT, Thu September 16, 2010
MySQL
CentOS
DirectAdmin
InnoDB

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
  • Read more about Replace normal " Build-in InnoDB" with "InnoDB Plugin" under DirectAdmin + CentOS 64 bits + MySQL 5.1
  • Add new comment

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

By BXTra | 1:56 AM PDT, Thu September 09, 2010
CentOS
Apache
FastCGI

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

  • Read more about Apache Error : [emerg] (28)No space left on device: mod_fcgid: Can't create global fcgid-proctbl mutex
  • 4 comments
  • Add new comment

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

By BXTra | 9:50 PM PDT, Wed September 01, 2010
CentOS
DirectAdmin

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

  • Read more about PECL Install Error: /bin/sh: bad interpreter: Permission denied
  • 2 comments
  • Add new comment

How to secure /tmp and /dev/shm Partition

By BXTra | 7:51 PM PDT, Sun August 29, 2010
CentOS

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

  • Read more about How to secure /tmp and /dev/shm Partition
  • Add new comment
Pagination
  • First page « First
  • Previous page ‹ Previous
  • …
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Current page 12
  • Page 13
  • Page 14
  • Page 15
  • Page 16
  • …
  • Next page Next ›
  • Last page Last »

  • Will the router get the Openvpn as a client option?
    6 years ago
  • cancellation
    6 years 1 month ago
  • Router ASUS RT-N12 D1 tomatoes passwort falsch
    7 years 8 months ago
  • WPS button = 30/30/30 hard reset button
    7 years 9 months ago
  • Save my day!
    8 years 3 months ago
  • How to
    8 years 6 months ago
  • Can i still access my modem (the one with the ISP provided)?
    8 years 6 months ago
  • A saving step!
    8 years 10 months ago
  • Problem with Asus n12e-c1
    8 years 11 months ago
  • don't use Hostgator
    9 years 2 months ago

© 2007 - 2023 BXTra.net. All Rights Reserved. 
Certain other content, photos and artwork displayed on BXTra.net are protected by copyright and are the property of their respective owners.

Privacy Policy