Yo back, just back see ubuntu boot and fail!

Asked by benny

Yo back, just back see ubuntu boot and fail!
who knows?

desktop:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2 .: 197: Can't open /etc/apache2/envvars
ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
                                                                         [fail]

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
benny
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
benny (b3ny) said :
#1

desktop:~$ sudo apt-get install php5 libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5 is already the newest version.
libapache2-mod-php5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
benny@benny-desktop:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2 .: 197: Can't open /etc/apache2/envvars
ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
                                                                         [fail]

desktop:~$ sudo apt-get remove --purge apache2 php5 mythweb
[sudo] password for benny:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mythweb is not installed, so not removed
The following packages will be REMOVED:
  apache2* php5*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 123kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 108063 files and directories currently installed.)
Removing apache2 ...
Removing php5 ...

desktop:~$ rm -r /etc/apache2
rm: descend into write-protected directory `/etc/apache2'?
benny@benny-desktop:~$ sudo rm -r /etc/apache2
benny@benny-desktop:~$ sudo apt-get install mythweb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  mythtv-common pwgen
Suggested packages:
  mythtv-doc
The following NEW packages will be installed:
  mythtv-common mythweb pwgen
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 6740kB of archives.
After this operation, 12.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://au.archive.ubuntu.com hardy/main pwgen 2.06-1 [19.5kB]
Get:2 http://au.archive.ubuntu.com hardy-updates/multiverse mythtv-common 0.21.0+fixes16838-0ubuntu3.1 [5701kB]
Get:3 http://au.archive.ubuntu.com hardy-updates/multiverse mythweb 0.21.0+fixes16838-0ubuntu2.1 [1019kB]
Fetched 6740kB in 3min51s (29.1kB/s)
Preconfiguring packages ...
Selecting previously deselected package pwgen.
(Reading database ... 108056 files and directories currently installed.)
Unpacking pwgen (from .../archives/pwgen_2.06-1_i386.deb) ...
Selecting previously deselected package mythtv-common.
Unpacking mythtv-common (from .../mythtv-common_0.21.0+fixes16838-0ubuntu3.1_all.deb) ...
Selecting previously deselected package mythweb.
Unpacking mythweb (from .../mythweb_0.21.0+fixes16838-0ubuntu2.1_all.deb) ...
Setting up pwgen (2.06-1) ...
Setting up mythtv-common (0.21.0+fixes16838-0ubuntu3.1) ...
Adding user mythtv to group video
Adding user mythtv to group audio
Adding user mythtv to group cdrom
Adding user mythtv to group dialout

Setting up mythweb (0.21.0+fixes16838-0ubuntu2.1) ...

benny@benny-desktop:~$ sudo /etc/init.d/apache2 restart
 * Restarting web server apache2 .: 197: Can't open /etc/apache2/envvars
ERROR: APACHE_PID_FILE needs to be defined in /etc/apache2/envvars
apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
                                                                                   [fail]

Revision history for this message
benny (b3ny) said :
#2

There is 1 error.

Revision history for this message
benny (b3ny) said :
#3

let it be fail

Revision history for this message
benny (b3ny) said :
#4

fail