IonCube is a PHP-Encoder which is very useful to secure and license the php applications/scripts. Following steps can be used to install IonCube Loader to a Linux server.
RETRIEVE THE LATEST IONCUBE LOADER PACKAGE
FOR 32BIT (X86) ARCHITECTURE
[root@server ]# wget http://downloads2.ioncube.com/loader_download /ioncube_loaders_lin_x86.tar.gz
[root@server ]# tar -zxf ioncube_loaders_lin_x86.tar.gz
[root@server ]# mv ioncube /usr/local
FOR 32BIT (X86-64) ARCHITECTURE
[root@server ]# wget http://downloads2.ioncube.com/loader_download /ioncube_loaders_lin_x86-64.tar.gz
[root@server ]# tar -zxf ioncube_loaders_lin_x86-64.tar.gz
[root@server ]# mv ioncube /usr/local
LOCATE AND MODIFY YOUR PHP CONFIGURATION FILE
[root@server ]# php -i | grep php.ini
[root@server ]# nano -w /user/local/lib/php.ini
INCLUDE THE IONCUBE LOADERS INTO PHP CONFIGURATION
Insert the following line into your php.ini file at the bottom:-
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so
RESTART APACHE TO REFLECT THE CHANGES:
[root@server ]# service httpd restart
ENSURE IONCUBE IS NOW SUCCESSFULLY LOADED:
[root@server ]# php -v
BELOW WRITTEN IS THE OUTPUT OF THE ENTIRE SCRIPT EXECUTION:
PHP 5.3.1 (cli) (built: Jan 6 2010 00:16:22)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.6-rc1, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd.
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH
Server offen face problems with Hard disk drives and one of them is bad blocks. Bad blocks can occur in the HDD due the intensive I/O reads and I/0 writes in HDD. To check the Bad blocks in a Linux server, following command needs to be executed in the server.
$ badblocks /dev/fd0H1440 1440 >
bad−blocks
$ fsck −t ext2 −l bad−blocks
/dev/fd0H1440
Parallelizing fsck version 0.5a (5−Apr−94)
e2fsck 0.5a, 5−Apr−94 for EXT2 FS 0.5, 94/03/10
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Check reference counts.
Pass 5: Checking group summary information.
/dev/fd0H1440: ***** FILE SYSTEM WAS MODIFIED *****
/dev/fd0H1440: 11/360 files, 63/1440 blocks
$
If badblocks display a block which was previously utilized then you can try to transfer the block to other location. If in any case the block was really bad, not just marginal, the data of the file may be corrupted.
Recovery console will get you to the emergency repair process through the command prompt.
Following are the very useful recovery console commands :
There are present many Firefox Plugins, but some of them are very important.
A. Google Toolbar :
Google toolbar is a very popular toolbar on internet. users can find out the page rank instantly with the visited site. users can utilize this toolbar to mark the keywords of research carried out, it is easier to check which one seeks in a page thereafter. The only disadvantage is that it occupies a space on the top of the browser.
B. Download Helper :
Like its name, this plugin enables you to download videos from popular video sites like Youtube, Dailymotion and a lot many others.
This little icon is next to the address bar and whenever users go to a website where there is a flash video “recognized” by the plugins, it also provides a small menu via the download.
C. Adblock Plugin :
This plugin permits the users to hide all advertisements appearing on websites. It is very easy to use and is very discreet, it appears as an icon in the upper right corner of Firefox. You can customize it, creating filters.
D. Image-Zoom
It is a small plugin which permit users to enlarge or shrink the image in a web page. There are many people who want to zoom in on the image, this plugin is suitable for them.
You can see on the above screenshot that a new menu is displayed whenever user right clicks on an image So, user can decide a size as a percentage.
You can block PHP nobody spammers with the following steps. But make sure, you must have Apache 1.3x, PHP 4.3x and Exim. This may work on other systems but we have only tested it on a Cpanel/WHM Red Hat Enterprise system.
Step 1.
At first you have to Login to your server and su – to root.
Step 2.
Turn off exim while we do this so it doesn’t freak out.
/etc/init.d/exim stop
Step 3.
Backup your original /usr/sbin/sendmail file. On systems using Exim MTA, the sendmail file is just basically a pointer to Exim itself.
mv /usr/sbin/sendmail /usr/sbin/sendmail.hidden
Step 4.
Create the spam monitoring script for the new sendmail.
pico /usr/sbin/sendmail
Paste in the following:
#!/usr/local/bin/perl
# use strict;
use Env;
my $date = `date`;
chomp $date;
open (INFO, “>>/var/log/spam_log”) || die “Failed to open file ::$!”;
my $uid = $>;
my @info = getpwuid($uid);
if($REMOTE_ADDR) {
print INFO “$date – $REMOTE_ADDR ran $SCRIPT_NAME at $SERVER_NAME n”;
}
else {
print INFO “$date – $PWD – @infon”;
}
my $mailprog = ‘/usr/sbin/sendmail.hidden’;
foreach (@ARGV) {
$arg=”$arg” . ” $_”;
}
open (MAIL,”|$mailprog $arg”) || die “cannot open $mailprog: $!n”;
while (<STDIN> ) {
print MAIL;
}
close (INFO);
close (MAIL);
Step 5.
Change the new sendmail permissions
chmod +x /usr/sbin/sendmail
Step 6.
Create a new log file to keep a history of all mail going out of the server using web scripts
touch /var/log/spam_log
chmod 0777 /var/log/spam_log
Step 7.
Start Exim up again.
/etc/init.d/exim start
Step 8.
Monitor your spam_log file for spam, try using any formmail or script that uses a mail function – a message board, a contact script.
tail – f /var/log/spam_log