Posts Tagged ‘Add new tag’
How To Upgrade Perl Version On Cpanel Server
Written by Jahangir on October 30, 2008 – 6:32 am -First check the current version of Perl
# perl -v
If the older version of Perl is running on server, you get an output something like,
This is perl, v5.8.7 built for i686-linux
Upgrade perl on the Cpanel server
1) Download the latest perl installer from cPanel site.
# wget http://layer1.cpanel.net/perl588installer.tar.gz
2) Untar the file as,
# tar -zxvf perl588installer.tar.gz
3) Change the directory to perl588installer
# cd perl588installer
4) Now run the installer file as,
# ./install
5) Check perl modules
# /scripts/checkperlmodules
6) Force a cPanel update
# /scripts/upcp –force
7) Check the new installed perl version using “perl -v” and you get an output something like,
This is perl, v5.8.8 built for i686-linux
Tags: Add new tag, check current version of Perl, How To Upgrade Perl Version On Cpanel, perl version, perl588installer
Posted in Dedicated Server Hosting, Linux VPS Hosting | No Comments »
OSSEC
Written by Pravin on October 20, 2008 – 6:23 am -OSSEC is a scalable, multi-platform, open source Host-based Intrusion Detection System (HIDS). It has a powerful correlation and analysis engine, integrating log analysis, file integrity checking, Windows registry monitoring, centralized policy enforcement, rootkit detection, real-time alerting and active response. It runs on most operating systems, including Linux, OpenBSD, FreeBSD, MacOS, Solaris and Windows.
Installing OSSEC on Linux:
cd /tmp
wget http://www.ossec.net/files/ossec-hids-0.9-1a.tar.gz
tar xvfz ossec-hids-0.9-1a.tar.gz
Then we run the installation script:
cd ossec-hids-0.9-1a
./install.sh
The installation script will ask you a few questions:
** Para instalação em português, escolha [br].
** Fur eine deutsche Installation wohlen Sie [de].
** For installation in English, choose [en].
** Para instalar en Español , eliga [es].
** Pour une installation en français, choisissez [fr]
** Per l’installazione in Italiano, scegli [it].
** æ¥æ¬èªã§ã¤ã³ã¹ãã¼ã«ãã¾ãï¼é¸æãã¦ä¸ãã
ï¼[jp].
** Aby instalowaÄ w jÄzyku Polskim, wybierz [pl].
** ÐÐ»Ñ Ð¸Ð½ÑÑÑÑкÑий по ÑÑÑановке на ÑÑÑÑком ,введиÑе [ru].
** Türkçe kurulum için seçin [tr].
(en/br/de/es/fr/it/jp/pl/ru/tr) [en]: <– en (or one of the other options, if you don’t want to use English)
OSSEC HIDS v0.9-1 Installation Script - http://www.ossec.net
You are about to start the installation process of the OSSEC HIDS.
You must have a C compiler pre-installed in your system.
If you have any questions or comments, please send an e-mail
to dcid@ossec.net (or daniel.cid@gmail.com).
- System: Linux server.domain.com 2.6.8-2-386
- User: root
- Host: server.domain.com
— Press ENTER to continue or Ctrl-C to abort. – <– [ENTER]
1- What kind of installation do you want (server, agent, local or help)? <– local
- Choose where to install the OSSEC HIDS [/var/ossec]: <– /var/ossec
3.1- Do you want e-mail notification? (y/n) [y]: <– y
- What’s your e-mail address? <– domain@domain.com (please enter your own email address here)
- We found your SMTP server as: mail.domain.com.
- Do you want to use it? (y/n) [y]: <– y (normally you can accept the installer’s proposal, unless you want to use another SMTP server)
3.2- Do you want to run the integrity check daemon? (y/n) [y]: <– y
3.3- Do you want to run the rootkit detection engine? (y/n) [y]: <– y
- Do you want to enable active response? (y/n) [y]: <–y
- Do you want to enable the firewall-drop response? (y/n) [y]: <– y
- Do you want to add more IPs to the white list? (y/n)? [n]: <– n (unless you want to whitelist more IP addresses)
3.6- Setting the configuration to analyze the following logs:
– /var/log/messages
– /var/log/auth.log
– /var/log/syslog
– /var/log/mail.info
- If you want to monitor any other file, just change
the ossec.conf and add a new localfile entry.
Any questions about the configuration can be answered
by visiting us online at http://www.ossec.net .
— Press ENTER to continue — <– [ENTER]
- System is Linux (SysV).
- Init script modified to start OSSEC HIDS during boot.
Adding system startup for /etc/init.d/ossec …
/etc/rc0.d/K20ossec -> ../init.d/ossec
/etc/rc1.d/K20ossec -> ../init.d/ossec
/etc/rc6.d/K20ossec -> ../init.d/ossec
/etc/rc2.d/S20ossec -> ../init.d/ossec
/etc/rc3.d/S20ossec -> ../init.d/ossec
/etc/rc4.d/S20ossec -> ../init.d/ossec
/etc/rc5.d/S20ossec -> ../init.d/ossec
- Configuration finished properly.
- To start OSSEC HIDS:
/var/ossec/bin/ossec-control start
- To stop OSSEC HIDS:
/var/ossec/bin/ossec-control stop
- The configuration can be viewed or modified at /var/ossec/etc/ossec.conf
Thanks for using the OSSEC HIDS.
If you have any question, suggestion or if you find any bug,
contact us at contact@ossec.net or using our public maillist at
ossec-list@ossec.net
(http://mailman.underlinux.com.br/mailman/listinfo/ossec-list).
More information can be found at http://www.ossec.net
— Press ENTER to finish (maybe more information below). — <– [ENTER]
That’s it, OSSEC HIDS is now installed and ready to be started.
Starting And Running OSSEC HIDS:
In order to start OSSEC HIDS, we run this command:
/etc/init.d/ossec start
The output should look like this:
server1:/etc/init.d# /etc/init.d/ossec start
Starting OSSEC HIDS v0.9-1 (by Daniel B. Cid)…
Started ossec-maild…
Started ossec-execd…
Started ossec-analysisd…
Started ossec-logcollector…
Started ossec-syscheckd…
Completed.
server1:/etc/init.d#
As you might have seen during OSSEC HIDS installation, the installer also created the necessary system startup links for OSSEC HIDS, so that OSSEC HIDS will be started automatically whenever you boot/reboot your system.
After OSSEC HIDS has been started, it will run silently in the background, performing log analysis, integrity checking, rootkit detection, etc. You can check that it’s running by executing
ps aux
In the output you should find something like this:
ossecm 2038 0.0 0.4 1860 792 ? S 12:40 0:00 /var/ossec/bin/ossec-maild root 2042 0.0 0.3 1736 648 ? S 12:40 0:00 /var/ossec/bin/ossec-execd ossec 2046 0.2 0.5 2192 1136 ? S 12:40 0:00 /var/ossec/bin/ossec-analysisd root 2050 0.0 0.2 1592 556 ? S 12:40 0:00 /var/ossec/bin/ossec-logcollector root 2054 12.2 0.3 1756 616 ? S 12:40 0:05 /var/ossec/bin/ossec-syscheckd
The OSSEC HIDS log file is /var/ossec/logs/ossec.log, so you can check it to see what’s going on, e.g. with the tail command.
tail -f /var/ossec/logs/ossec.log
shows what’s happening in real-time. Press CTRL-C to leave it.
tail -n 100 /var/ossec/logs/ossec.log
shows you the last 100 lines of the OSSEC HIDS log.
Tags: Add new tag, Apple Filing Protocol (AFP), Distributed File System (DFS), File Allocation Table (FAT, File System, Google File System (GFS), HFS, Hierarchical Filesystem (HFS+), JFFS, Journaling Flash Filesystem (JFFS), logical volume, Macintosh Filesystem (MFS), NetWare Core Protocol (NCP), Network Filesystem, New Technology File System (NTFS), NFS (Network Filesystem), Record-oriented Filesystems, ReiserFS, SAN, SAN (Storage Area Network) Cluster Filesystem, Shared-disk Filesystem, SMB, SMB (Server Message), Solid-state media Filesystems, Storage Area Network, Xsan, YAFFS
Posted in Dedicated Server Hosting | 1 Comment »
ISPConfig
Written by Pravin on October 16, 2008 – 4:30 am -Licensed under BSD license, ISPConfig is an open source control panel for hosting on Linux. Internet services like DNS servers, FTP servers, Web servers, Database servers are managed by ISPConfig. Configuration of anti-virus, shell users, spam filters, quotas, autoresponders & firewall can be configured through ISPConfig.
ISPConfig is supported on CentO, Debian, Fedora Core, Ubuntu, Red Hat Linux, Mandrake & Mandriva. Services like Mailscanner, Shell-access, IP-addresses, SSL, SSI, Traffic limits, Mail-Quota, Harddisk quota, Webalizer statistics, Bin, POP3 are also managed on ISPConfig.
Tags: Add new tag, control panel, cpanel, Plesk, Plesk For Linux
Posted in Dedicated Server Hosting, linux | No Comments »
Manage MySQL Databases
Written by AlanV on October 10, 2008 – 6:48 am -
Some MySQL commands are given below to manage your MySQL databases
Step 1
Create database
CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] db_name
[create_specification] ...
create_specification:
[DEFAULT] CHARACTER SET [=] charset_name
| [DEFAULT] COLLATE [=] collation_name
Create database db_name;
Step 2
Create user CREATE USERuser[IDENTIFIED BY [PASSWORD] 'password'] [,user[IDENTIFIED BY [PASSWORD] 'password']] ... Create user db_user identified by ‘db_passswd’; Step 3
Grant privileges
GRANT priv_type [(column_list)]
[, priv_type [(column_list)]] …
ON [object_type]
{
*
| *.*
| db_name.*
| db_name.tbl_name
| tbl_name
| db_name.routine_name
}
TO user [IDENTIFIED BY [PASSWORD] ‘password’]
GRANT ALL ON *.* TO ’someuser’@’somehost’;
GRANT SELECT, INSERT ON *.* TO ’someuser’@’somehost’;
Step 4
Remove database user
DROP USER user;
Step 5
Set password for database users
SET PASSWORD FOR ‘alan’@'%.loc.gov’ = PASSWORD(’newpass’);
That is equivalent to the following statements:
UPDATE mysql.user SET Password=PASSWORD(’newpass’)
WHERE User=’alan’ AND Host=’%.loc.gov’;
FLUSH PRIVILEGES;
Tags: Add new tag, create, create database user, create mysql database, grant priviliges on database, how to add user in database, how to create mysql datbase, how to grant priviliges, how to manage mysql database, mysql database, mysql.user, remove database user, set, set password for database
Posted in Dedicated Server Hosting, Linux VPS Hosting, Plesk For Linux, VPS hosting, Windows VPS, linux | No Comments »
How to restore database backup of MSSQL
Written by Mangesh on September 20, 2008 – 3:10 am -1. Open MSSQL Server Management Studio. (Start >>> programs >>> Microsoft SQL server 2005 >>>
SQL server Management studio Express)
2. Connect to MS SQL Server database
(Connect to server window)
Server name: 192.168.XX.XX\SQLEXPRESS
Authentication: SQL server Authentication OR Windows Authentication
Login: sa
Password: xxxxxx
Then press connect
3. After login to SQL server
1. Expand the Databases
2. Select the database test_db
3. Right click on database
4. Select Tasks >>> then select restore
5. Open restore database window
6. Under the source for restore >>> select from device
7. Then select square box in front of from device
8. Specify backup window open
9. Select add button
10. C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\test_db.bak ( Backup location path ) >>> press ok
11. Select the check box (Restore) under the select the backup sets to restore
12. After this select the “Option” Icon >>> under the restore options >>> select Overwrite the
existing database >>> press ok
13. Restore DB successfully massage window comes >>> press ok
Done.
Tags: Add new tag, C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\, How to restore database backup of MSSQL, MSSQL, MSSQL Server Management Studio, Restore MSSQL databses, SQL server Management studio Express
Posted in Dedicated Server Hosting | No Comments »
MSSQL
Written by Mangesh on September 18, 2008 – 7:23 am -How to backup the databases
Backup of MS SQL Server 2005 databases
This is the steps of backup:
1. Open MSSQL Server Management Studio. (Start >>> programs >>> Microsoft SQL server 2005 >>>
SQL server Management studio Express)
2. Connect to MS SQL Server database :
(Connect to server window)
Server name: 192.168.XX.XX\SQLEXPRESS
Authentication: SQL server Authentication OR Windows Authentication
Login: sa
Password: xxxxxx
Then press connect
3. after login to SQL server
1. Expand the Databases
2. select the database test_db
3. right click on database
4. select Tasks >>> select backup
5. then open backup database window
6. Under Backup type select Full
7. Under the destination
8. C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Backup\test_db.bak
9. Enter the path and file name for the backup file
( add this default path and backup should be in .bak format )
10. Press OK
11. backup successfully windows
12. press ok
Done.
Tags: Add new tag, Backup of MS SQL Server 2005 databases, C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Backup\, MS SQL Server 2005, MSSQL, MSSQL Server Management Studio, SQL server Management studio Express
Posted in Windows VPS | No Comments »





