Showing posts with label Server. Show all posts
Showing posts with label Server. Show all posts

Saturday, January 8, 2011

Howto Block YouTube Video in Squid Proxy Server

Youtube Videos are Bandwidth eaters for Limited bandwidth Internet users. Education Institutions also need to block Youtube videos. Here a simple trick for blocking youtube videos using squid Proxy.

Add the following line to /etc/squid/squid.conf

## The videos come from several domains so block all
acl blk_youtube dstdomain .youtube.com .googlevideo.com .ytimg.com

http_access deny blk_youtube

Wednesday, December 22, 2010

How to start PHP Programming. Write your First Program in PHP

Here I will show how to start php programming. Lot of my friends like php, but there is a starting trouble. This will help you to write your first php program.

You need to install LAMP (Linux Apache, Mysql, PHP )Server.
Click Here How to install LAMP Sever in Ubuntu Linux

Now you can check your Apache webserver

Open a browser (firefox) and type http:// 127.0.0.1 in address bar

It Shows " It Works "

Now you can test your PHP

See your server root is pointed to the folder /var/www by default. So you have to save your programs in /var/www. But There is a problem, you can't write in to the folder /var/www as ordinary user, it needs root privilege . (I am using gksu for solving this proble, it will ask for your sudo password)

open a terminal type the following

$cd /var/www

$ gksu gedit helloworld.php

write the program
<?php
echo "hello world";
?>
now save and quit

open browser (firefox)

type the following in the address bar
http://127.0.0.1/helloworld.php

Now You will get the result in the browser

" hello world"

Now your First PHP program is Working

write valuable comments for helping php beginners

Wednesday, December 15, 2010

How To hide Apache2 version Information from hackers

Some times we need to hide apache banner information, because hackers check version details, before attacking a sever, If you close this door, it is more difficult for them to exploit any system holes and thus making vulnerability scanners work harder and in some cases impossible without knowing version information.


Do the following steps
Modify /etc/apache2/apache2.conf
Change the ServerSignature on to ServerSignature Off
Change the ServerTokens full to: ServerTokens Prod
Restart Apache: /etc/init.d/apache2 restart

Monday, December 13, 2010

Mirror Your Remote Server Graphically with Grsync in Ubuntu Linux


rsync is an open source utility that provides fast incremental file transfer. rsync uses the "rsync algorithm" which provides a very fast method synchronization of two server.
Grsync is the Graphical Front-end for rsync.
Some features of rsync include

* can update whole directory trees and filesystems
* optionally preserves symbolic links, hard links, file ownership, permissions, devices and times
* requires no special privileges to install
* internal pipelining reduces latency for multiple files
* can use rsh, ssh or direct sockets as the transport
* supports anonymous rsync which is ideal for mirroring

Install grsync in ubuntu
Open a terminal and type
$apt-get install grsync
or use Synaptic package manger

Friday, January 29, 2010

Mirror Your Remote Server Graphically with Grsync in Ubuntu Linux


rsync is an open source utility that provides fast incremental file transfer.  rsync uses the "rsync algorithm" which provides a very fast method synchronization of  two server.
Grsync is the Graphical Front-end for rsync.
Some features of rsync include

* can update whole directory trees and filesystems
* optionally preserves symbolic links, hard links, file ownership, permissions, devices and times
* requires no special privileges to install
* internal pipelining reduces latency for multiple files
* can use rsh, ssh or direct sockets as the transport
* supports anonymous rsync which is ideal for mirroring

Install grsync in ubuntu
Open a terminal and type
$apt-get install grsync
or use Synaptic package manger

Tuesday, January 26, 2010

How To hide Apache2 version Information from hackers

Some times we need to hide apache banner information, because hackers check version details, before attacking a sever, If you close this door, it is more difficult for them to exploit any system holes and thus making vulnerability scanners work harder and in some cases impossible without knowing version information.


Do the following steps
Modify /etc/apache2/apache2.conf
Change the ServerSignature on to ServerSignature Off
Change the ServerTokens full to: ServerTokens Prod
Restart Apache: /etc/init.d/apache2 restart

Tuesday, November 24, 2009

How to start PHP Programming. Write your First Program in PHP

Here I will show how to start php programming. Lot of my friends like php, but there is a starting trouble. This will help you to write your first php program.

You need to install LAMP (Linux Apache, Mysql, PHP )Server.
Click Here How to install LAMP Sever in Ubuntu Linux

Now you can check your Apache webserver

Open a browser (firefox) and type http:// 127.0.0.1 in address bar

It Shows " It Works "

Now you can test your PHP

See your server root is pointed to the folder /var/www by default. So you have to save your programs in /var/www. But There is a problem, you can't write in to the folder /var/www as ordinary user, it needs root privilege . (I am using gksu for solving this proble, it will ask for your sudo password)

open a terminal type the following

$cd /var/www

$ gksu gedit helloworld.php

write the program
<?php
echo "hello world";
?>
now save and quit

open browser (firefox)

type the following in the address bar
http://127.0.0.1/helloworld.php

Now You will get the result in the browser

" hello world"

Now your First PHP program is Working

write valuable comments for helping php beginners

Sunday, September 13, 2009

Howto Block YouTube Video in Squid Proxy Server

Youtube Videos are Bandwidth eaters for Limited bandwidth Internet users. Education Institutions also need to block Youtube videos. Here a simple trick for blocking youtube videos using squid Proxy.

Add the following line to /etc/squid/squid.conf

## The videos come from several domains so block all
acl blk_youtube dstdomain .youtube.com .googlevideo.com .ytimg.com

http_access deny blk_youtube