What is .htaccess and how to disable .htaccess?

What is .htaccess and how to disable .htaccess? .htaccess is use to modify the way Apache behaves for a directory and it’s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc. However, it can be a potentially dangerous [...]

HOW-TO install ffmpeg, Mplayer, mencoder,FLVtool2 and Yamdi on Plesk Linux based server

So login with SSH and enter as root. We need to make sure the correct lib directories are setup in ldconfig. Edit the /etc/ld.so.conf file and add the following lines. After you save it, run the command ldconfig /usr/local/lib /usr/lib Compiler install Because in many cases no compiler or maybe other incompatbile compiler is installed, [...]

How to read core.xxx files in linux

How to view core.xx files in Linux? The core.xxx files are created on Linux servers and holds the current state of a process working memory when a process is crashed. To view the core.xx files in Linux, execute the command: root@host [~]# strings core.xxx It will list different state of a process on each line.

Vcards and mime types

How to make a .vcf file down loadable? Problem: If you link a .vcf file on a page, it shows as a text file instead of asking for a download. Solution: In order to make the .vcf file download-able, you need to add the AddTye directive in the .htaccess file as follows: AddType text/x-vcard .vcf [...]

Linux Server Uptime

How to check the Linux Server Uptime? There are different ways to check the uptime of the Linux server like using the “top”  OR the “uptime” OR the “w” command. Following are some of them: root@host [~]# top c top – 15:50:20 up 2 days, 11:32, 1 user, load average: 0.00, 0.00, 0.00 root@host [~]# [...]

PHP pages asking for download

If your .php files are prompting for download on browsing, make sure PHP is compiled with Apache and you have following lines in your Apache configuration file AddHandler application/x-httpd-php .php .html You can also add the above line in your .htaccess file of the domain.

Howto: Disable root login on a server?

How to disable root login and create an alternate SSH user? In order to disable root access on your server, you need to create an alternate SSH user who have privileges to gain root access else you will be locked out of the system. First, create a user say  ‘admin’ # useradd admin Set a [...]

How can I hide information_schema database from phpMyAdmin?

By default, phpMyAdmin shows all databases available to a user. So, in addition to the databases that belong to the user, the information_schema database is also visible to them. To hide the information_schema database from phpMyAdmin on a particular MySQL logical server, add the following line to the phpMyAdmin config.inc.php file: $cfg['Servers'][$i]['hide_db'] = ‘information_schema’; Please [...]

Howto Install and Configure VNCserver in Linux?

The common method to manage a Linux server remotely is through CLI interface via SSH, which many people often find it difficult as they are not familar with the Linux commands. The solution is to install a KDE Or GNOME Desktop on the Linux server and access it through VNC. VNC (Virtual Network Computing) is [...]

Installing Zimbra Collaboration Suite 7 On CentOS 5.x (64Bit)

Introduction Zimbra is a collaboration suite very widely used in the world. Users can share folders, contacts, schedules and other things, using a very rich web interface. Click here to know more about it. One important note is that we’re using CentOS 5 64bits, that is not oficially supported by Zimbra team (only RHEL and [...]

Backup Databases in MySQL

How about backing up all the databases in the server? That’s an easy one, just use the –all-databases parameter to backup all the databases in the server in one step. mysqldump –all-databases> alldatabases.sql How to Backing up only the Database Structure in MySQL You can backup only the database structure by telling mysqldump not to [...]

More from Database server

Delete Frozen Emails

Howto check number of emails in the mail queue: exim -bpc To check the email ID, sender and receiver of the each email: exim -bp | more To delete frozen emails from the mail queue, execute: exim -bp | grep ‘frozen’ | awk ‘{print $3}’ | xargs exim -Mrm similarly, to delete emails sent using [...]

More from Email server

Cannot start Web server from Plesk panel, No such file ‘/usr/local/etc/rc.d/apache2.sh’ error appears

Attempts to start or stop apache web service on Server > Services page fail with error ERROR: PleskFatalException Unable to make action: Unable to manage service by websrvmng: websrvmng: No such file ‘/usr/local/etc/rc.d/apache2.sh’: No such file or directory System error 2: No such file or directory   Apache startup script name is specified with the [...]

More from Hosting Controller

What is .htaccess and how to disable .htaccess?

What is .htaccess and how to disable .htaccess? .htaccess is use to modify the way Apache behaves for a directory and it’s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc. However, it can be a potentially dangerous [...]

More from Linux

What is .htaccess and how to disable .htaccess?

What is .htaccess and how to disable .htaccess? .htaccess is use to modify the way Apache behaves for a directory and it’s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc. However, it can be a potentially dangerous [...]

More from OS

WordPress

I. VULNERABILITY WordPress <= 2.8.3 Remote admin reset password II. BACKGROUND WordPress is a state-of-the-art publishing platform with a focus on aesthetics, web standards, and usability. WordPress is both free and priceless at the same time. More simply, WordPress is what you use when you want to work with your blogging software, not fight it. [...]

More from Security

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

More from shell script

CIITIX-VoIP 1.0 How-To

This document can be a used as a rough guide to installation of CIITIX-VOIP on a persistent media. It also describes the basic usage. CIITIX-VoIP is a carrier grade VoIP server distribution, leveraging upon the great efforts of the open source community. CIITIX-VoIP is based on rock solid Debian Lenny. This distribution comes as a [...]

More from Voip

Installing Apache2 With PHP5 And MySQL Support On CentOS 5.5 (LAMP)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 5.5 server with PHP5 support (mod_php) and MySQL support. I do not issue any guarantee that this will work for you!   1 Preliminary Note In this tutorial I use the hostname server1.example.com with [...]

More from Web Server