How to manage Apache Web Server

How to manage apache web server ?

Below are some basic apache web server management path and files which we should know to work smoothly.

Default Directory : /var/www/html/ By default apache served on this directory . While this can be changed by changing apache configuration file

Apache Configuratio Directory : /etc/apache2/ All apache configuration files resides here in this directory

Apache Mail configuration file : /etc/apache2/apache2.conf . The main apache configuration file

Apache listening ports file : /etc/apache2/ports.conf Having list of ports which apache will listen ( 80 and 443)

Virtual host stored file : /etc/apache2/sites-available/ Apache will not use this file unless its linked with sites-enabled directory

Enabled Virtual Host stored file : /etc/apache2/sites-enabled/ enabled per site virtual host directory. a2ensite links sites-available directory with sites-enabled directory

/etc/apache2/conf-available//etc/apache2/conf-enabled/: These directories have the same relationship as the sites-available and sites-enabled directories, but are used to store configuration fragments that do not belong in a virtual host. Files in the conf-available directory can be enabled with the a2enconf command and disabled with the a2disconf command.

/etc/apache2/mods-available//etc/apache2/mods-enabled/: These directories contain the available and enabled modules, respectively. Files ending in .load contain fragments to load specific modules, while files ending in .conf contain the configuration for those modules. Modules can be enabled and disabled using the a2enmod and a2dismod command.

/var/log/apache2/access.log: By default, every request to your web server is recorded in this log file unless Apache is configured to do otherwise.

/var/log/apache2/error.log: By default, all errors are recorded in this file. The LogLevel directive in the Apache configuration specifies how much detail the error logs will contain.

 

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to setup virtual host on apache web server in ubuntu

How to setup virtual host on apache web server in ubuntu.

To encapsulate configuration details we can use virtual host feature. We can host more than 1 website also on ubuntu server.

Apache on ubuntu has a server block enabled by default and default folder is /var/www/html

if we need to host a single website then above path is okay and we can continue our development on default folder.

But in case we need to host multiple website then we should follow virtual host feature

Step 1 : So lets create directory for our domain name

sudo mkdir /var/www/domainname

Step 2 : Lets assign the ownership of the directory with the $user environment variable

sudo chown -R $USER:$USER /var/www/your_domain

The permissions of your web roots needs to be correct if you haven’t modified your umask value, which sets default file permissions. To ensure that your permissions are correct and allow the owner to read, write, and execute the files while granting only read and execute permissions to groups and others, run below command

sudo chmod -R 755 /var/www/your_domain

Step 3 : Create a web page on above domain

sudo nano /var/www/your_domain/index.html

enter some html into this file and save and close it

Step 4 : Now Apache need to host this page . it’s necessary to create a virtual host file with the correct directives.

Instead of modifying the default configuration file located at /etc/apache2/sites-available/000-default.conf

directly, let’s make a new one at /etc/apache2/sites-available/your_domain.conf

Step 5 : enter below data into file

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName domainname
    ServerAlias www.domainname
    DocumentRoot /var/www/domainname
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

updated  DocumentRoot to our new directory

updated ServerAdmin to an email that the domainname site administrator can access.

Added two directives: ServerName, which establishes the base domain that should match for this virtual host definition,

ServerAlias, which defines further names that should match as if they were the base name.

Save and close the file

Step 6 : Lets enable the file with a2ensite tool 

sudo a2ensite your_domain.conf

Disable the default site defined in 000-default.conf:

sudo a2dissite 000-default.conf

Lets test for configuration errors

sudo apache2ctl configtest

Output should be “syntax ok”

restart apache to implement changes

sudo systemctl restart apache2

Apache should now working for new hosted domainname

 

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

how to install apache on ubuntu

How to install apache on ubuntu ?

The Apache HTTP server is the most widely-used web server in the world. It is having vast features at control level. You will see all features with time

Let us go step by step on  how to install an Apache on Ubuntu  20.04 server.

Step 1 : We should have the root credentials for server .

Step 2 : Create the new user with below command as we should not login from root credential

adduser <username>

This will add user and will ask for password . Set a strong password for user

Some information is not mandatory here so you can skip that by pressing enter only

Step 3 : Grant Admin Previleges

Add user to sudo group by below command

usermod -aG sudo <username>

Now <username> has right to perform all admin activities but with sudo keyword

Step 4 : Firewall Setting

Ubuntu UFW firewall just allow few services to run

Step 5 : run below command to see available applications

ufw app list

Step 6 : allow ssh connection so that user can log back

ufw allow OpenSSH

Output will be

Rules Updated

Rules Updated ( V6)

Step 7 : Enable the firewall

ufw enable

Now firewall is allowing only SSH connections. So whenever we are going to install any additional service then we need to set firewall setting.

Step 8  check the firewall Status

ufw status

Step 9 : just check user access on new terminal by running following command

ssh <username>@serverip

step 10 : just check the latest package index by below command

sudo apt update

Step 11 : Apache is available in ubutu repository so by below command we can install apache on ubuntu server

sudo apt install apache2

Accept the installation and Apache will be installed with all dependencies

Step 12 : We need to set some firewall settings so that public user can access the port .

Fetch the list of UFW application by below command

sudo ufw app list

In my case i got below list

Available applications:
  Apache
  Apache Full
  Apache Secure
  OpenSSH

As indicated by the output, there are three profiles available for Apache:

  • Apache: This profile opens only port 80 (normal, unencrypted web traffic)
  • Apache Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
  • Apache Secure: This profile opens only port 443 (TLS/SSL encrypted traffic)

Step 13 : So we need to enable most safe and restrictive profile. So lets do this by below command

sudo ufw allow ‘Apache’

Step 14 : Lets verify the change

sudo ufw status

Here in output you can see we have anywhere access of apache and apache(v6)

Step 15: Lets test the apache web server

sudo systemctl status apache2

Step 16. Lets see some basic command on apache

How to stop apache process

sudo systemctl stop apache2

How to start apache process

sudo systemctl start apache2

How to restart apache process

sudo systemctl restart apache2

In case of activation of only config changes you may need to reload apache so that connection should not drop

sudo systemctl reload apache2

By Default Apache services started automatically on reboot but if you want to disable it

sudo systemctl disable apache2

To enable apache service on startup

sudo systemctl enable apache2

 

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to install LAMP on Ubuntu

How to install LAMP on ubuntu ?

LAMP belongs to Linux Apache MySQL/Maria DB  PHP . Apache is Web Server MySQL is database PHP is Server side scripting and  development platform. All

Prerequisite 

Our prerequisite for LAMP installation on ubuntu 20.0 is you have already installed Ubuntu on your system.

Steps to install Lamp on Ubuntu

Step 1 : Update software packages

run common

sudo apt update

sudo apt upgrade

Now install the apache web server

sudo apt install -y apache2 apache2-utils

After running above command . check the apache service status 

systemctl status apache2

 

 

 

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

how to install virtual machine on windows

How to install virtual machine on windows ?

Before going on this part first let us install the prerequisite for installation of virtual machine.

Virtual machine is a software implementation that helps to run operating system virtually within a operating system you can install any operating system with in VM.  Virtual Machine is used when we need to work on other operating system without touching current operating system. Here we can assign RAM and CPU directly but within the allocated limit.

Install Oracle Virtual Box by going thrugh below link

https://www.krizna.com/windows-7/install-ubuntu-windows-7-virtualbox/#VirtualBox

After download just install the software . It is very easy to install. Just accept by default features and press next .

You can choose your desired location where you want to install

After installation , Launch the Oracle Virtual Box

 

 

click new

Enter Virtual Machine Name

Select Machine Folder

Select Type

Select  Version

Click on Expert Mode

Select RAM to be allocated (Keep it in green zone)

select create a virtual disk Image

select fixed size ( this will increase performance)

and Press Create

Virtual Machine is created successfully

Now install the ubuntu

click on start button

click on setting button

Go to storage

click on empty option under IDE controller

from attribute option click cd icon

select the downloaded image

Click ok

When this screen comes press space key


 

Ubuntu will ask for some option

I opted “Install Ubuntu ”

 

 

 

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

Kalcee E-Cart : Privacy Policy

Kalcee E-Cart : Privacy Policy The terms “SCHEME CENTER” individually and collectively refer to SCHEME CENTER and the terms “You” /”Your” / “Yourself” refer to the users. This Privacy Policy is an electronic record in the form of an electronic contract formed under the information Technology Act, 2000 and the rules made thereunder and the amended provisions pertaining to electronic documents / records in various statutes as amended by the information Technology Act, 2000. This Privacy Policy does not require any physical, electronic or digital signature. This Privacy Policy is a legally binding document between you and SCHEME CENTER (both terms defined below). The terms of this Privacy Policy will be effective upon your acceptance of the same (directly or indirectly in electronic form, by clicking on the I accept tab or by use of the website or by other means) and will govern the relationship between you and SCHEME CENTER for your use of the Kalcee E-Cart App  (defined below). This document is published and shall be construed in accordance with the provisions of the Information Technology (reasonable security practices and procedures and sensitive personal data of information) rules, 2011 under Information Technology Act, 2000; that require publishing of the Privacy Policy for collection, use, storage and transfer of sensitive personal data or information. Please read this Privacy Policy carefully by using the Website, you indicate that you understand, agree and consent to this Privacy Policy. If you do not agree with the terms of this Privacy Policy, please do not use this Website. By providing us your Information or by making use of the facilities provided by the Website, You hereby consent to the collection, storage, processing and transfer of any or all of Your Personal Information and Non-Personal Information by us as specified under this Privacy Policy. You further agree that such collection, use, storage and transfer of Your Information shall not cause any loss or wrongful gain to you or any other person.

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

Kalcee E-Cart : Cancellation and Refund Policy

CANCELLATION POLICY

Order once placed can only be cancelled within 4 hours from the placing the order, you can write to our customer support team on customercare@kalcee.com or call us on +919466135659 In such cases, the order will be cancelled and the money will be refunded to you within 10-14 working days after the cancellation request.

REFUND POLICY

Full Refunds Possible If: you received a defective item; the ordered item(s) is past its expiry date. Please note: Mode of refund may vary depending on circumstances. If the mode of refund is by Credit/Debit Card or Net Banking, please allow 10 to 14 working days for the credit to appear in your account. While we regret any inconvenience caused by this time frame, it is the bank’s policy that delays the refund timing and we have no control over that. If the mode of refund is by e-wallet, credit should be available within 24 hours. During peak seasons please allow up to 15-18 business days for your return to process. If you have any queries, contact us on customercare@kalcee.com or call us on +919466135659

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

Kalcee E-Cart : About Us

Scheme Center is well known organisation having multiple tie up with multiple vendors in market. All vendor has their separate panel to upload items into portal. A way of organizing people for the objective of selling goods and services to members and to the public. When operated correctly the business structure is similar to most corporate sales organizations which have sales people earning commissions and sales managers receiving a commission or bonuses based on the collective team’s sales. All large corporations tend to have multiple levels of sales management with incentives and bonuses paid for hitting sales targets.

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.

How to check installed android app in flutter?

We will be using Flutter device apps plugin to check the required app is already installed on Android device or not. To get this plugin follow this link Device Apps.

Step 1 : Paste this dependency “device_apps: ^1.0.9” in “pubspec.yaml” file of your project and save it.

Step 2 : Now go to the dart file in which you want enter the code to detect the required app is installed or not. Create a function as shown below as an example.

Step 3 : Here “com.example.myapp ” is package name of the app thru which the app will be search inside your device. After adding this code you will need to import device apps library in your dart file as shown below.

Step 4 : Now use the above mentioned function “Check” under any Button with “on tap” property. This function will give value “True” if it finds the mentioned app or value “False” if the app is not in your device as shown below.

Step 5 : Here we have received value as “true” in “DEBUG CONSOLE” which shows that the app is already installed in the device.

* The Content stated above is for informational purpose only. Expert Software Team is not responsible if any part of content found meaningless in any manner or condition.