Question

Help with an incomplete Apache 2 installation on Ubuntu 14.04 x32 droplet

My installation of apache2 is incomplete, and after a lot of googling, purging, and reinstalling I am still in the same place. During installation my console prints

Setting up apache2 (2.4.7-1ubuntu4.1) … Enabling module mpm_event. cp: cannot stat ‘/usr/share/apache2/default-site/index.html’: No such file or directory dpkg: error processing package apache2 (–configure): subprocess installed post-installation script returned error exit status 1 Processing triggers for ureadahead (0.100.0-16) … Processing triggers for ufw (0.34~rc-0ubuntu2) … Errors were encountered while processing: apache2 E: Sub-process /usr/bin/dpkg returned an error code (1) imperialsoup@imperialsoup:~$

Not sure where to go from here, as I’ve already uninstalled and reinstalled apache 2 quite a few times at this point. Any help with this would be deeply appreciated, I’d like to get this install over with so I can continue with the tutorial. Thanks in advance, -M


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.

That file should be part of the apache2-data package. Which should be pulled in automatically as a dependency of the apache2 package.

# dpkg -S /usr/share/apache2/default-site/index.html
apache2-data: /usr/share/apache2/default-site/index.html

I’d suggest trying to completely purge Apache, and then reinstall. Had you used the --purge already?

sudo apt-get remove --purge apache2 apache2-data apache2-utils
sudo apt-get install apache2

Let us know how that goes. If it doesn’t work, share any error when uninstalling.