Archive

FastCGI timeout

Error: Connection reset by peer: mod_fcgid: error reading data from FastCGI server. Premature end of script headers: index.php Fix: Add this to your PHP vhost

Read More »

sh: dig: command not found

yum -y install bind-utils Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Updating: bind-utils x86_64 32:9.9.4-38.el7_3.2 updates 202 k Updating for dependencies: bind x86_64

Read More »

TypoScript condition examples

This will match with a url like “…&print=1” [globalVar = GP:print > 0] This will match with an url like “…&tx_ext_pi1[var1]=1” [globalVar = GP:tx_ext_pi1|var1 >

Read More »

Convert timestamp to range date string

function getRangeDateString($timestamp) { if ($timestamp) { $currentTime=strtotime(‘today’); // Reset time to 00:00:00 $timestamp=strtotime(date(‘Y-m-d 00:00:00’,$timestamp)); $days=round(($timestamp-$currentTime)/86400); switch($days) { case ‘0’; return ‘Today’; break; case ‘-1’; return

Read More »

Create desktop icon for keepass

sudo yum install alacarte press super key and type alacarte. Choose icon Main Menu Press New Item Name: KeePass Command: mono /home/bvbmedia/keepass/KeePass.exe Comment: KeePass rules! Press

Read More »

Most Popular