Your Ad Here

Apr 30, 2013

Web server error codes



1xx: Information
Message:     Description:
  • 100 Continue     Only a part of the request has been received by the server, but as long as it has not been rejected, the client should continue with the request
  • 101 Switching Protocols     The server switches protocol

2xx: Successful
Message:     Description:
  • 200 OK     The request is OK
  • 201 Created     The request is complete, and a new resource is created
  • 202 Accepted     The request is accepted for processing, but the processing is not complete
  • 203 Non-authoritative Information    
  • 204 No Content    
  • 205 Reset Content    
  • 206 Partial Content    

3xx: Redirection
Message:     Description:
  • 300 Multiple Choices     A link list. The user can select a link and go to that location. Maximum five addresses 
  • 301 Moved Permanently     The requested page has moved to a new url
  • 302 Found     The requested page has moved temporarily to a new url
  • 303 See Other     The requested page can be found under a different url
  • 304 Not Modified    
  • 305 Use Proxy    
  • 306 Unused     This code was used in a previous version. It is no longer used, but the code is reserved
  • 307 Temporary Redirect     The requested page has moved temporarily to a new url

4xx: Client Error
Message:     Description:
  • 400 Bad Request     The server did not understand the request
  • 401 Unauthorized     The requested page needs a username and a password
  • 402 Payment Required     You can not use this code yet
  • 403 Forbidden     Access is forbidden to the requested page
  • 404 Not Found     The server can not find the requested page
  • 405 Method Not Allowed     The method specified in the request is not allowed
  • 406 Not Acceptable     The server can only generate a response that is not accepted by the client
  • 407 Proxy Authentication Required     You must authenticate with a proxy server before this request can be served
  • 408 Request Timeout     The request took longer than the server was prepared to wait
  • 409 Conflict     The request could not be completed because of a conflict
  • 410 Gone     The requested page is no longer available
  • 411 Length Required     The "Content-Length" is not defined. The server will not accept the request without it
  • 412 Precondition Failed     The precondition given in the request evaluated to false by the server
  • 413 Request Entity Too Large     The server will not accept the request, because the request entity is too large
  • 414 Request-url Too Long     The server will not accept the request, because the url is too long. Occurs when you convert a "post" request to a "get" request with a long query information
  • 415 Unsupported Media Type     The server will not accept the request, because the media type is not supported
  • 417 Expectation Failed    

5xx: Server Error
Message:     Description:
  • 500 Internal Server Error     The request was not completed. The server met an unexpected condition
  • 501 Not Implemented     The request was not completed. The server did not support the functionality required
  • 502 Bad Gateway     The request was not completed. The server received an invalid response from the upstream server
  • 503 Service Unavailable     The request was not completed. The server is temporarily overloading or down
  • 504 Gateway Timeout     The gateway has timed out
  • 505 HTTP Version Not Supported     The server does not support the "http protocol" version 
For more Keep follow and feed back any update

Apr 3, 2013

Free Cross Browser Testing


As a Webmaster Cross Browser Test is one of the main job. For that there are many Sofware's, Online tools and more are there available.

Most of the people try to do with freely available things. browsershots.org is best solution for freely available Cross Browser Test online tool.

On following we can learn how to do. Note Local files is not allowed. just upload files to any free hosting sites and past URL on it.

  1. Upload you websites files to any free hosting sites without ad banners. In my case 000webhost.com is taken.
  2. Open website http://browsershots.org/ and past URL which you website files uploaded. In my case http://d2w.freeiz.com/ is URL which my web design files uploaded.
  3. Don't confuse which browsers and there versions to select  simply click link KHTML/WebKit on bottom of the website it automatic select common used browsers and there versions.
  4. Then Submit URL by clicking Submit button on top of the web site in my case I used http://d2w.freeiz.com/.
  5. It shows to 14 min wait time for screen shorts of you testing website. You need not to open that page upto 14 min. you can just bookmark webpage close it and take a tea brake and open bookmark. in my case I used http://browsershots.org/http://d2w.freeiz.com/ .
  6. Finally it shows screen shorts on page you can also download the Screen shorts as a zip by click Download All link on top where expire mins shows in my case the link is http://api.browsershots.org/screenshots/xxxxxx-xxxxxx-http://d2w.freeiz.com/-xxxxxx.zip.
  7. After download upzip and see the screen shorts how your design and developed websites is display on different OS and Different browsers and there versions.
Features:
  • Test in Linux, Windows, Mac and BSD Operating Systems.
  • With Linux Operating System testing with browsers Firefox 3.0 - 21.0; Chrome 17, 25, 26; Opera 10.53 - 12.2; SeaMonkey 2.0 - 2.9 (Firefox like); Iceweasel 3.5 - 10.0; Other browsers Konqueror, Arora and more.
  • With Windows Operating System testing with browsers Firefox 1.0 - 20.0; Chrome 1.0 - 26.0; IE 5.5 - 10.0; Opera 10.53 - 12.2; SeaMonkey 2.0 - 2.9 (Firefox like); Iceweasel 3.5 - 10.0; Other browsers Lunascape, Flock, Avant, Netscape, more.
  • With Mac Operating System testing with browsers Firefox 19.0; Chrome 26.0; IE 5.5 - 10.0; Opera 12.14; Safari 5.0 - 6.0.
  • With BSD Operating System testing with browsers Konqueror, SeaMonkey, Opera, Kazehakase, Epiphany, Dillo.
If you face any trouble update to me. Thank you.

Feb 11, 2013

I taken another Journey Via d2websites.in to Design and Develop Websites

Hi guys. It is Long time to Meet. Ok fine I taken another Journey Via d2websites.in to Design and Develop Websites with Opensource Apps Inspiration with my team GIMP, Ubuntu Desktop, Inkscape and Kompozer .

Design Completed: Designed for Bizbeam.com


Design On Progress: Design For d2website.in .



Aug 28, 2012

How to enable mod_rewrite in apache2 (debian/ubuntu)

First install the Apache with this command:

apt-get install apache2

Now use locate to find if the mod_rewrite.so is available on your server:

updatedb

locate mod_rewrite.so

It will found in “/usr/lib/apache2/modules”

New Apache follow some folders to enable and disable mods so now do this:

cd /etc/apache2/mods-enabled

touch rewrite.load

vim rewrite.load (you may use any editor to edit this file)

Now paste this following line:

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

Then edit:

/etc/apache2/sites-available/default

Find the following:

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

and change it to

Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all

and finally restart Apache:

/etc/init.d/apache2 restart

Apr 20, 2012

How to install and configure Nagios monitoring server in Linux



This configuration is Redhat base Linux system.

1.Installing Nagios Required Packages
#yum install httpd php gcc glibc glibc-common gd gd-devel

2.Creating User account for Nagios
#useradd -m nagios
#passwd nagios

3.Creating group nagcmd and add it as a secondary group to nagios and Apache users
#groupadd nagcmd
#usermod -a -G nagcmd nagios
#usermod -a -G nagcmd apache

4.Download Nagios and nagios-plugins
#cd ~/Downloads
#wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz
#wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.11.tar.gz

5.Extract tar files
#tar -xvf nagios-3.2.0.tar.gz
#tar -xvf nagios-plugins-1.4.11.tar.gz

6.Compile and install Nagios
#cd nagios-3.2.0/
#./configure --with-command-group=nagcmd  ; configure the file
#make all  ; compile the files
#make install  ; Install the compiled source
#make install-init
#make install-config
#make install-commandmode

NOTE: If you want to email alert go to the file with your favorite editor /usr/local/nagios/etc/objects/contacts.cfg
and change email address of nagiosadmin to which address want to alert

7.after that install below 
#make install-webconf

8.Create nagisoadmin account for logging into the Nagios web interface.
#htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin 
Asking for password enter ex:12345

9.Restart the Apache web server to make new settings.
#service httpd restart

10.Compile and install the nagios-plugins
#cd ~/Downloads/nagios-plugins-1.4.11/
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install

11.Add the nagios to the system services list and to autstart on system boot list
chkconfig --add nagios ;adding to system services list
chkconfig nagios on ;adding to auto startup on system boot

12.Verify the nagios sample configuration file
#/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
If it shows total errors and warnings 0 when all is correct

13.Restart the nagios service
#service nagios restart

14.Modify the SElinux and iptables settings 
#setenforce 0 ; setting SElinux to Permissive mode

15.Change the context 
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
chcon -R -t httpd_sys_content_t /usr/local/nagios/share/

16.Flesh the iptables
#iptables -F
if you to permit save it
#service iptables save

Login into the nagios web interface by following
http://localhost/nagios ;Open this url in web browser and login with user is nagiosadmin and password which you given ex:12345

Aug 29, 2011

UNIX/Linux command line cheat sheet

Source: http://wallpaperswide.com/
Download: http://wallpaperswide.com/abbreviation-wallpapers.html

Aug 16, 2011

PROGRAMMING FUN ha ha ha

   intellisense 
        ||
        \/
       code >>> compile >>>>> run >>>> success ;-)
        /\         ||          ||         
        ^^         \/          \/
        ^^      errors       errors 
        ^^          \\       //
        ^^           \\     //
        ^^             google
        ^^              ||
        \\              \/
         \<<<<<<<  copy N paste