[06:55] <stiv2k> hello
[09:07] <kraut> moin
[12:32] <AnRkey> How can I completely remove apache with all configs so that I can reinstall? I have tried dpkg -P and apt-get remove --purge
[12:32] <AnRkey> when i reinstall apache still is not installed properly
[12:51] <infinity> Which package are you purging?
[12:51] <infinity> The conffiles belong to apache2.2-commong (apache2-common in dapper)
[12:51] <infinity> s/commong/common/
[01:09] <AnRkey> infinity, thanks
[01:09] <AnRkey> i have not purged common yet
[01:12] <AnRkey> i can't remove apache2.2-common as it is needed by apache2-mpm-prefork and when i try purge apache2-mpm-prefork it gives me this invoke-rc.d: unknown initscript, /etc/init.d/apache2 not found.
[01:12] <AnRkey> dpkg: error processing apache2-mpm-prefork (--purge):
[01:12] <AnRkey>  subprocess pre-removal script returned error exit status 100
[01:12] <AnRkey> Errors were encountered while processing:
[01:12] <infinity> And that's why you should use apt-get, not dpkg. :/
[01:12] <AnRkey> hmm ok
[01:12] <infinity> Because dpkg happily removed them our of dependency order.
[01:13] <AnRkey> well i deleted them thinking that a reinstall would replace them
[01:13] <AnRkey> been at this now for three days
[01:13] <infinity> You can edit /var/lib/dpkg/info/apache2-mpm-prefork.prerm and comment out the call to invoke-rcd.
[01:13] <infinity> And then try harder to purge. :)
[01:13] <AnRkey> ok
[01:13] <infinity> (Or just make the shell script not be "set -e")
[01:14] <AnRkey> tashell script?
[01:14] <infinity>  /var/lib/dpkg/info/apache2-mpm-prefork.prerm is a shell script.
[01:20] <AnRkey> ok that worked perfectly
[01:20] <AnRkey> some small probs though
[01:20] <AnRkey> sudo apache2ctl start
[01:20] <AnRkey> apache2: Syntax error on line 189 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/httpd.conf: No such file or directory
[01:20] <AnRkey> :D
[01:20] <infinity> Err, that didn't reinstall cleanly, then.
[01:21] <infinity> The postinst script is meant to create an empty httpd.conf
[01:21] <infinity> Really, it is.
[01:21] <AnRkey> :D
[01:21] <AnRkey> any suggestions
[01:21] <AnRkey> create one :D
[01:21] <AnRkey> brb
[01:21] <infinity> apt-get --purge remove apache2-common && rm -rf /etc/apache2 && apt-get install apache2
[01:22] <infinity> (or 2.2-common, whatever version you're on..)
[01:22] <infinity> I suspect some "I think I'm upgrading!" trickery may have triggered if there was an unclean purge. :/
[01:23] <AnRkey> hmm
[01:23] <infinity> Of course, just touching an empty httpd.conf would fix the above, but I'm concerned other things might have broken for you too in all your mangling. :)
[01:23] <AnRkey> sudo apache2ctl start
[01:23] <AnRkey> (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
[01:23] <AnRkey> no listening sockets available, shutting down
[01:23] <AnRkey> Unable to open logs
[01:23] <AnRkey> i created an empty httpd.conf
[01:23] <AnRkey> owned by root.root
[01:23] <infinity> Also, why are you using apache2ctl directly?
[01:23] <AnRkey> cause i get no info from /etc/init.d/apache2
[01:23] <infinity> sudo /etc/init.d/apache2 start
[01:24] <infinity> Address already in use means you already have an apache (or something) running.
[01:24] <AnRkey> it just does nothing
[01:24] <infinity> And bound to port 80.
[01:24] <infinity> sudo lsof -i TCP:80
[01:25] <AnRkey> http://paste.ubuntu-nl.org/34517/
[01:26] <AnRkey> something is running
[01:26] <AnRkey> odd
[01:26] <AnRkey> it looks like apache2
[01:27] <AnRkey> but when i /etc/init.d/apache2 stop i get this  * Stopping web server (apache2)...  httpd (no pid file) not running
[01:28] <AnRkey> just killed all those process'
[01:37] <AnRkey> infinity, it's working, removed everything apache2 related with --purge and then reinstalled. Thanks so very much!
[01:42] <AnRkey> i reinstalled php5 but it's not processing .php files in apache
[01:42] <AnRkey> how do i enable php once it's installed?
[02:02] <infinity> Did you install libapache2-mod-php5?
[02:03] <infinity> Note that if you did the "rm -rf /etc/apache2" thing, you'd need to purge libapache2-mod-php5 and reinstall it as well (since it has conffiles there...)
[02:38] <AnRkey> infinity, thanks, trying that now
[02:55] <AnRkey> thanks infinity that did the trick for php too. I had to install php5-mysql for torrentflux to work but it's cruising along quite nicely now.
[02:59] <AnRkey> infinity, my wife says thanks, now she can download torrents again while at work
[03:02] <infinity> Heh.
[03:05] <AnRkey> you have a website?
[03:05] <AnRkey> or blog?
[03:05] <infinity> I suspect I might have both.
[03:05] <AnRkey> posting the solution for this to a thread i had going
[03:05] <AnRkey> wanted to give u the cred
[03:05] <infinity> Oh, you don't have to credit me, I'm a Canonical employee, this is my job.
[03:06] <AnRkey> So u in london?
[03:06] <infinity> I maintained apache and php for years, I should hope I know how they work. :/
[03:06] <infinity> No, I live in Melbourne.
[03:06] <AnRkey> i c
[03:06] <AnRkey> so you met mark yet?
[03:48] <infinity> AnRkey: Err, yes, countless times.  I've been working for Canonical for years.
[03:52] <AnRkey> what he like to work for?
[04:02] <infinity> Like anyone, I suppose.
[04:06] <lousygarua> how do i check which scripts were recently run by cron-daemon?
[04:07] <infinity> lousygarua: grep CRON /var/log/syslog
[04:07] <sommer> lousygarua: you can try this: grep cron /var/log/syslog
[04:07] <infinity> lousygarua: (and syslog.0, etc)
[04:07] <sommer> heh
[04:07] <lousygarua> ok thanks
[04:08] <infinity> Note that it really is CRON, in upper case.
[04:08] <sommer> I concur
[04:09] <sommer> forgot the -i
[05:49] <Gat0rvean>  I'm trying to boot my Ubuntu Server 7.04 without a keyboard, I've configured the bios, but when It loads the modules, it stops at /etc/scripts and I have to press enter to get to the login prompt, how can I disable that?
[05:49] <infinity> "stops at /etc/scripts"?
[05:49] <infinity> (There is no /etc/scripts, so what do you really mean?)
[05:50] <Gat0rvean> something like that, I'd have to reboot it again to see what it really says, but it's /etc/something/something
[05:50] <infinity> And why would you care if you have a loging prompt if you have no keyboard? :)
[05:50] <Gat0rvean> well I can't even login remotely if it's not at the prompt
[05:51] <infinity> Okay, so something is prompting early in the boot sequence?
[05:51] <infinity> Find out what it is.
[05:51] <infinity> Because nothing's meant to.
[05:52] <Gat0rvean> ok, sec
[05:56] <Gat0rvean> "Running local boot scripts /etc/rc.local" [OK]  and stays there, hit enter and the prompt comes up
[05:57] <infinity> Okay, so did you edit rc.local?
[05:57] <infinity> Because it does nothing (exit 0) by default.
[05:58] <Gat0rvean> so change it to "exit 1"?
[05:58] <Gat0rvean> or just "#exit 0"
[05:58] <infinity> Uhm, no...
[05:58] <infinity> "exit 0" is correct.
[05:58] <infinity> That's all rc.local is doing?
[05:59] <Gat0rvean> yes
[05:59] <infinity> Then it's not rc.local that's the problem.
[05:59] <infinity> On the other hand, rc.local is the very last thing to run, so SSH should be up.
[06:00] <infinity> Which means, I'm not really sure what the problem is that you're trying to solve...
[06:00] <infinity> The login prompt not displaying is cosmetic, not sometihng that would prevent you from logging in remotely.
[06:00] <infinity> Oh, no rmnologin runs after rc.local.
[06:00] <Gat0rvean> gotcha, so being the noob I am, I probably have something weird with SSH going on
[06:01] <infinity> Can you paste "ls -l /etc/rc2.d" to me in a private message?
[06:03] <mathiaz> Gat0rvean: did you install the openssh-server package ?
[06:03] <mathiaz> Gat0rvean: it's not installed by default.
[06:04] <Gat0rvean> mathiaz, I did, I can login after I press enter and get the prompt
[06:04] <infinity> Hence the paste I asked for...
[06:04] <infinity> I suspect something's happening between rc.local and rmnologin.
[06:04] <infinity> (rmnologin is what allows you to login, locally and remotely)
[06:05] <infinity> Equally possible is that you've done something very terrible to your environment that's causing rmnologin to prompt, but that seems unlikely.  And a bit weird.
[06:06] <mathiaz> infinity: is the samba package shipped on the livecd ?
[06:07] <infinity> root@cthulhu:~# apt-cache show samba | grep ^Task
[06:07] <infinity> Task: edubuntu-server
[06:07] <infinity> (no)
[06:07] <mathiaz> infinity: ok. Thanks.
[06:08] <Gat0rvean> nevermind guys, I figured it out, I did not install it on the actual server, I installed it on the VMware I had setup before the install = / sorry for the stupidity
[06:08] <Gat0rvean> SSH that is
[06:13] <bulio|> is Ubuntu a good server distro?
[06:13] <infinity> You might get a biased opinion in this channel.
[06:13] <infinity> (ie: We're all likely to say "yes")
[06:14] <bulio|> heh
[06:14] <mathiaz> infinity: we should add a factoid about this question.
[06:33] <tck> or outline main diff between ubuntu server and debian server
[06:38] <infinity> Release schedule, LTS releases, commercial support from Canonical, and a different logo.
[06:38] <infinity> Did I miss anything?
[06:39] <infinity> Do I get a gold star?
[06:42] <ivoks> :)
[06:53] <arthur_kalm> Hi everyone, I'm trying to add an entry to my resolv.conf file but for some reason the entry keeps disappearing. I googled around and I can't seem to find the "proper" way of adding entries to resolv.conf. I don't have resolvconf installed...
[06:53] <arthur_kalm> Thanks in advance.
[06:54] <ivoks> maybe you have network manager?
[06:54] <ivoks> it's default in desktop instalations
[06:55] <arthur_kalm> ivoks: I forgot to mention, X is not installed on the server
[06:56] <ivoks> is there anything in resolv.conf?
[06:56] <mathiaz> arthur_kalm: are you using dhcp ?
[06:57] <arthur_kalm> mathiaz: yes
[06:57] <infinity> apt-get --purge remove resolvconf
[06:57] <infinity> With great prejudive.
[06:57] <infinity> Oh, if you're using dhcp, then nevermind. :P
[06:58] <arthur_kalm> infinity: hehe, and I don't have it installed
[06:58] <infinity> You need to edit /etc/dhcp3/dhclient.conf to append extra resolver entries.
[06:58] <mathiaz> arthur_kalm: you're resolv.conf is probably rewritten by you dhcp client
[06:58] <arthur_kalm> ivoks: yes, I'm trying to add something to the search
[06:58] <infinity> s/probably/definitely/
[06:58] <arthur_kalm> infinity: great thanks
[06:59] <infinity> man 5 dhcp-options for the full list of crap you can tweak in there.
[06:59] <arthur_kalm> infinity: hehe OK
[06:59] <arthur_kalm> I was just about to ask ;)
[07:00] <arthur_kalm> infinity: o_O. I just want to add another search, i.e. search <company dns>
[07:00] <infinity> I'd say "don't use DHCP on servers", but I'd be a hypocrite, I've had entire datacenters running with DHCP in the past.
[07:01] <arthur_kalm> infinity: hehe, OK so don't say it ;)
[07:01] <infinity> prepend domain-name "company.com ";
[07:01] <infinity> Try that, and then "ifdown eth0 && ifup eth0" and see what resolv.conf looks like.
[07:02] <infinity> (Yes, you can drop the interface remotely, if you bring it up on the same shell line... And if you have reasonably large testicles)
[07:03] <arthur_kalm> infinity: oh they're huge!
[07:03] <arthur_kalm> and that's really cool that u can bring down the interface remotely and not get disconnected :D
[07:05] <arthur_kalm> hmm I get a temporary name server failure
[07:05] <arthur_kalm> infinity: but I can ping it
[07:05] <lamont> ScottK: do you admin ubuntu-server mailing list?
[07:05] <ScottK> lamont: No.  Sorry.
[07:05] <lamont> oh well.
[07:05] <mathiaz> lamont: I do.
[07:06] <arthur_kalm> infinity: actually nvm, it works
[07:06] <lamont> mathiaz: lamont@mmjgroup.com == lamont@u.c
[07:06] <lamont> if you would be so kind as to approve me.
[07:14] <mathiaz> lamont: done.
[07:14] <lamont> danke
[07:16] <kylem> mathiaz, working on getting you new AA now.
[07:17] <mathiaz> kylem: excellent. Thanks.
[07:17] <kylem> np.