Home » Programing

joomla 1.0.15 + php 5.3.2

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 : [...]

Shell Script To Display The Text Entered By The User in Bold

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 [...]

Script to email failed Ftp login attempts

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 [...]

Shell Script That Display The Last Modification Time Of Any File

#!/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. [...]

Shell Script To Build And Install PHP Xcache Opcode Cache Extension

#!/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 [...]

Script to terminate suspended accounts on a cPanel server

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 [...]

change Mysql data directory

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 [...]

Script to search any hacking or malicious script

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

Shell script to find all programs and scripts with setgid bit set on

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 [...]

Remote Server Rsync Backup Replication Shell Script

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 # [...]

Enter your email address:

Liên Kết Website

web design | Shared linux windows problems | Dedicated server | website chất lượng cao | hosting chất lượng cao | Tutorial video collection | Troubleshooting Tips and Tutorial