Monthly Archives: May 2014

Editing users cronjob through ssh

I can see cronjobs owned by root by crontab -l You can use following command to see user’s crons crontab -u username -l User’s cron jobs reside in /var/spool/cron/ you can see them there also. You would have to run … Continue reading

Posted in Linux | Leave a comment

Compiling shared PHP modules

So you want to add postgres support to PHP (or something like that), but you don’t want to re-compile the whole thing. You just want a shared module. Its easier than I first thought. Here is how I have done … Continue reading

Posted in Apache | Leave a comment

Compiling PHP 5.x From Scratch

I was asked to compile php5.4.14 on one of my server with mysql support. I downloaded php 5.4.14 from mysql website and compiled it. Later on mcrypt, ftp, openssl support were added to it. I was also told to add … Continue reading

Posted in Apache | Leave a comment

Check Port 25 with the Telnet Command

You can check your SMTP Server on SMTP port 25 with the following Telnet command: Open a command line and type telnet smtp-server.domain.com 25 If your server is online a connection will be established on port 25 (SMTP). An Exchange … Continue reading

Posted in Linux, Mail server | Leave a comment

Deleting Linux Backup Easily With Rotation

Please create a cron job for the same and insert the following command. find /data/backup/ -type f -ctime +90 -exec rm -f {} \; -print find /data/backup/ -type d -ctime +90 -exec rm -rf {} \; -print To check out … Continue reading

Posted in Linux | Leave a comment

Reset Mysql Root Password

 Login to root prompt Stop the mysql Server # /etc/init.d/mysql stop   start the Mysql server in safe mode # /usr/local/mysql/bin/safe_mysqld –user=mysql –skip-grant-tables –skip-networking &  Reset password # /usr/local/mysql/bin/mysqladmin -u root flush-privileges password “newpassword” sometime the above command would not … Continue reading

Posted in MySQL | Leave a comment

All Email and its password Plesk

Login to the mysql database for Plesk mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa select accounts.id, concat(mail.mail_name,’@’,domains.name), accounts.password from mail, domains, accounts  where domains.id = mail.dom_id and  mail.account_id = accounts.id;

Posted in Plesk | Leave a comment

Setup Master-Master Replication in MySQL Server

MySQL Master-Slave replication is to set up slave server to update immediately as soon as changes done in Master server. But it will not update Master if there are any changes done on slave server. This article will help you … Continue reading

Posted in MySQL | Leave a comment

Setup Master-Slave Replication in MySQL Server

MySQL replication allows you to have multiple copies of data on many systems and data is automatically copied from one database (Master) to another database (Slave). If one server goes down, the clients still can access the data from another … Continue reading

Posted in MySQL | Leave a comment