Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

Install Apache on CentOS 7 – Google Cloud

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
Install Apache On Centos 7 - Google Cloud
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Install Apache on CentOS 7 – Google Cloud. Apache is the most widely used HTTP web server which provides dynamic loading modules, easily integrating with other applications. Not using CentOS 7? Choose a different OS: ADVERTISEMENT Ubuntu 18.04 LTS You might also like How to Install Git on Linux 3 months ago DataStax Enhances Astra […]

ADVERTISEMENT

Install Apache on CentOS 7 – Google Cloud.

Apache is the most widely used HTTP web server which provides dynamic loading modules, easily integrating with other applications.

Not using CentOS 7? Choose a different OS:

ADVERTISEMENT

Ubuntu 18.04 LTS

CentOS 7

Debian 9

ADVERTISEMENT

This guide helps you to install Apache on CentOS 7 on Google Compute Engine.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Prerequisites

  1. Your Compute Engine Instance running.
  2. For setting up Compute Engine, see the Setting up Compute Engine Instance with CentOS 7
  3. CentOS 7 server setup on Google Cloud.

Install Apache

Installing Apache in CentOS is pretty straight forward which is known as httpd. Run the following command to install.

ADVERTISEMENT
sudo yum install httpd

Once the installation is completed, enable and start the Apache service.

sudo systemctl enable httpd
sudo systemctl start httpd

Configure Firewall

If your server is protected by the firewall and you haven’t opened the HTTP and HTTPS ports. Enable them with the following command.

ADVERTISEMENT
sudo ufw allow http
sudo ufw allow https

Verify Apache Installation

Every process in Apache is managed with the systemctl command. Verify the installation of Apache with the following command.

sudo systemctl status httpd
Output
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-02-14 04:26:01 UTC; 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 3483 (httpd)
Status: "Processing requests…"
CGroup: /system.slice/httpd.service
├─3483 /usr/sbin/httpd -DFOREGROUND
├─3484 /usr/sbin/httpd -DFOREGROUND
├─3485 /usr/sbin/httpd -DFOREGROUND
├─3486 /usr/sbin/httpd -DFOREGROUND
├─3487 /usr/sbin/httpd -DFOREGROUND
└─3488 /usr/sbin/httpd -DFOREGROUND
Feb 14 04:26:01 instance-1 systemd[1]: Starting The Apache HTTP Server…
Feb 14 04:26:01 instance-1 systemd[1]: Started The Apache HTTP Server.

Now visit the External IP address of your VM instance (http://VM_INSTANCE_IP_ADDRESS), you will see the default Apache welcome page.

ADVERTISEMENT
Verify Apache Installation

Apache Commands

To start Apache web server.

sudo systemctl start httpd

To stop Apache webserver.

sudo systemctl stop httpd

To restart Apache web server.

sudo systemctl restart httpd

To reload Apache without dropping connections.

sudo systemctl reload httpd

To disable Apache.

sudo systemctl disable httpd

To enable Apache.

sudo systemctl enable httpd

Now Apache is installed on CentOS 7 – Google Cloud and configured with Firewall.

Tags: CentOSCompute Engine
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Microsoft Surface Event: The Most Exciting And Innovative Launches And Updates

Microsoft Surface Event: The Most Exciting and Innovative Launches and Updates

September 21, 2023

AI Statistics and Trends: What You Need to Know in 2023

7 Best AI Girl Generators for Creating Realistic and Beautiful AI Girls

How to Create and Customize Stunning Contact Poster on iPhone

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

Best 10 AI Comic Generator: Create Comic book in Seconds

Popular Articles

Wix Ai

Create a Professional Website with Wix AI Website Builder

September 19, 2023

Interactive AI – Next Phase of Artificial Intelligence

Free AI Script Generators Online to Create High Quality Scripts

How to Become an AI Trainer: Skills, Salary, and Career Opportunities

Top 9 NSFW AI Story Writers to Try Today

OpenAI Introduces ChatGPT Enterprise for Businesses

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.