After Apache is installed, the service cannot be started (error code 1 appears when starting the service)

After Apache is installed, the service cannot be started (error code 1 appears when starting the service)

1. Error message

1. After installation, it shows that the installation is successful, but the service cannot be started error code 1

2. Enter the Apache24/bin target as an administrator and execute httpd.exe

2. Cause of error

Error code 1 is displayed, which means that the port number is occupied.

Execute the code httpd.exe in the bin directory in cmd to make it display the error and see the occupied port number to solve the problem

3. Solution

1. Enter and run netstat -ano in the command prompt to view port occupancy

The process with process ID (PID) 6812 occupies port 443.

3. Run tasklist |findstr 4 to view process information

From the above, we can see that the port is occupied by the vmware-hostd.ext program, so we need to change the port of Apache24 and search for httpd-ssl.conf in the Apache24 directory.

Replace 443 in the two files with any number that does not exist in the port number (such as 442) (right click - open with Notepad - edit - replace)

Do the same for the other one; then restart the service and restart the computer! OK solution

This concludes this article about the inability to start the service after Apache installation (error code 1 appears when starting the service). For more information about Apache error code 1, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed process of building and deploying Apache Pulsar cluster
  • Apache log4j2-RCE Vulnerability Reproduction and Repair Suggestions (CVE-2021-44228)
  • Apache Log4j2 reports a nuclear-level vulnerability and a quick fix
  • Vertica Integrated Apache Hudi Heavy Usage Guide

<<:  CSS injection knowledge summary

>>:  MySQL scheduled full database backup

Recommend

Detailed explanation of zabbix executing scripts or instructions on remote hosts

Scenario Requirements 1. We can use the script fu...

How to install mongodb 4.2 using yum on centos8

1. Make a repo file Refer to the official install...

Tutorial on installing mysql under centos7

Recently, I plan to deploy a cloud disk on my hom...

The complete implementation process of Sudoku using JavaScript

Table of contents Preface How to solve Sudoku Fil...

Vue plugin error: Vue.js is detected on this page. Problem solved

Vue plugin reports an error: Vue.js is detected o...

MySQL deadlock routine: inconsistent batch insertion order under unique index

Preface The essence of deadlock is resource compe...

Ant designing vue table to achieve a complete example of scalable columns

Perfect solution to the scalable column problem o...

mysql add, delete, modify and query basic statements

grammar Here is the generic SQL syntax for INSERT...

Introduction to the use of common Dockerfile commands

Table of contents 01 CMD 02 ENTRYPOINT 03 WORKDIR...

Summary of how to use bootstrap Table

This article shares with you how to use bootstrap...

Detailed explanation of vue simple notepad development

This article example shares the specific code of ...

Tips for implementing list loop scrolling based on jQuery (super simple)

I saw a good idea and recorded it. I have used jQ...

Implementation of MySQL GRANT user authorization

Authorization is to grant certain permissions to ...

Docker data volume common operation code examples

If the developer uses Dockerfile to build the ima...