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

Summary of MySQL slow log related knowledge

Table of contents 1. Introduction to Slow Log 2. ...

Summary of the differences between get and post requests in Vue

The operating environment of this tutorial: Windo...

Example of adding multi-language function to Vue background management

Table of contents 1. First, configure the main.js...

Use elasticsearch to delete index data regularly

1. Sometimes we use ES Due to limited resources o...

A mobile adaptive web page effect solves the problem of small display page

For work needs, I need to make a mobile phone adap...

MySQL 8.0.11 installation tutorial with pictures and text

There are many tutorials on the Internet, and the...

Demystifying the HTML 5 Working Draft

The World Wide Web Consortium (W3C) has released a...

In-depth understanding of Vue's plug-in mechanism and installation details

Preface: When we use Vue, we often use and write ...

Examples of 4 methods for inserting large amounts of data in MySQL

Preface This article mainly introduces 4 methods ...

MySQL InnoDB tablespace encryption example detailed explanation

Preface Starting from MySQL 5.7.11, MySQL support...

Example code for converting Mysql query result set into JSON data

Mysql converts query result set into JSON data Pr...

Mysql implements null value first/last method example

Preface We already know that MySQL uses the SQL S...