Archive for the ‘Apache’ Category
-
SVN installation with Apache
Friday, August 13th, 2010
1. First of all, install apache/httpd * yum install httpd 2. Make sure you apache is running. You can also type ‘http://localhost’ at your browser and apache test page should appear if your apache is running * /etc/init.d/httpd status 3. Make it start by default on startup * chkconfig httpd on 4. Edit the apache [...]
-
htaccess to stop files listing & executing any file inside folder
Tuesday, July 13th, 2010
# htaccess to stop files listing on folder and stop executing any file inside folder like config.ini file etc which are not need to display in the browser IndexIgnore */* (It will stop files listing for specific folder) # deny access to all files of folder Order allow,deny Deny from all Satisfy All Forbidding a [...]
-
PHP 5.3 ,MySql 5.1 on RHEL 4
Tuesday, July 6th, 2010
For those who are still using RHEL 4.x and in need of deploying PHP 5.3 & MySQL 5.1 , you can get the required rpm packages from http://rpms.famillecollet.com/enterprise/4/ You can add the repo and update php and MySQL packages via yum, or download and install manually. I think the bare minimum will require these packages [...]
-
Optimize and Tweak High-Traffic Servers
Wednesday, June 30th, 2010
Summary If you are reaching the limits of your server running Apache serving a lot of dynamic content, you can either spend thousands on new equipment or reduce bloat to increase your server capacity by anywhere from 2 to 10 times. This article concentrates on important and poorly-documented ways of increasing capacity without additional hardware. [...]
-
Http monitoring using httptop
Tuesday, June 29th, 2010
One of the tools most Linux/Unix admins are used to is called “top”. “top” by itself is a very powerful tool. Installation Perl modules in cpan install Term::ReadKey install File::Tail install Time::HiRes Create a executable script #touch /usr/bin/httptop #chmod a+x /usr/bin/httptop Copy & paste the following contents in the script #!/usr/bin/perl -w use Time::HiRes qw( [...]
-
Great Strategies for Using Memcached and MySQL Better Together
Monday, June 28th, 2010
The primero recommendation for speeding up a website is almost always to add cache and more cache. And after that add a little more cache just in case. Memcached is almost always given as the recommended cache to use. What is Memcached? Memcached is a general-purpose distributed memory caching system that was originally developed by [...]
-
Tool for automatically creating the basic framework for a PHP module
Friday, June 25th, 2010
WHAT IT IS It’s a tool for automatically creating the basic framework for a PHP module and writing C code handling arguments passed to your functions from a simple configuration file. See an example at the end of this file. HOW TO USE IT Very simple. First, change to the ext/ directory of the PHP [...]
-
How to Install Munin on CentOS
Friday, June 18th, 2010
Introduction:- Munin is a highly flexible and powerfull solution used to create graphs of virtually everything imaginable throughout your network, while still maintining a rattling easy of installation and configuration. Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed [...]
-
WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
Tuesday, June 15th, 2010
I am getting this error “configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.” while i tried to install json support with PHP 5.1.6 What is re2c? re2c is a tool for writing very fast and very flexible scanners. Unlike any other such tool, re2c focuses on generating [...]
-
Zimbra migration from 5.0.8 to 6.0.8, Accounts,Zimlets,Passwords
Saturday, May 29th, 2010
Zimbra Migration Document Source Server# Zimbra colloboration Suite (ZCS) version 5.0.8 — Hostname: mail ,Domain: abc.com Destination Server # Zimbra colloboration Suite (ZCS)version 6.0.6—-Hostname: mail ,Domain: xyz.com In this migration i will migrate all userdata base ,password ,zimlet setting ,ldap settings a. Dump LDAP database on the source Zimbra i.e. mail.abc.com Go to the primary [...]
-
Monitoring Multiple Log Files At A Time With MultiTail
Friday, May 21st, 2010
MultiTail lets you view one or multiple files like the original tail program. The difference is that it creates multiple windows on your console (with ncurses). It can also monitor wildcards: if another file matching the wildcard has a more recent modification date, it will automatically switch to that file. That way you can, for [...]
-
Loading CSV File into Mysql database
Monday, May 3rd, 2010
LOAD DATA LOCAL INFILE ‘/home/user/www/upload/upload.csv’ INTO TABLE smstobesent FIELDS TERMINATED BY ‘,’ LINES TERMINATED BY ‘\\n’ (name,contact_no) $file_name=/home/user/www/upload/upload.csv Load csv file into database using php script $rs=mysql_query(“LOAD DATA LOCAL INFILE ‘$file_name’ INTO TABLE smstobesent FIELDS TERMINATED BY ‘,’ LINES TERMINATED BY ‘\\n’ (name,contact_no)”) or die(“Error in Load File: “.mysql_error()); I had tried to run command [...]
-
Undefined subroutine &main::param called
Thursday, April 29th, 2010
I am getting this error (Undefined subroutine &main::param called) in /var/log/httpd/error_log Basically i am not getting any value after posting if ( $ENV{REQUEST_METHOD} eq “POST” ) { my %form; foreach my $key (param()) { $form{$key} = param($key); print “$key = $form{$key}<br>\n”; } } I have resolved it by changing use CGI; to CGI qw(:standard); in [...]
-
Turck MMCache for PHP
Tuesday, April 20th, 2010
Introduction: Turck MMCache is a free open source PHP accelerator, optimizer, encoder and dynamic content cache for PHP. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated. We sho Turck MMCache is a free open source PHP accelerator, optimizer, encoder and dynamic [...]
-
Server Loads Explained
Tuesday, April 20th, 2010
Introduction: Explaining what server loads really are and how to control them, how to watch loads and signs of server trouble. Server Load Explination The load average tries to measure the number of active processes at any time. As a measure of CPU utilization, the load average is simplistic, poorly defined, but far from useless. [...]




