Tuesday, May 5, 2020

Qmail error while installing and configuraing

Qmail error while installing and configuraing

After installing Qmail, i tried to start qmail i got this error

[root@localhost qmail-smtpd]# qmailctl start
Starting qmail...

qmail-send supervise not running
qmail-smtpd supervise not running
qmail-pop3d supervise not running

I checked all the possible issues,

[root@localhost qmail-smtpd]# ls -l /service
total 0
lrwxrwxrwx 1 root root 32 2010-08-16 21:38 qmail-pop3d -> /var/qmail/supervise/qmail-pop3d
lrwxrwxrwx 1 root root 31 2010-08-16 21:38 qmail-send -> /var/qmail/supervise/qmail-send
lrwxrwxrwx 1 root root 32 2010-08-16 21:38 qmail-smtpd -> /var/qmail/supervise/qmail-smtpd

[root@localhost qmail-smtpd]# ps ax |grep supervise
10190 pts/1 T 0:00 supervise log
10332 pts/1 S+ 0:00 grep supervise

etc...........

Solution

'svscanboot' was not running

[root@localhost qmail-smtpd]# svscanboot &
[2] 10336
[root@localhost qmail-smtpd]# qmailctl start
Starting qmail...

Starting qmail-send
Starting qmail-smtpd
Starting qmail-pop3d

It works !!!! Seems like we have to reboot the server after installing daemontools.

How to untar a file in Sun Solaris10

Normally i am doing is like this " tar -xzvf file.tar.gz "
But here in Solaris10 its not working,

this will helps.

gunzip -c somefile.tar.gz |tar xvf -

How to upgrade php 5.1.6 to php5.3

My box is Centos 32bit

Following steps i have done, used yum remi repository

wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

yum --enablerepo=remi update php

Check php -v
rpm -qa | grep php

I forgot the admin user/password of moodle, but i have mysql access. How can i restore the admin password?

Login to the mysql prompt.
use table_name
update mdl_user set password='0192023a7bbd73250516f069df18b500' where  username='admin';
quit

I know moodle is using MD5 encryption.
The above mentioned is MD5 encryption of admin123

Login to the admin panel with password admin123 It works!!!