Skip to main content

How To Install Apache On CentOS


How To Install  Apache On CentOS

Introduction

The Apache web server is currently the most popular web server in the world, which makes it a great default choice for hosting a website.t is used to serve more than half of all active websites.

Step One — Install Apache

 We can install Apache easily in CentOS's ,Using yum. A yum package manager allows us to install most software pain-free from a repository maintained by CentOS. 
sudo yum install httpd
Since we are using a sudo command, these operations get executed with root privileges. It will ask you for your regular user's password to verify your intentions.

Once it Installation has completed, you can start Apache using following command
sudo systemctl start httpd.service
You can do a spot check right away to verify that everything went as planned by visiting your System's IP address in your web browser
http://your_machine_IP_address/
The last thing you will want to do is enable Apache to start on boot. Use the following command to do so:
sudo systemctl enable httpd.service


Popular posts from this blog

How to disable Apache Commons Logging statement in Our Java Application

In recent times, One of the java project applications is started printing apache-commons logs in the application logs. Turns out due to the changes in the migration process. The log4j.xml from the apache-commons is taken into account in the classpath due to that the application logs keep piling up and at some point of time the servers end up with no storage spaces, To disable the Apache commons logs from the Apache commons-logging module. Add the following parameter in the Java args during the server startup. -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog

How to configure Custom Keystore & SSL in Oracle Weblogic 12c with WLST

In this post, we are going to see how to configure Custom keystore and SSL in Weblogic 12c through WLST. Before configuring ensure that your Weblogic server is up and running. Use the below script and run the script through WLST to configure Keystore and SSL ===== SCRIPT STARTS ============ // connect to Weblogic server. alter the ip-address and port as per your server configurations connect('admin', 'admin@123', t3://ip-address:port) edit() startEdit() // We are going to update the Keystore and SSL in AdminServer. Alter as per your needs cd('/Servers/' + 'AdminServer') cmo.setKeyStores('CustomIdentityAndCustomTrust') cmo.setCustomIdentityKeyStoreFileName('/path/to/keystore/jks/file') cmo.setCustomIdentityKeyStorePassPhrase('passphrase') cmo.setCustomIdentityKeyStoreType('JKS') cmo.setCustomTrustKeyStoreFileName('/path/to/keystore/jks/file') cmo.setCustomTrustKeyStorePassPhrase('pa

Uses of RLWRAP in SQL*Plus and How to Install RLWRAP in Centos 7

Everybody who works in Oracle Database knows how it's powerful but it also has its limitations.By installing the readline wrapper utility (rlwrap) we can able to use the "up arrow" and "down arrow" keys to display the command line history for all SQL*Plus commands and also it has the ability to edit the SQL*Plus commands. To install the rlwrap in the Centos Environment. Install rlwrap as a root user. Use the below commands to install rlwrap   wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm   rpm -Uvh epel-release-latest-7.noarch   yum install rlwrap HOW TO USE IT FOR SQL*Plus   rlwrap sqlplus / as sysdba Also, we can use rlwrap for other commands too