Repair or Optimize all MySQL Databases in SSH

mysqlcheck gives you this ability to repair, optimize and analyze databases stored in your server. one of the good uses of this app is to mass repair, optimize or analyze all the existing databases on the server.

In order to achieve any of those mysqlcheck can be used as below:

 

Incoming search terms:

  • repair all database hazaveh
  • hazaveh all mysql
  • hazaveh organize database
  • mysql repair all hazaveh
  • mysqlcheck reindex

Completely disable email on single cPanel Account

A week ago one of our clients account been compromised and the attacker used the server to blast emails. as a system administrator my task was to prevent any outgoing email from the account before I start to investigate the attack and remove any kind of scripts from the hosting account. Studying cPanel files made me to come around following solution.

To disable email for one account we can change the permission of /etc directory for that particular user, using our root power.

simply use following commands:

 

You need to replace username with your user username. Once this is done the user will not be able to send anymore emails from local server. To undo this you should run the chattr once more:

 

That’s it, Stay safe… out of spam!

Incoming search terms:

  • mail taijin net
  • panel mail
  • mahdi mail
  • cpanel disable single email account
  • disable email account in cpanel
  • how to disable email account in cpanel
  • how to diable email account in cpanel
  • cpanel turn off email
  • disable email account cpanel
  • cpanel disable email for account

503 Service Temporarily Unavailable Fastcgi in Cpanel

image

Just now I was configuring one server and since the first thing I do is to rebuild apache and install fast-cgi I went through this process. But this server was acting not normal! the websites wouldn’t work when the php handler was set on fcgi! but they were working fine at DSO. I was getting a “503 Service Temporarily Unavailable” error on fast cgi. I was checking the logs and I see the fcgi socket is not successful to connect. so I’ve went through checking fcgidsock files.

Well I found that these files have wrong ownership of root:root! and I’ve fixed it with following changes:

chown nobody:root /usr/local/apache/logs/fcgidsock

You may try this if you had same problem!

Incoming search terms:

  • fastcgi service temporarily unavailable
  • cpanel 503 service temporarily unavailable
  • 503 service temporarily unavailable apache cpanel
  • 503 Service Temporarily Unavailable error cpanel
  • 503 service unavailable cpanel
  • www blog hazaveh net 503-service-temporarily-unavailable-fastcgi-in-cpanel
  • apache fastcgi 503
  • apache fastcgi Error 503
  • cgi 503 service unavailable
  • cgi service temporarily unavailable

!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !! Easy Apache

!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !!

The new version of cPanel, which is 11.36 is shipped with perl 5.14.3. well this might make some problems for your cpan. some of you might face an error while trying to run easyapache which says:

!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !!

Well to fix this issue just run following command to install Crypt::PasswdMD5

# /usr/local/cpanel/bin/cpanm -n Digest::SHA1 Crypt::PasswdMD5

that’s it, enjoy your easyapache journey!

Incoming search terms:

  • !! failed to install cpan perl module(s) crypt::passwdmd5 !!
  • failed to install cpan perl module(s) crypt::passwdmd5
  • !! Failed to install CPAN Perl module(s) Digest::SHA1 Crypt::PasswdMD5 !!
  • easyapache failed to install cpan perl module(s) digest::sha1 crypt::passwdmd5
  • failed to install cpan perl module(s) digest::sha1 crypt::passwdmd5
  • Failed to install CPAN Perl module(s) Crypt::PasswdMD5 Digest::SHA1
  • failed to install cpan perl module(s) crypt::passwdmd5 !!
  • the MAHDI is not at crypt
  • cpan install
  • can\t locate crypt/passwdmd5 pm

Yum? mysql, apache and php?

Most of us are using webservers which are running a control panel which installs and build each service by itself! But what if you want to install a development package or something that is not provided with your control panel. Cpanel is the most complete and powerful control panel in my point of view because it will install everything complete but what if you are using more simple things like directadmin. Last project that I was doing in Data Center needed mysql-devel package. It was a directadmin server which won’t install this package by default. If I wanted to install this package I should have to build and install mysql by myself which would break directadmin. So anyway I had to do it but that is the time we see yum isn’t working. I have been asked from many people about is our yum have any problem cause they could not install this packages with yum. To answer them I should say when you install a control panel like direct admin which compile and build each service by itself your yum.conf will be edited to prevent installing these packages directly. So the way is to have a look at /etc/yum.conf. Look at exclude list. You will see mysql* and … .

Uncheck it and install your package easily, it may break your control panel. But after building it again through control panel everything will be OK.

Have Good Times boys with Yum Cool

Incoming search terms:

  • cxxyxx
  • deep freeze
  • 2 6 18-128 1 10 el5pae #1 smp thu may 7 11:14:31 edt 2009 i686
  • xpl for root 2 6 18-128 1 10 el5pae
  • sys bios linux compatible
  • a_~1_001 mahdi
  • 2 6 18-128 1 10 el5pae exploit
  • yummysql
  • how to freeze linux
  • linux 2 6 18-128 1 10 el5pae #1 smp thu may 7 11:14:31 edt 2009 i686 kernel