11 October 2015

How to start & stop Apache httpd 2.4.* Web Server on linux


  • You can start & stop apache httpd version 2.4.* web server on linux using two simple linux command given bellow.
  • Step 1: Start Apache Command :
[root@webservr]#
apachectl start
  • Step 2: Stop Apache Command
[root@webservr]#
 apachectl stop
  • Step3: Its Done.
Apache HTTP Server 2.4 Reference Manual 3/3 (Volume 3)

12 September 2015

How to redirect your website from HTTP to HTTPS on Apache HTTP Web Server


HTTP to HTTPS
  • You can automatically redirect your website visitor from http://www.yourwebsite.com  to https://www.yourwebsite.com  in various ways. 
  • This blog post will show you how to redirect your website from http to https using a simple .htaccess file saved on your web server.
  • Step 1: Install & configure mod_ssl on your Apache HTTP Server.
  • Step 2: Enable the mod_rewrite modules by editing the ‘httpd.conf’ apache configuration file.
  • Step 3: create an ‘.htaccess’ file and write the following code on that .htaccess file & save the file on your web server document root directory.   
  
 RewriteEngine On
 RewriteCond %{HTTPS} off
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Pro Apache (Expert's Voice)

26 February 2015

WordPress theme & plugins installation “Download failed” problem solved

  • If you are getting an error message while tried to install any WordPress theme or plug-ins from wordpress admin panel. If the error message says “Download failed. There are no HTTP transports available which can complete the requested request.”. Then this post might help you. 

  • Step1:  You have to edit your php.ini file, so find the php.ini file & open it with notepad.
php.ini


  • Step2: Find “php_curl” extension on the php.ini file
php.ini


  • Step3: After finding, now enable the php_curl extension by removing the semicolon (;) 
php.ini


  • Step4: save the php.ini file & close it
  • Step5: Restart the apache service.
  • Step6: It’s done. 
  • Now you can download any wordpress themes & plugins from wordpress admin panel.




WordPress All-in-One For Dummies

05 April 2014

Windows 7 volume increasing and decreasing problem solution

  • If you are facing volume increasing and decreasing automatically on windows 7 and looking for a perfect solution then this blog post might help you:
  • Step1: Go to Control Panel(Start->Control Panel) &  Click on View by "Large Icon" to sort the view & show all icon.

Windows 7 control panel
  • Step2:   Click on Sound
Windows 7 control panel sound

  • Step3: Click on Speaker icon then click on Property or double click on the Speaker Icon.
Windows 7 control panel volume control
  • Step4: Click on Enhancement Tab, then click on the "Disable all sound effects" check box, then Click OK.

Windows 7 control panel sound volume control
  • Step5: Close all audio player(winamp, Media player etc)  if any is running then start again the player.

  • Step6: Yes... it's done. Now enjoy your music without volume increasing and decreasing problem.

Windows 7 Professional With SP1 64 Bit OEM - 1 PC

24 March 2014

How to use same internet connection on multiple devices without buying any Wifi router?


  • If you want to use same internet connection on your laptop, Smartphone, tablet, ipad at a time without buying a wifi router, then this blog post might help you. 

  • Step 1: I am using Teletalk 3G internet line on my laptop computer & you may use any internet connection from your laptop.

Teletalk 3G modem
Teletalk-3G modem

  • Step 3: Open the virtualrouterplus software & don't change the Network Name(SSID). Set a password (i.e shafiq123) & select the shared connection as Teletalk-Internet (your internet connection). 

  • Step 4: Click on Start Virtual router plus
Virtualrouterplus
Virtualrouterplus

  • Step 5: Now your computer will act as a virtual wifi hotspot & you can connect to the internet from any wi-fi  enable SmartPhone or other device using this connection.

  • Step 6: To use the wi-fi hotspot created on step5, enable wi-fi connection from your smart phone, tablet or other devices.

  • Step 7: You will find a wi-fi connection named “virturouterplus.com” which is secure with password, select the connection and set the password (i.e shafiq123) as you have already set on step3.

  • Step 8:Wait sometime to get connected with your virtual wifi-hotspot.
  • Step 9: It's Done. Now you are connected to the internet from your smart devices.
TP-Link N450 Wi-Fi Router - Wireless Internet Router for Home(TL-WR940N)

20 March 2014

What are the version of Microsoft .NET Platform


  • According to the targeted user group there are a few versions of .NET platform which is given bellow:
  • .NET Framework
  • .NET  Compact  Framework  (CF)
  •  Silverlight
  • .NET  for  Windows  Store  apps


1# .NET Framework is the most common version of the .NET environment which is used in the development of

Console applications,
Windows applications with a graphical user interface, Web applications and many more.

2#  .NET  Compact  Framework  (CF)  is  a  "light"  version  of  the  standard .NET  Framework. It is used  in  the  development  of  applications  for

Mobile phones and PDA devices using Windows Mobile Edition.

3#  Silverlight is also a "light" version of the .NET Framework. It is used on Web browsers in order to implement multimedia and Rich Internet Applications. It is similar to Adobe Flash.

4# .NET  for  Windows  Store  apps  is  a  subset  of  .NET  Framework designed . It is used to Develop  and  execution  of  .NET  applications  in Windows  8  and  Windows  RT  environment  (windows app store) Pro C 7: With .NET and .NET Core

18 February 2014

What is the difference between static and not static method in OOP

  • The main difference between static and non static method is Static method does not require an instance where non static method requires an instance to access them.
  • Example code in C#


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Calculator 
{
  //Static method 

  public static int sum(int a, int b)
   {
     return a + b;
   }
  //Non-Static methods

  public int subtract(int a, int b)
  {
     return a - b;
  } 

  public int Multilpy(int a, int b)
  {
    return a * b;
  }

  public int division(int a, int b)
  {
    return a / b;
  }
}


  • The sum method is declared as static, we can access the sum method without creating an instance of the Calculator class Code:


1
2
3
4
5
6
int firstNumber =int.Parse(textBox1.Text);
int secondNumber = int.Parse(textBox2.Text);

int sum = Calculator.sum(firstNumber, secondNumber);

MessageBox.Show("Result form Static Method sum="+sum);


  • Here,Method subtract is declared without the static keyword , that’s why is will act as non static, so if we want to access the subtract method of calculator class, then we have to create an instance of the calculator class first, then all the non-static methods will be accessible using the instance (i.e result1, result2) Code:


1
2
3
Calculator result1 = new Calculator(); 

MessageBox.Show("Result form Non Static Method subtraction= " + result1.subtract(firstNumber, secondNumber));

C 6.0 and the .NET 4.6 Framework

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts