Author Archives: itdoctor - Page 30
/usr/bin/python^M: bad interpreter: No such file or directory
it’s because the new line difference between Unix and windows , the easiest fix it run this command dos2unix filename
WordPress is slow: wp-captcha-booster – tech-banker-service
I just found out that i could not access my wordpress today, i checked the server, everything looked good. i restarted the server, it’s still slow, there is no...
Linux: crontab syntax check
The folder / is used to store all cronjobs, the cronjob is saved on the file , the format is: minute hour day month dayofweek username command_to_run. There might...
Ubuntu: Check disk heath – smartctrl and smartmontools
smartctl is a nice tool to check your hard disk health – it will let you know how many hours your disk have been running , the hard disk...
Perl: Diamon operator: <> , $_, the default variable
The Diamond operator is almost exclusively used in a while-loop. It allows us to iterate over the rows in all the files given on the command line. Diamond –...
Mysql: creating a new user and assign all permission to it
i create this user for my backup script: GRANT ALL PRIVILEGES ON *.* TO 'mybackup'@'localhost' IDENTIFIED BY 'mybackuppassword'; GRANT SELECT ON *.* TO 'mybackup'@'localhost';
Infoblox: DHCP doesn’t update DNS
In case a client doesn’t have DNS entry when it register with DHCP, it could be because the client just send the DHCP Renew request, DHCP renew will not...
Apache: Cloudflare – Log the real ip
Check this out: #mod_cloudflare Option 1: Installation from Packages Download the appropriate package to your web server and install it using your operating system’s ‘rpm’ or ‘dkpg’ commands. For...
PHP Fatal error: Uncaught Error: Call to undefined function mb_convert_encoding
PHP Fatal error: Uncaught Error: Call to undefined function mb_convert_encoding() Fix: sudo apt-get install php-mbstring
Can’t start apache: Couldn’t start ErrorLog process
AH00089: Couldn’t start ErrorLog process ‘/usr/sbin/rotatelogs Fix: ln -s /usr/bin/rotatelogs /usr/sbin/rotatelogs