User Tools

Site Tools


This is an old revision of the document!

Daily Admin Issue

Drupal Throw watchdog error

This error appear if variable name maxlength is exceeded.

To fix the error create/change value as suggested. (name varchar(48))

-- Table structure for table 'variable'
CREATE TABLE variable (
  VALUE longtext NOT NULL,
  PRIMARY KEY (name)

Locale Issue on Linux

Following error get generated on “perl -v”

perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),

In order to set locale you need to update following variable.

| /etc/sysconfig/i18n

That should do it.

Reset Zencart Password

Go to phpmyadmin - select Table “admin” from zencart database.
Select Edit for admin user and add following string in admin_pass field.


Now you should be login as admin / admin.

Reset WordPress Password

Go to phpmyadmin - select table “wp-users” from wordpress database.
Select Edit for admin user and replace values with following string in user_pass field.


Now you should be login as admin / admin.

SE Linux

Since most linux started providing SELinux there is many issue fixed by turning it off.
Eventually it has been introduced for really good reason. lets try to use it.

Issue with Zend Optimizer

After Default setup - Zend optimizer does not work on apache while php-cli working fine. There is few command need to be executed in order to make it work. - Add ZendOptimizer in Shared Context user.

#Enable Shared Context
chcon -t texrel_shlib_t /usr/lib64/php/modules/
#allow execstack and execmem for Zend´s binaries
execstack -c /usr/lib64/php/modules/

Reset Full Context

 touch /.autorelabel

Building Module from Type Enforcement

checkmodule -M -m -o mysql.mod mysql.te
semodule_package -o mysql.pp -m mysql.mod
semodule -i mysql.pp 

Telnet IMAP Test

To login to imap using telnet

telnet <server> 143
01 LOGIN <username> <password>
02 LIST "" *
03 SELECT <mailbox>

You can see information about mailbox :

04 STATUS <mailbox> (<status_code>)

Following status code available :


You can use “FETCH” command to view message.
Read following for any further information related to telnet / IMAP.

- Telnet imap
- In depth

Internet Proxy Using SSH

This is simple step to use internet from another computer / location.

ssh -N -D 8822 <username>@<Remote_server>

Now setup all your browser to use proxy socks5 port 8822.
You are all set.

daily_admin_issues.1316622302.txt.gz · Last modified: 2011/09/21 16:25 by k2patel