By imperialsoup
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
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.