28 lines
921 B
Markdown
28 lines
921 B
Markdown
## Apache error.log: ##
|
|
|
|
AH00489: Apache/2.4.12 (Unix) configured -- resuming normal operations
|
|
AH00094: Command line: '/usr/local/apache2/bin/httpd'
|
|
|
|
## solution: ##
|
|
|
|
## REINSTALL APACHE2: ##
|
|
|
|
To replace configuration files that have been deleted, without purging the package, you can do:
|
|
|
|
<code>sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2</code>
|
|
|
|
* To fully remove the apache2 config files, you should:
|
|
|
|
<code>sudo apt-get purge apache2</code>
|
|
|
|
* which will then let you reinstall it in the usual way with:
|
|
|
|
<code>sudo apt-get install apache2</code>
|
|
|
|
Purge is required to remove all the config files - if you delete the config files but only remove the package, then this is remembered & missing config files are not reinstalled by default.
|
|
|
|
# Then REINSTALL PHP5: #
|
|
|
|
<code>apt-get purge libapache2-mod-php5 php5 && \</code>
|
|
<code>apt-get install libapache2-mod-php5 php5</code>
|