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
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.
That file should be part of the
apache2-data
package. Which should be pulled in automatically as a dependency of theapache2
package.I’d suggest trying to completely purge Apache, and then reinstall. Had you used the
--purge
already?Let us know how that goes. If it doesn’t work, share any error when uninstalling.