[07:16] <qiyong> what tool is used to configure the NIC besides ifconfig?
[08:22] <shawarma> qiyong: What are you trying to do?
[08:22] <qiyong> shawarma, configure nic
[08:22] <shawarma> qiyong: So use ifconfig?
[08:22] <qiyong> i expect some tool to store conf somewhere
[08:22] <qiyong> shawarma, ^
[08:23] <shawarma> shawarma: You probably want to edit /etc/network/interfaces
[08:23] <shawarma> qiyong: ^^
[08:23] <qiyong> btw, i noticed a bug of linux ifconfig shawarma 
[08:24] <shawarma> qiyong: ifup/ifdown reads that file and uses ifconfig to configure your nic.
[08:24] <qiyong> shawarma,  the first time you ifconfig ip/number it doesn't get the netmask and broadcast right. the subsequent ifconfig ip/number can get it right
[08:26] <shawarma> qiyong: Could you give an example?
[08:27] <qiyong> # ifconfig eth1 192.168.0.1/28
[08:27] <qiyong> # ifconfig eth1
[08:27] <qiyong> eth1      Link encap:Ethernet  HWaddr 00:18:8B:F8:A0:9D  
[08:27] <qiyong>           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
[08:27] <qiyong> # ifconfig eth1 192.168.0.1/28
[08:27] <qiyong> # ifconfig eth1
[08:27] <qiyong> eth1      Link encap:Ethernet  HWaddr 00:18:8B:F8:A0:9D  
[08:27] <qiyong>           inet addr:192.168.0.1  Bcast:192.168.0.15  Mask:255.255.255.240
[08:27] <qiyong> shawarma, see, the first try doesn't get it right, the second does
[08:30] <shawarma> Hm... I didn't even know you could use CIDR notation.
[08:31] <shawarma> qiyong: Could you file a bug on launchpad about that?
[08:31] <Pumpernickel> What'd the time delay between each of those commands?
[08:32] <qiyong> shawarma, i was tryping to find the net-tools official site to report to htem
[08:32] <qiyong> s/htem/them/
[08:32] <qiyong> shawarma, cidr?
[08:33] <Kamping_Kaiser> qiyong, using /28
[08:33] <shawarma> qiyong: Yeah, ip_address/number_of_ones_in_the_netmask
[08:33] <Kamping_Kaiser> ip/mask 
[08:36] <qiyong> Kamping_Kaiser, what cidr stands for?
[08:36] <coNP> Classless Inter-Domain Routing, I guess
[08:38] <qiyong> i don't realise any relations between ip/mask and cidr coNP 
[08:38] <Kamping_Kaiser> qiyong, the format 192.168.0.1/28 is called cidr
[08:38] <coNP> qiyong: I did not see your original question just answered what CIDR stands for
[03:20] <ivoks> hi
[04:04] <shawarma> hi, ivoks.
[04:04] <ivoks> i saw your post
[04:04] <bkudria> is php5(-cgi) in feisty compiled with fastcgi support?
[04:05] <ivoks> shawarma: mysql will be very hard to fix, since that's a design bug :)
[04:06] <ivoks> libapache2-mod-fcgid - an alternative module compat with mod_fastcgi
[04:06] <ivoks> meh... php5 :)
[04:06] <ivoks> sorry
[04:07] <bkudria> ivoks:right, that's the fcgid module.  is php4 (and 4) compiled with fastcgi support?
[04:07] <bkudria> i assume php5-cgi is, but i wanted to check
[04:07] <bkudria> i meant php5 and php4
[04:10] <shawarma> ivoks: It's not necessarily that difficult. It should be a matter of checking if the connecting user is root (system root, not mysql root) and thus grant him full privileges.
[04:10] <shawarma> ivoks: That will do away with cleartext passwords in config files and all the other questionable bits.
[04:12] <ivoks> shawarma: yeah, but sometime you want to give root access to mysql to non-root user
[04:12] <ivoks> shawarma: so fix whould check if password is empty and uid is 0
[04:12] <ivoks> shawarma: basicly, if pass is empty, only uid=0 can be mysql root
[04:13] <ivoks> otherwise, everybody can connect as root
[04:13] <shawarma> ivoks: Sure we need to give (mysql) root access to non-root users. We just want to special case the system root user.
[04:14] <ivoks> so, system root should access mysql without password, even if it is set?
[04:14] <shawarma> ivoks: Yes.
[04:14] <ivoks> ok, that's ok...
[04:14] <ivoks> then, random password for mysql root by default?
[04:15] <shawarma> ivoks: Actually, rather a disabled password.
[04:15] <ivoks> even better
[04:15] <shawarma> ivoks: Since a random password could potentially be "thepassword"
[04:15] <ivoks> right
[04:15] <shawarma> ivoks: Which is always my second guess :)
[04:15] <shawarma> (the first one being "password")
[04:15] <ivoks> but, if password is not set...
[04:16] <ivoks> does that mean 'no password'?
[04:16] <shawarma> Yes.
[04:16] <ivoks> then we are back at start :)
[04:16] <shawarma> I didn't say "no password".
[04:16] <shawarma> I said "disabled password2.
[04:16] <ivoks> right...
[04:16] <shawarma> s/2/"/
[04:16] <ivoks> my bad
[04:17] <ivoks> that's fine
[04:17] <ivoks> and result would be 'even better than by default'
[04:17] <ivoks> cause i hate to remember all those password on single machine :)
[04:19] <ivoks> with such setup, creating mysql root password would be pointless, except we want to give another user full permisions...
[04:19] <ivoks> when we want..
[04:19] <ivoks> shawarma: i like your idea :)
[04:19] <bkudria> i want to run several apache2 vhosts with php4 and php5 using fcgid. i can't seem to find any tutorials that describe the ubuntu way of doing this.  can anyone help, or point me in the right direction?
[04:21] <ivoks> bkudria: in /etc/apache2/sites-available create your vhosts file
[04:21] <bkudria> ivoks: ok.
[04:21] <ivoks> and create virtual hosts in it
[04:21] <ivoks> you know how to do that?
[04:21] <bkudria> yep :)
[04:21] <ivoks> then, after you create them
[04:22] <bkudria> a2ensite?
[04:22] <ivoks> right
[04:22] <ivoks> and... that's it
[04:22] <bkudria> what about fcgid, and php5?
[04:23] <ivoks> well, there is php5-cgi, but i don't know if it is compiled with fastcgi
[04:23] <mralphabet> I don't think it is, I looked at the module list and it doesn't list fastcgi
[04:24] <ivoks> well... this is README:
[04:24] <ivoks>    PHP for any webservers.  Our recommendation is that, if you need
[04:24] <ivoks>    to use a threaded webserver, you should use php5-cgi in either
[04:24] <ivoks>    'normal' CGI mode, or in FastCGI mode.
[04:24] <bkudria> nope, its compiled with fastcgi
[04:24] <ivoks> this is README.Debian.gz, so I guess
[04:24] <ivoks> right
[04:24] <bkudria> php5-cgi -v shows (cgi-fcgi)
[04:24] <ivoks> bkudria: it is
[04:25] <ivoks> since 2005.
[04:25] <bkudria> so,do i need to do anything other than installing it and a2enmodding it?
[04:25] <ivoks> yes
[04:25] <ivoks> write web pages :)
[04:26] <bkudria> oh, ok, i'll try testing it.  
[04:26] <bkudria> now, next question
[04:27] <J_P> hi all
[04:27] <bkudria> i need php4 and php5 both running under apache, php4 for one set of vhosts, and php5 for another.  how can i do this?  how would i switch between the two?
[04:28] <ivoks> bkudria: it's possible
[04:28] <J_P> people, I have a problem :  I install ubuntu-server with RAID1, but quando machine are rebooting show this : "Stopping MD array md0...                          [ fail ]  " Anyone could help me why this ?
[04:28] <bkudria> ivoks: do you know how to do it?
[04:28] <ivoks> i have example for mod_rewrite
[04:29] <ivoks> oh, i don't :)
[04:29] <mralphabet> J_P: you reboot your machine?
[04:29] <mralphabet> J_P: ;)
[04:29] <J_P> mralphabet: yes.
[04:29] <ivoks> bkudria: load modules which you need in vhost you need
[04:30] <bkudria> ivoks: ok, i'll try that, i guess
[04:30] <bkudria> thanks
[04:30] <ivoks> AddType application/x-httpd-php4 .php
[04:30] <ivoks> something like that
[04:30] <mralphabet> J_P: I have the same thing happen, it isn't something I worry about
[04:31] <J_P> mralphabet: you have this message too ?
[04:31] <ivoks> well, maybe you don't have md0?
[04:31] <J_P> ivoks: yes, I have!
[04:31] <J_P> Filesystem            Size  Used Avail Use% Mounted on
[04:31] <J_P> /dev/md0              293G  562M  278G   1% /
[04:32] <bkudria> ivoks: hmm, would it be possible to create two subdirs under sites-available, and have one be php4, and the other be php5?
[04:32] <ivoks> bkudria: i don't see why not
[04:32] <bkudria> ivoks: ok, i'll try playing with it.  thanks
[04:33] <bkudria> ivoks: but then i'd have to wrap or rewrite a2ensite.  all it does is make the symlink, right?
[04:33] <ivoks> a2ensite does links yes
[04:33] <J_P> are there two mdadm on  init.d: mdadm-raid and mdadm. why two ?
[04:33] <ivoks> but you were asking about design of file which a2ensite would link
[04:34] <ivoks> bbl bye
[04:34] <J_P> mralphabet: are here ?
[04:35] <mralphabet> J_P: yes
[04:36] <J_P> mralphabet: on 6.10 don't have this problem, only in 7.04, and for you ?
[04:36] <mralphabet> 7.04 and yes
[04:36] <J_P> mralphabet: I
[04:37] <J_P> mralphabet: I'm curious, because this machine is for postgresql production....  
[04:37] <J_P> dangerous.... maybe
[04:37] <J_P> ?
[04:37] <mralphabet> perhaps
[04:38] <mralphabet> The machine I run it on is lower priority and takes less the 15 minutes to set back up if a drive fails
[04:39] <mralphabet> so it wasn't something that I worried about, not saying that *you* shouldn't worry about it
[04:40] <J_P> mralphabet: where/who we can know better  about this ? I try see /etc/init.d/mdadm and mdadm-raid scripts.. but not sucess to know why taht message (fail)....
[04:42] <mralphabet> J_P: I don't know actually, I haven't found an mdadm expert to chat with about it
[04:42] <J_P> mralphabet: this moment I think in debian (confiability/stability)... I yet have somes debian servers...
[04:44] <mralphabet> J_P: I'm looking at one of the debian mailing lists with somebody mentioning the same problem
[04:44] <J_P> mralphabet: with etch ?
[04:47] <mralphabet> J_P: http://readlist.com/lists/lists.debian.org/debian-user/28/144659.html
[04:48] <mralphabet> J_P: click on Next Msg on the right hand side to read through responses
[04:49] <mralphabet> FYI - found that thread from http://www.google.com/search?q=Stopping+md+array+md0+fail
[04:51] <J_P> mralphabet:  > Should I simply ignore the message?
[04:51] <J_P> > "topping MD array md0... failed (busy)"  Yes, unless it is *causing* a real and noticeable problem. But so far from the discussion I've read, it isn't. So yes, ignore it.
[04:52] <J_P> mralphabet: He told that problem is because is / fs...
[04:53] <J_P> mralphabet: so if that raid is not on / fs. In /home for example.. maybe don't have this message (fail) right ?
[04:56] <bkudria> can someone walk me through enableing php5 support with fcgid and apache2? i've already got all the packages installed, and a vhost setup.  how do i enabled php5?
[05:11] <mralphabet> J_P: right
[05:11] <mralphabet> bkudria: try #apache
[05:12] <bkudria> mralphabet: they'll point me to #php, who'll point me to my distro's channel.  :)
[05:14] <mralphabet> hahahaha
[05:14] <mralphabet> well that's no help
[05:14] <mralphabet> I just don't know how many apache experts there are  in here
[05:15] <bkudria> grumble, grumble
[05:15] <ivoks> what's the problem?
[05:15] <bkudria> (I tried asking in #debian, too)
[05:15] <bkudria> ivoks: you're back!
[05:15] <bkudria> ivoks: php doesn't work
[05:15] <ivoks> well, you can't expect everything would get solved pro bono :)
[05:16] <bkudria> ivoks: well,you said it would "just work"
[05:16] <ivoks> well, php really just works
[05:16] <bkudria> except when on exotic setups like mine
[05:16] <ivoks> you want php for apache, right?
[05:16] <bkudria> right
[05:16] <bkudria> but running under fcgid
[05:16] <ivoks> does it realy have to be php5-cgi?
[05:16] <bkudria> or php4-cgi
[05:17] <bkudria> the problemis, we have some clients that need php4, and some that need php5, and we need to be able to support both
[05:17] <ivoks> and it realy have to cgi?
[05:17] <ivoks> or we are talking about normal php web pages
[05:17] <bkudria> unless you know another method to run both php4 and php5?
[05:18] <bkudria> because mod_php4 and mod_php5 cannot coexist
[05:18] <bkudria> so, yes, cgi
[05:18] <bkudria> is that a problem?
[05:18] <mralphabet> can't you run seperate httpd.conf's?
[05:18] <bkudria> mralphabet: then i'd have run seperate apaches, and i don't want to do that
[05:18] <bkudria> plus, fcgid is a more elegant method
[05:19] <ivoks> hm, why are they in conflict? :/
[05:19] <mralphabet> elegant and "working right now" are two different things, I agree, but "working right now" solves your problem while you work on elegant
[05:19] <bkudria> ivoks: so, any clue?
[05:20] <bkudria> mralphabet: well, i have a nother server running freebsd and php4 "working right now" :)
[05:20] <mralphabet> fair enough
[05:20] <bkudria> ivoks: no clue.  they use the same c++ symbol or somethign
[05:20] <bkudria> ivoks: they don't work together
[05:20] <ivoks> bkudria: you get ubuntu with working php5 'right now' just by installing libapache2-mod-php5
[05:20] <ivoks> bkudria: so your argument with freebsd is not fair
[05:20] <ivoks> or correct
[05:21] <bkudria> ivoks: ok, fine.
[05:21] <ivoks> but...
[05:21] <bkudria> ivoks: is that to say running php5 under fcgid with ubuntu is impossible?
[05:21] <ivoks> did you try installing php4-cgi and apache2 php5 module?
[05:21] <bkudria> i'd rather run both under cgi, not just one
[05:21] <bkudria> to simplify configuration
[05:21] <ivoks> bkudria: again, you are trying to have php4 and php5 in the same time
[05:22] <bkudria> ivoks: correct
[05:22] <ivoks> is that working on freebsd?
[05:22] <bkudria> ivoks: no, on freebsd, we just run mod_php4.  anyway, we are transitioning from freebsd, because i like debian/ubuntu better
[05:22] <bkudria> :)
[05:22] <ivoks> hm...
[05:23] <ivoks> http://www.howtoforge.com/apache2_with_php5_and_php4
[05:23] <ivoks> that's, as i said, php4-cgi and php5 module :/
[05:23] <bkudria> huh. i'll take a look at that
[05:23] <bkudria> except i'll run both as cgi
[05:24] <bkudria> to simplify configuration
[05:24] <ivoks> ok, then install both php5-cgi and php4-cgi
[05:24] <bkudria> well, first i'll get php5 working
[05:24] <bkudria> then i'll focus on php4
[05:25] <ivoks> you need:
[05:25] <ivoks> AddHandler php-script .php
[05:26] <bkudria> and then Action php-script /cgi-bin/php5 ?
[05:26] <bkudria> except i'll do php5-script
[05:26] <bkudria> and php4-script
[05:26] <bkudria> and change them per vhost
[05:26] <bkudria> ok, i'll try that, thanks
[05:28] <bkudria> hmm, "Invalid command 'Action', perhaps misspelled or defined by a module not included in the server configuration" .
[05:28] <bkudria> any idea?
[05:30] <ivoks> http://www.howtoforge.com/apache2_suphp_php4_php5_p3
[05:30] <ivoks> there, both cgi
[05:30] <ivoks> + bonus - suexec
[05:30] <ivoks> err... suphp
[05:32] <bkudria> aah, actions module wasn't loaded
[05:32] <bkudria> ivoks: nice, thanks
[05:33] <ivoks> lol
[05:33] <bkudria> mralphabet: i searched that site too,you know!
[05:33] <bkudria> indeed, the googlefu.
[05:36] <ivoks> google is grep of 21st century
[05:36] <bkudria> ivoks: yep, it works. thanks a lot
[05:37] <bkudria> ivoks: i need to do something else before i continue with php4, but i'll comeback and bother you if i run into any trouble, ok?
[05:37] <ivoks> :)
[05:37] <ivoks> php4 isn't supported anymore
[07:30] <bkudria> hmm, does ubuntu include php4?  at all?
[07:39] <malakhi> bkudria: Pretty sure it was removed for feisty
[07:39] <bkudria> hmm, i need it.
[07:39] <bkudria> where would be the best place to get it?
[07:40] <shawarma> bkudria: What do you need it for? I'm just curious..
[07:41] <bkudria> shawarma: we have some client that require php4for some apps
[07:41] <bkudria> shawarma: for example,oscommerce doesn't work with php5
[07:44] <shawarma> bkudria: Yes, it does.
[07:44] <shawarma> :)
[07:44] <bkudria> not last time i checked...
[07:44] <bkudria> anyway, i'dlike to have the option of php4
[07:44] <bkudria> or, the versionwe are running doesn't
[07:44] <bkudria> and i'd like to do one upgrade at a time
[07:44] <bkudria> so, the current requirement is that we need to have php4
[07:46] <bkudria> how can i get, say, php4 packages from edgy?
[07:46] <bkudria> can i just include the repository?
[07:49] <malakhi> bkudria: I don't know if installing the php4 packages from edgy would work or not. If you go that route, I'd try it on a test server first.
[07:49] <malakhi> Why not just used edgy or dapper?
[07:49] <bkudria> malakhi: this *is* a test server
[07:49] <bkudria> malakhi: because i already have feisty,and i don't want to reinstall
[07:50] <malakhi> ok. You can give it a shot. No idea if it will work or not.
[07:52] <bkudria> hmm.  if it doesn't work, i guess i'll have to downgrade
[07:52] <bkudria> eww
[07:53] <bkudria> can i just add the edgy repo?
[07:55] <malakhi> bkudria: You can try it. I don't see why it wouldn't work ok.
[07:56] <malakhi> bkudria: Just be mindful of any depends it might bring with it. (wouldn't want to break current packages)
[07:56] <bkudria> right, i'll watch for that
[07:56] <bkudria> malakhi: although it would be strange if php4 depended on something, but restricted it to "version x.y.z or lower"
[07:57] <malakhi> bkudria: Not so strange as you might think. I run into funny depends like that all the time on my Debian Sid box, but expect it there.
[07:57] <bkudria> ok, i'll watch for it
[07:57] <bkudria> thanks
[08:00] <malakhi> np
[08:04] <bkudria> yay,it works!
[08:04] <bkudria> thanks a lot!
[08:05] <bkudria> ok, i am going out to lunch
[08:05] <malakhi> enjoy
[08:32] <bkudria> mm, i did
[08:32] <bkudria> chicken tacos :)
[08:57] <Panzer_> would setting up server to get time from ntp server be hard?
[08:59] <mralphabet> Panzer_: no
[09:00] <Panzer_> ok cool
[09:01] <bkudria> :)
[09:02] <Panzer_> still new to linux.  and decided to start at command line.  so got a install of dapper on a server
[09:02] <Panzer_> well of course dapper server.
[11:35] <bkudria> i just installed mysql-server anf phpmyadmin. how do i login?
[11:35] <bkudria> to phpmyadmin, i mean
[11:36] <shawarma> What have you tried yet?
[11:37] <bkudria> i haven't tried anything :)
[11:37] <bkudria> hmm, i see also now scripts/setup.php
[11:37] <bkudria> going there shows this warning: 
[11:37] <bkudria> Please create web server writable folder config in phpMyAdmin toplevel directory as described in documentation. Otherwise you will be only able to download or display it. 
[11:38] <bkudria> and /var/www/phpmyadmin/config/config.inc.phpis a symlink to /var/lib/phpmyadmin/config.inc.php
[11:38] <bkudria> which nis owned by www-data
[11:38] <bkudria> so it should be able to work, no?
[11:39] <bkudria> there is a blowfish cookie in that file, what is the default password?
[11:39] <bkudria> or, how should i be making it work?
[11:40] <shawarma> You're much more likely to get good help here if you actually try first and the ask when you run into trouble.
[11:40] <shawarma> phpmyadmin has no password of its own.
[11:40] <shawarma> Your authenticating against mysql.
[11:41] <bkudria> oh, ok
[11:41] <bkudria> how do i set the mysql password?
[11:41] <bkudria> or, do i need to create a user?
[11:41] <shawarma> You can probably just log in as root without a password.
[11:41] <shawarma> I've got to go now.
[11:41] <shawarma> Cheers.
[11:43] <bkudria> ok
[11:43] <bkudria> root without a password doesn't work!
[11:43] <bkudria> shawarma: wait,don't go!
[11:43] <bkudria> help!
[11:45] <bkudria> aah, i got it, nm