Monthly Archives: November 2009

change php.ini values using htaccess

Using php_flag we can change php.ini values through an .htaccess file. For example if we need to change the php value of register_globals to Off we can do it using the following .htaccess php_flag register_globals off

Install ffmpeg in linux

1. Create a directory to do our work in mkdir ~/ffmpeg cd ~/ffmpeg 2. Get all the source fileswget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2 wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz 3. Extract all the source files bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar tar zxvf flvtool2_1.0.5_rc6.tgz tar zxvf lame-3.97.tar.gz bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar tar zxvf …

Read more

restrict ftp access using iptables

Assume the server’s IP address is 125.121.156.156. Now we can block all ftp connections to the server withe the following ip tables rule iptables -I INPUT -s 0.0.0.0 -d 125.121.156.156 -p tcp -m tcp –dport 21 -j ACCEPT Now we can allow only authorised ip by the folloing rule. Assume the IP to be allowed …

Read more

Install Apache and IIS on Windws server

You can install both apache and IIS on same port if the system has two IP address.    You may install IIS and apache server in normal way. IF IIS is started  prior to Apache, IIS will take all the IP address and apache cannot start on the same port. Do fix this, we need to …

Read more

Install Apache, Mysql, PHP in Lunux Server

Installing Apache

[[email protected] ~]# wget http://opensource.become.com/apache/httpd/apache_1.3.41.tar.gz