Posts

How to install Wordpress in a Linux system

Image
WordPress is one of the popular Content Management System (CMS). It is an open source website creation tool build by PHP. Most the websites are running through this application. It is also available in FTP server or we can configure it and run from our own servers. In this article we going to see how to install and run Wordpress in our local system. For installing wordpress the server should be a LAMP configured server since wordpress is a PHP based application, For LAMP installation, For Centos, Click here for RPM based machines. For Ubuntu, Click here for Debian based machines. Installing wordpress,     Download the wordpress opensource package from their official site Wordpress.Org . You can either download the zip file or tar.gz file. $ wget https://wordpress.org/latest.zip Unzip the file $ unzip latest.zip Move the unzipped file to the document root of your apache server. $ mv wordpress /usr/local/apache-2.4.37/htdocs/ Add a Vir...

How to Install LAMP Stack on Linux - Ubuntu 17.04

Image
What is LAMP?     LAMP stands for Linux with Apache, Mysql and PHP. In this article we are going to see how to install a LAMP stack in Debian based machines Ubuntu-17.04. We are going to install all these packages through source installation which allows us to install required versions. Installing Apache:     On my previous articles i showed how to run a customized apache through source installation. Click here if you miss the article for installing Apache. Installing Mysql:     On Ubuntu machine we are going to install the default mysql through apt. $ apt-get install mysql-server $ systemctl start mysql Installing PHP:     As already told we are configuring applications through source installations. Downloading the source package,     Download the package from PHP official site. Click here to go to the downloads page. This page has the latest stable version for PHP.  For older...

How to Install LAMP Stack on Linux - Centos 7

Image
What is LAMP?     LAMP stands for Linux with Apache, Mysql and PHP. In this article we are going to see how to install a LAMP stack in Centos 7 machine. We are going to install all these packages through source installation which allows us to install required versions. Installing Apache:     On my previous articles i showed how to run a customized apache through source installation. Click here if you miss the article for installing Apache. Installing Mysql:     On centos 7 the default mysql server is MariaDB. You can either install MariaDB directly or MYSQL through repository. I have provided steps for both installation. But i suggest to go with MYSQL since it supports more applications like wordpress,etc.,. Installing MariaDB through Yum, $ yum install mariadb-server $ systemctl start mariadb Installing through rpm, Downloading and adding the repository, $ wget http://repo.mysql.com/mysql-community-release-el7-...

How to Run Virtual hosts in Apache webserver

Image
      In this articles we will see about setting up virtual hosts on apache. Virtual host helps us to run multiple web sites on a single server. There are 2 types of virtual hosting in Apache, Types of Virtual hosts: Name-based virtual hosting. IP-based virtual hosting. Name-based virtual hosting:     Name-based vitual hosting allows you to run more domains under a single IP. The conf directory for virtual host is /usr/local/apache-2.4.37/conf/extra/httpd-vhost.conf ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/usr/local/apache-2.4.37/docs/dummy-host.example.com" ServerName dummy-host.example.com ServerAlias www.dummy-host.example....

Apache Webserver - Installation from source (tar.gz and tar.bz2)

Image
    Installing from source used to be very common and also quite simple. You would download the source file, unpack it (with either zip or tar), then issue the commands to the the directory you want to install it. Crons: Allows us to install required version. Customizing Modules. To configure and integrate with other source packages.     In this articles we gonna install the Apache through source file on /usr/local/ directory. Get the source file for the desired version from the official website of Apache, where you can find the latest version. click here to download latest package You can either download or wget the file (tar.gz and tar.bz2 are available). $ wget http://mirrors.estointernet.in/apache//httpd/httpd-2.4.37.tar.gz Untar the package, $ tar -xzf httpd-2.4.37.tar.gz On default apache the portable runtime libraries are installed by default, when it comes to source installation you have to inst...

Apache installation - RPM and Debian based machines

Image
What is Apache?     Apache is an open source  web server application which is widely used by many organizations. In this article we gonna see how to install and run apache on different distributors through direct installation. Direct Installation: RPM Machines:     For RPM based machines such as centos,Fedora,etc.,. we can install it through yum $ yum install httpd     The above command will install default apache for RPM based machines. The default conf directory is /etc/httpd/conf/httpd.conf which contains all configuration statements. These statements don't need to be changed if its a basic installation.     The web files are stored under the default path /var/www/html . This path can be modified according to users wish on httpd.conf at DocumentRoot. DocumentRoot "/var/www/html" To start the webserver run the below command,            ...

Blog Top Sites

Blog Log