Archives for Linux - Page 4
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...
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
Ubuntu: upgrading from 14.04 to 16.04, error: Invalid command ‘LockFile’,
AH00526: Syntax error on line 55 of /etc/apache2: Invalid command ‘LockFile’, perhaps misspelled or defined by a module not included in the server configuration Action ‘start’ failed. Solutions: Replacing...
Either all Options must start with + or -, or no Option may. Action ‘start’ failed
AH00526: Syntax error on line 5 of /etc/apache2/sites-: Either all Options must start with + or -, or no Option may. Action ‘start’ failed. The Apache error log may...
git: fatal: index-pack failed
I recently had to clone a very large repository through SSH, every time i did i got this error Cloning into 'large-repository'... remote: Counting objects: 20248, done. remote:...
Apache 2.4 – increase server limit
By default Apache only allows upto 150 connections, if the number is over, you will be in the queue. It will look like the server is down. The limit...
Ubuntu – change mysql root password
This is a bit gnarly. If you have a better method of updating the password without triggering a warning about PASSWORD being deprecated, I’m all ears. # Stop MySQL...