User Tools

Site Tools


daily_admin_issues

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 (
  name VARCHAR(48) NOT NULL DEFAULT '',
  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
LANG="en_US.UTF-8"

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.

351683ea4e19efe34874b501fdbf9792:9b

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.

21232f297a57a5a743894a0e4a801fc3

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/ZendOptimizer.so
 
#allow execstack and execmem for Zend´s binaries
execstack -c /usr/lib64/php/modules/ZendOptimizer.so

Reset Full Context

 genhomedircon
 touch /.autorelabel
 reboot 

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 :

MESSAGES
UNSEEN
RECENT
UIDNEXT
UIDVALIDITY

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

- Telnet imap
- In depth

daily_admin_issues.1312484867.txt.gz · Last modified: 2020/08/10 02:29 (external edit)