LEARN APACHE SERVER

chirag.tomer

How Apache Server works and How Install Apache Server.

Apache is the web server 

Most widely used version 2.2

Latest 2.4

By default, 2.2

Around 75% apache webserver are used

Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers’ HTTP clients. Dedicated computers and appliances may be referred to as Web servers as well.

Apache installation in Ubuntu

Install tasksel to download multiple related packages .

Select lamp , samba and openssh server package

Also install – python-software-properties for other dependence 

Add repository – add-apt-repository ppa:wedupd8team/java

Sudo apt-get update

Install java package from repository created – install oracle-java8-installer

Install (Ubuntu-resricted-extras) for  a software package for the computer operating system Ubuntu that allows the user to install essential software which is not already included due to legal or copyright reasons.

  1. Update apt-get
  2. Install phpmyadmin
  3. Vim /etc/apache/apache.conf – AllowOverride ALL Or

-> directly sed -i ‘s/AllowOverride None/AllowOverride All/’ /etc/apache2/apache2.conf

->sed -i ‘s/denied/granted/’ /etc/apache2/apache2.conf

->https://mathiasbynens.be/notes/apache-allowoverride-all

  1. A3enmod rewirte (it’s a script which is used to enable the specified modules in – /etc/apache2/mods-enabled)
  2. Restart apache2 services
  3. Useradd –m –d /home/chiragchirag (-m to create users home directory if it doesn’t exist , -d home directory created from the value of user’s id login)
  4. Passwd chirag
  5. vim /etc/……/sites-available/000-default.conf edit – Directory /var/www/ to /home/chirag
  6. mkdir html log
  7. apachectl –t (to check en error)
  8. chown –R chirag:chirag /home/chirag
  9. restart apache2

Install netbeans

  1. Download .sh from http://netbeans.org
  2. Chmod –x filename.sh
  3. curl -sS https://getcomposer.org/installer | php (Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.)
  4. mv composer.phar /usr/local/bin/composer

install bootup manager

  1. Boot-Up Manager is a graphical tool to allow easy configuration of init services in user and system runlevels, as far as changing Start/Stop services priority.
  2. Now clean the cache apt-get autoclean

Speed Up Boot Time By Disabling The Grub Boot Menu

  1. sudonano /etc/init.d/rc
  2. Search now for the first instance of this line:
  3. CONCURRENCY=none
  4. Replace it with this one if needed:
  5. CONCURRENCY=makefile
  6. Ctrl+OCtrl+X Save and exit.

Speed up the app launch

  1. sudo apt-get install preload
  2. sudonano /etc/preload.conf

Swappiness

  1. temporary changing the swappiness value.
  2. cat /proc/sys/vm/swappiness
  3. sudosysctlvm.swappiness=10
  4. permanent changing
  5. sudo vim /etc/sysctl.conf
  6. vm.swappiness=10 if does not exist create in the last

TMpFS

It will speed up the linux things and it stands for temporary file storage facility

  1. sudo vim /etc/fstab
  2. At the end of the file, add these two lines:
  3. tmpfs /tmptmpfsdefaults,noexec,nosuid 0 0
  4. sudo mount –a (mount all)

zram

“Increased performance in Linux with zram (virtual swap compressed in ram)

sudo apt install zram-config

sudonano /etc/default/grub

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.