• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Techgoeasy

Techgoeasy

Learn Oracle, PHP, HTML,CSS,Perl,UNIX shell scripts

  • Home
  • Oracle
    • Oracle database
    • Oracle Ebusiness Suite
    • Oracle weblogic
    • Oracle Performance Tuning
    • Oracle Hyperion
    • Oracle Cloud Tutorials
  • SQL
  • interview questions
  • Linux
  • PHP and HTML
  • Downloads
  • General
Home » Unix command and scripts » how to start and stop httpd service

how to start and stop httpd service

September 8, 2018 by techgoeasy 1 Comment

Apache is the HTTP server which is freely available over internet. it is widely used on Linux distribution to host websites.  Apache configuration is managed by the configuration file httpd.conf. You can use locate command to find the configuration  file

$ locate httpd.conf
/etc/httpd/conf/httpd.conf

After making the change , you need to restart the Apache services to make it effective

Command for  Linux version 4.x/5.x/6.x or older commands :

Start  Command

service httpd start

Stop Command

service httpd stop

Restart command

service httpd restart

status command

service httpd status

How to automatically start the httpd service after the reboot

chkconfig httpd on

 

Command for Linux version Linux version 7.x or newer commands :

Start command

systemctl start httpd.service
Stop command
systemctl stop httpd.service

Restart command

systemctl restart httpd.service

How to enable httpd service to start after reboot

systemctl enable httpd

Filed Under: Unix command and scripts

Reader Interactions

Comments

  1. na says

    January 1, 2022 at 11:22 am

    systemctl start httpd.service
    than you so much this worked for me

    Reply

Leave a Reply Cancel reply

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

Primary Sidebar



Subscribe to our mailing list

Enter your email address to subscribe to this blog and receive notifications of new posts by email

Recent Posts

  • How to use sed to remove comments and blank lines
  • How to recover database using RMAN
  • How to check Stale statistics
  • Java web start(JWS) in R12
  • How to delete the archive logs in Oracle

Copyright © 2023 : TechGoEasy

  • Hire me
  • Privacy Policy
  • Contact Us
  • New? Start Here
  • About Us