June 18th, 2013 |
admin |
I have 2 sites with joomla 1.0.15 and my hosting server update php from 5.2 to 5.3.2 last night, so i have no content pages (error : Parameter 2 to frontpage() expected to be a reference, value given in /var/www/html/includes/Cache/Lite/Function.php), so looking for a solution (until 1.6 will be ready) i found this patch : [...]
June 13th, 2013 |
admin |
Write a shell script to display the text entered by the user in bold? You need to use the tput utility to display text in bold. It uses the terminfo database to make the values of terminal-dependent capabilities and information available to the shell, to initialize or reset the terminal, or return the long name [...]
June 12th, 2013 |
admin |
Shell Script to search Failed Ftp Login Attempts This Shell script will search the server logs on daily basis and will email you the Failed Ftp Login Attempts of the day. The ftp logs are saved in the /var/log/messages file as by default there is no separate log file for Ftp in Linux. Create a [...]
June 11th, 2013 |
admin |
#!/bin/bash # Write a shell script that displays the last modification time of any file. # ————————————————————————- # Copyright (c) 2008 nixCraft project <http://cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ————————————————————————- # This script is part of nixCraft shell script collection (NSSC) # Visit http://bash.cyberciti.biz/ for more information. [...]
#!/bin/bash # A simple shell to build and install xcache Opcode Cache as module for # PHP under # CentOS, Fedora and RHEL / Redhat Enterprise Linux # servers. # —————————————————————————- # Written by Vivek Gite <http://www.cyberciti.biz/> # (c) 2008 nixCraft under GNU GPL v2.0+ # —————————————————————————- # Home page: http://www.hardened-php.net # Last updated: 15/June/2010 [...]
How to check suspended accounts on a cPanel server and terminate them after a specific time frame? Many a times you suspend an account on the server and it goes unnoticed for months thus wasting disk space of your server. You can use the following script and schedule it to execute, say once in a [...]
script to move the datadirectory of mysql #!/bin/bash #/***********************************************************************/ #/***This is the script for changing the data directory of mysql**********/ #/***********************************************************************/ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 [...]
VECTORS=”r57sh c99sh h00ly 0wn3d rst.void.ru” VECTORS_FINAL=$(echo $VECTORS | sed ’s/\ /\|/g’) find /home/*/public_html/ -type f -exec grep -Eil “$VECTORS_FINAL” {} \; >> vresult
setuid and setgid (short for set user ID upon execution and set group ID upon execution, respectively) are Unix access rights flags that allow users to run an executable with the permissions of the executable’s owner or group. They are often used to allow users on a computer system to run programs with temporarily elevated [...]
You need to setup password less login using ssh keys; refer to following tutorials: + Howto Linux / UNIX setup SSH with DSA public key authentication (password less login) + SSH Public key based authentication – Howto #!/bin/bash # Remote Server Rsync backup Replication Shell Script # ————————————————————————- # Copyright (c) 2005 nixCraft project # [...]