Archive for the ‘Debian’ Category

Security is a very important issue on any web application. This is why I am very pleased to introduce a security corner on my blog where I will discuss on different types of attacks. Things I will discuss here will not be vague and general overviews. If you are looking for an introduction to security than things like PHP manual could serve you better.

hmm… session fixation, session hijacking. sounds cool huh? well, we will know these right away :p before that I would like to tell something on SESSION.

What is Session?
HTTP is known as a stateless protocol. which means that the webserver does not care multiple requests come from the same user. In other words you can say that HTTP don’t remember anything when the execution is finished. Sessions are used to create a state in between requests even when they occur after weeks from each other.
Sessions are maintained by passing a unique session identifier between requests typically in a cookie (which usually resides in webserver’s file system). Session can also be passed in forms and query arguments. PHP handles sessions transparently through a combination of cookies and URL rewriting, when session.use_trans_sid is turned on in php.ini (it is off by default in PHP5) by generating a unique session ID and using it track a local data store (by default, a file in the system’s temporary directory in my case /tmp/) where session data is saved at the end of every request.

Caution: session_start() must be called before any output is sent to the browser, because it will try to set a cookie by sending a response header. Read the rest of this entry »


What is crontab? crontab  is  a  program which is used to install, deinstall or list the tables used to drive the cron(8) daemon in Vixie Cron. You can easily  have your    own    crontab,    and    though    these    are    files   in /var/spool/cron/crontabs, they are not intended to be edited  directly.
If  the /etc/cron.allow file exists, then you must be listed therein in order to be allowed to use this command.  If the  /etc/cron.allow  file does  not  exist  but the /etc/cron.deny file does exist, then you must not be listed in the /etc/cron.deny file in order to use this  command. If neither of these files exists, then depending on site-dependent configuration parameters, only the super user will be allowed to use  this command,  or  all  users will be able to use this command. For standard Ubuntu or Debian systems, all users may use this command.
The options of crontab command are given below:
If the -u option is given, it specifies the  name  of  the  user  whose crontab  is  to be tweaked.  If this option is not given, crontab examines “your” crontab, i.e., the crontab of the person executing the command.
crontab -l will show you your currently set up cron jobs on the server.
crontab -r will delete your current cron jobs.
crontab -e will allow you to add or edit your current cron jobs by using your default text editor to edit your “crontab file”. In my case Nano
Note that, vi has a bug in it and won’t work to edit your crontab! We recommend nano (which is just like pico), which is the default editor anyway! Read the rest of this entry »

Tags: , ,

I would like to share my Ubuntu experiance with you, thus I am giving you some exact steps to follow for achiving satisfaction in Ubuntu Linux.

Here you are:

Command Usage
sudo apt-get install php Install the latest version of PHP
sudo apt-get install mysql-server Install the latest version of MySQL server
sudo apt-get install phpmyadmin To install phpMyAdmin
sudo apt-get install apache For installing Apache web server
sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin To link phpmyadmin in your webserver’s root directory
sudo /etc/init.d/apache2 force-reload To force restart Apache server (now you could access localhost/phpmyadmin from your web browser 🙂
sudo apt-get install filezilla for installing FileZilla
sudo apt-get install vlc To install the famous player VLC ( might ask for the hardy heron DVD 😦 )
sudo apt-get install netbeans it’s a famous WYSIWYG editor for developers :p
sudo apt-get install banshee a cool multimedia player
sudo apt-get install scim-m17n for Bangla computing developed by Omi Azad vai
sudo apt-get install konsole A great replacement of gnome-terminal with root user facility in Ubuntu

Tonight up to this, may be I will write some more commands later 🙂

I am Nurul Ferdous a Zend Certified Engineer (ZCE), serving at Bangladesh Internet Press Limited (BIPL) as programmer. I am a FOSS advocate and love RnD.


Me @ LinkedIn

View Nurul Ferdous's profile on LinkedIn

My Photos @ Flickr

Blog Stats

  • 42,882 [ Vistors ]

My Twitter Updates