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 wget wget wget ffmpeg-php/ffmpeg-php-0.5.0.tbz2 wget wget 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 Now we can block all ftp connections to the server withe the following ip tables rule iptables -I INPUT -s -d -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