[07:21] <jrib> robdeman: hello
[07:21] <robdeman> hey jrbi
[07:22] <jrib> robdeman: how did you get in this situation?
[07:22] <robdeman> ehrm jrib that is :)
[07:22] <robdeman> well I installed Ubuntu 6.10 Server - LAMP (no gui)
[07:22] <jrib> _phantom_: someitmes there are classes here about ubuntu (not recently) but we also use it when we need a place with less traffic
[07:22] <robdeman> then I installed Subversion using apt-get
[07:22] <robdeman> then I learned that the Subversion that comes with Ubuntu is too old
[07:23] <robdeman> so I removed it and compiled Subversion myself
[07:23] <_phantom_> jrib: oh right sounds like fun ;-) Ill have to come in here now and again then
[07:23] <robdeman> then I learned that the Apache2 version that comes with Ubuntu is compiled against older ART libs
[07:23] <robdeman> si I removed apache2 and compiled apache2 from source
[07:23] <robdeman> well, that was such a nightmare that I now want to undo
[07:24] <robdeman> I just want to get Apache2 + Subversion from the repositories and no more compiled stuff
[07:24] <jrib> ok, so have you managed to remove those two things?
[07:24] <jrib> the compiled ones that is
[07:24] <robdeman> I am pretty sure about that
[07:24] <jrib> and subversion is ok now?
[07:24] <robdeman> I accidantely removed /etc/inid.d/apache2 by hand
[07:24] <robdeman> jrib: subversion is not installed yet
[07:25] <robdeman> its just removed
[07:25] <jrib> ok, lets handle apache then
[07:25] <robdeman> ok
[07:25] <robdeman> >> thanks for helping me out here
[07:25] <jrib> robdeman: sudo aptitude remove apache2-common && apt-cache policy apache2-common     on pastebin please
[07:26] <robdeman> http://pastebin.ca/445009
[07:27] <jrib> apt-cache policy apache2 | grep -i Installed
[07:28] <robdeman> jrib: Installed: (none)
[07:28] <jrib> ok, now:  sudo aptitude install apache2
[07:29] <jrib> pastebin if there is anything interesting
[07:29] <robdeman> jrib: http://pastebin.ca/445014
[07:30] <jrib> ok, ls /etc/init.d/apache2
[07:31] <robdeman> jrib: /etc/init.d/apache2
[07:31] <robdeman> but wait: I created that file
[07:31] <jrib> created how?
[07:32] <robdeman> using Nano, just an empty file
[07:32] <jrib> is it still empty?
[07:32] <robdeman> b/c when I did apt-get remove apache2-common it complaine dthat It could not remove that missing file...
[07:32] <robdeman> ye sits still empty
[07:32] <robdeman> it wasnt replace by the original one
[07:32] <jrib> ok remove apache2-common again
[07:32] <robdeman> sudo apt-get remove apache2-common ?
[07:32] <jrib> yes
[07:33] <robdeman> I did
[07:33] <robdeman> want the output in pastebin?
[07:33] <jrib> does /etc/init.d/apache2  still exist?
[07:33] <jrib> robdeman: not unless there were errors
[07:33] <robdeman> here it is http://pastebin.ca/445016
[07:34] <jrib> k, that looks fine
[07:36] <robdeman> mm
[07:37] <jrib> does /etc/init.d/apache2  still exist?
[07:37] <robdeman> oop ssorry: yes
[07:37] <jrib> delete it
[07:37] <robdeman> ok
[07:37] <jrib> sudo aptitude install apache2
[07:38] <robdeman> http://pastebin.ca/445024
[07:38] <jrib> robdeman: check /etc/init.d/apache2 now
[07:39] <robdeman> jrib: ls: /etc/init.d/apache2: No such file or directory
[07:39] <robdeman> strange eh?
[07:39] <jrib> indeed
[07:39] <jrib> is that the only file that's missing?
[07:39] <robdeman> I guess?
[07:40] <robdeman> also .. it doesnt download a fresh installer package...
[07:40] <robdeman> it just uses some cached copy of /apache2-common_2.0.55-4ubuntu4_i386.deb
[07:40] <robdeman> I dont understand why it doesnt geta fresh one, I replaced the sources.list with some standard stuff\
[07:40] <jrib> well delete it from /var/cache/apt/ if you want, but I don't think it matters
[07:41] <robdeman> oh well in that case
[07:42] <robdeman> I think I already tried that yesterday indeed
[07:42] <robdeman> so, are we lost here?
[07:42] <jrib> pastebin /etc/heh I'm laughing at /var/lib/dpkg/info/apache2.2-common.preinst
[07:42] <jrib> ignore the "pastebin /etc"
[07:43] <robdeman> so: /var/lib/dpkg/info/apache2.2-common.preinst ?
[07:43] <jrib> nah, it's not helpful, but it'sf unny
[07:45] <jrib> lets try purging instead of removing
[07:46] <jrib> sudo aptitude purge apache2-common
[07:46] <jrib> you might need to 'touch /etc/init.d/apache2' like you did last time
[07:49] <jrib> 	dh_installinit -a -r --init-script=apache2 debian/apache2.2-common.init.d -- start 91 09
[07:49] <jrib> I guess we may need to understand dh_installinit a bit more if this doesn't work
[07:51] <robdeman> mm
[07:52] <robdeman> http://pastebin.ca/445047
[07:54] <jrib> try: sudo aptitude purge apache2 apache2-mpm-worker apache2-common
[07:55] <robdeman> http://pastebin.ca/445054
[07:55] <jrib> oh you pressed yes last time :)
[07:55] <robdeman> eh?
[07:56] <jrib> you installed thttpd
[07:56] <robdeman> I did?
[07:56] <jrib> maybe remove that if you don't want it
[07:56] <robdeman> I dont want it..
[07:56] <robdeman> ok
[07:56] <jrib> ok then sudo aptitude install apache2
[07:57] <robdeman> ah errors while removing thttpd http://pastebin.ca/445057
[07:57] <robdeman> shall I continue with sudo aptitude install apache2 ?
[07:58] <jrib> heh great, another headache, yeah lets get apache2 in there
[08:00] <robdeman> ah bingo I think http://pastebin.ca/445059
[08:00] <jrib> cool, now just check to make sure it worked
[08:00] <jrib> robdeman: pay attention to the mesage though.  You will need to change that later
[08:01] <robdeman> well
[08:01] <robdeman> I think /etc/init.d/apache2 is own by root or eomthing? only sudo can access it
[08:01] <jrib> yes
[08:01] <jrib> but thttpd is in the way right now, we need to get rid of it
[08:02] <jrib> try  sudo /etc/init.d/thttpd stop
[08:04] <robdeman> ok I did
[08:04] <robdeman> I changed /etc/init.d/apache2 to 0755 ... b/c it didnt do anything
[08:05] <robdeman> hey this is strange:
[08:05] <robdeman>   /etc/init.d/apache2 stop ---> shows ' * Stopping apache 2.0 web server..  [ok] '
[08:05] <robdeman> but
[08:06] <robdeman> but /etc/init.d/apache2 start ---> doesnt feedback anything
[08:06] <jrib> Setting Apache2 not to start, as something else appears to be using Port 80. To allow apache2 to start, set NO_START to 0 in /etc/default/apache2. Apache2 has been set to listen on port 80 by default, so please edit /etc/apache2/ports.conf as desired. Note that the Port directive no longer works.
[08:07] <jrib> that may be why
[08:08] <robdeman> port 80 is open according to my portscanner
[08:08] <jrib> is it thttpd or apache2 though?
[08:09] <robdeman> not sure how can I check that?
[08:09] <jrib> check which one is running
[08:09] <jrib> ps -ef | grep apache
[08:09] <robdeman> ah //usr/local/apache2/bin/httpd
[08:09] <robdeman> that is my compiled version sint it
[08:09] <jrib> heh
[08:10] <jrib> /usr/local/bin contain any apache stuff?
[08:10] <robdeman> no
[08:11] <jrib> hmm I wonder how it starts
[08:11] <robdeman> I think I know
[08:11] <robdeman> Webmin started it
[08:11] <jrib> oh
[08:11] <robdeman> using apache2ctl
[08:11] <robdeman> but
[08:11] <robdeman> webmin cannot find it anymore
[08:11] <robdeman> since I removed the compiled version of apache
[08:11] <robdeman> maybe I just need to reboot
[08:12] <jrib> the init.d/apache2 script uses apache2ctl as well
[08:12] <jrib> I'd get rid of thttpd then reboot
[08:13] <robdeman> sweeet its back!
[08:13] <robdeman> how could I get rid of thttpd  ?
[08:14] <robdeman>  /etc/init.d/apache2 is back and it works
[08:14] <robdeman> I just killed all processes
[08:14] <robdeman> of httpd
[08:14] <robdeman> and then started apache2
[08:14] <robdeman> now it works
[08:15] <jrib> if thttpd is stopped, then try 'sudo aptitude remove thttpd' again
[08:17] <robdeman> jrib: http://pastebin.ca/445094
[08:17] <jrib> robdeman: try to read /var/lib/dpkg/info/thttpd.prerm and see why it is trying to do
[08:17] <jrib> s/why/what
[08:18] <robdeman> jri: mm http://pastebin.ca/445100
[08:19] <jrib> robdeman: meh, just comment the line where it tries to stop it
[08:20] <robdeman> sweeete
[08:20] <robdeman> removed :)
[08:26] <robdeman> pfewwwf
[08:26] <robdeman> thanks buddy
[08:26] <robdeman> that helped me a lot
[08:33] <jrib> np
[08:41] <robdeman> jrib: /etc/inid.d/apache start --> still no feedback
[08:41] <robdeman> any idea why?
[08:42] <jrib> robdeman: no, not sure
[08:43] <jrib> robdeman: what about "restart"?
[08:43] <robdeman> log says: http://pastebin.ca/445141
[08:44] <robdeman> restart -> no feeback either
[08:44] <jrib> robdeman: not sure, you can dig around the script, it's all bash
[09:13] <robdeman> ok I fixed it
[09:13] <robdeman> jrib: thanks
[09:13] <robdeman> a bunch!