Question

Issues with apache2 restart

I have followed the phpMyAdmin tutorial, and have experienced an issue.

I have given the following command: sudo service apache2 restart

I have received the following response: Job for apache2 service failed because the control process exited with error code. See “systemctl status apache2.service” and “journalctl -xe” for details.

Upon using systemctl status apache2.service, I see the following text: [reddot] apache2.service - LSB: Apache2 web server Loaded: loaded (etc/init.d/apache2; bad vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d ¬apache2-systemd.conf Active: failed (Result: exit-code) since Sun 2016-08-21 [TIME]; 18s ago Docs: man:systemd-sysv-generator(8) Process: 19827 ExecStop=etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 16438 ExecReload=/et/init.d/apache2 stop reload (code=exited, status=0/SUCCESS) Process: 19919 ExecStat=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Doing “journalctl -xe” give a large amount of information, with no obvious issues visible.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I’m running into this exact issue and the suggestion of removing ‘Include /etc/phpmyadmin/apache.conf’ from /etc/apache2/apache2.conf does nothing

This question was answered by @sierracircle:

I think that tutorial might be out of date for 16.04.

Try removing that line from apache.conf:

sudo nano /etc/apache2/apache2.conf

remove this line: Include /etc/phpmyadmin/apache.conf

restart apache…

View the original comment