I planned to configure the virtual domain name in Apache before, so I did various operations on the configuration file of Apache. As a result, I don’t know why Apache always reported errors when it was restarted and started
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service"
and "journalctl -xe" for details.
So I went to the apache2 error log /var/log/apache2 and couldn’t find a solution. So I unloaded Apache and reinstalled Apache and PHP
The next day, I encountered this problem again when I was tuning my configuration file. I used soft connection in both processes, so I wondered if there was something wrong with soft connection. I carefully checked what soft connection is
Soft links under linux are similar to shortcuts under windows.
Examples.
ln -s httpd.conf confighttp
where httpd.conf is the source file , conffighttp is the link filename , its role is to edit when conffighttp
, which is actually a link edit httpd.conf.
If the soft link is to be removed.
confighttp-rm-rf.
This will only delete the conffighttp link file, but not the source file httpd.conf.
As opposed to soft links, and hard links.
Order to establish a hard link.
ln httpd.conf confighttp
A hard-linked file is the equivalent of a file stored in two locations, which effectively prevents accidental deletion.
Translated with www.DeepL.com/Translator (free version)
Then use the command to try to delete the previous soft connection, found success. Apache restore, problem resolved
Read More:
- Apache2 cannot be started and an error is reported for apache2.service failed because the control process exited with error code.
- Apache service can’t be started under xampp, reporting port occupancy class error [error] Apache will not start without the configured ports free!
- MAMP failed to start: Apache could’t be started. Please check your MAMP installation and configuration
- Apache service failed to start, semaphore not released
- Systemctl command doesn’t exist. How to solve the problem that the service can’t be started
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibat
- [Solved] Error in registering Eureka for spring cloud micro service: classnotfoundexception: org.apache.http.conn.scheme.schemeregistry
- [Solved] Import org.apache.hadoop.hbase.hbaseconfiguration package cannot be imported
- Job for network.service Failed because the control process exited with error code. See “SystemC
- Install apache2.4 on windows to solve the problem of the requested operation has failed
- Job for docker.service failed because the control process exited with error code. See systemctl sta
- Apache failed to start due to SSL library certificate has expired
- org.apache.flink.runtime.client.JobSubmissionException: Failed to submit JobGraph
- Failed to enable APR appears when the cmder of ubutun system in win subsystem installs Apache_ TCP_ DEFER_ ACCEPT
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- systemctl start docker Job for docker.service failed because the control process exited with error
- org.apache.catalina.LifecycleException: Protocol handler start failed
- Caused by: org.apache.catalina.LifecycleException: A child container failed during start
- ERROR $124; Failed to start Apache ActiveMQ (localhost, ID:ZJZL-201910RQ-545-15845236845-0:1) jvm
- tomcat Issues org.apache.catalina.LifecycleException: Failed to start component