/srv/irclogs.ubuntu.com/2007/09/03/#ubuntu-server.txt

=== nictuku [n=yves@200-140-164-227.bsace706.dsl.brasiltelecom.net.br] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== maestrojed [n=outliers@75-164-136-142.ptld.qwest.net] has joined #ubuntu-server
=== pschulz01 [n=pschulz0@ubuntu/member/pschulz01] has joined #ubuntu-server
maestrojed I need to turn my Ubuntu 7.04 Desktop installation into a LAMP server.  But I need to use older versions of Apache, PHP, MySQL, etc.  Can anyone help me with this?  Where can I get older versions of php for linux?12:47
Pumpernickelarchive.ubuntu.com12:49
maestrojedPumpernickel: Thank you, I have to admit I dont really know what I am doing.  I went there and see legacy versions of ubuntu but were should I go to get the legacy php install12:51
Pumpernickelarchive.ubuntu.com/ubuntu/pool12:52
maestrojedI am building a linux webserver to be a test server.  My production server is running php 4.3.11.  I only see files for php 4.4.2.  Should I try to find the exact same version of PHP? or do I assume that those point updates are just security fixes and would not make a difference as far as how the php parses?12:59
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
ScottKmaestrojed: What distribution does your production server run?01:26
maestrojedScottK: Of Linux?01:29
maestrojedScottK: Linux 2.4.20-021stab028.19.777-smp01:30
ScottKRight, but what distro?01:31
ScottKUnless you build from the same distribution/version you will not be able to be sure you get the same behavior on your test server.01:32
ScottKThat's all pretty extraordinarily ancient.01:32
ScottKI would not assume that php 4.3/4.4 would behave the same, but is not a PHP expert.01:33
maestrojedHumm Cool.  I wanted to go with Ubuntu because of the GUI.  As you can tell I only bearly know what I am doing01:34
maestrojed:)01:34
ScottKOK.01:35
maestrojedI am trying to figure out what distribution but I am not sure how to figure that out01:35
ScottKTry less /etc/lsb-release01:36
maestrojedI get no such file or directory01:43
maestrojedI looked through the etc folder but I dont see anything similar01:43
ajmitchcheck /etc/redhat-release01:46
ScottKor /etc/fedora-release01:49
ScottKGoogle hints it's Red Hat or a derivative.01:49
maestrojedyeah there is redhat-release02:10
ScottKWhat's it say?02:11
=== raky [n=kent@24-197-132-105.dhcp.spbg.sc.charter.com] has joined #ubuntu-server
maestrojedI am getting a permissions denied but I am in as root02:17
maestrojedTrying to figure it out02:17
ScottKOdd.02:18
maestrojedCentOS release 3.8 (Final)02:18
maestrojeddoes that sound right02:18
ScottKOK.  Well if what you are after is something in a test server to emulate closely your production environment, you should probably be looking at something from CentOS.02:19
ScottKYes.02:19
ScottKBut, that is ancient and so you might consider something newer for your production server too perhaps.02:19
ScottKI've got to run, maybe someone else can help you further.02:19
maestrojedyeah,  It is a managed server so I will talk to them02:19
maestrojedthanks for your help02:19
ScottKNo problem, but just to give you an idea, PHP 4 has been completely removed from the current Ubuntu version.02:20
ScottKThat's how old that is.02:20
maestrojedyeah I know.  I have a php5 server too but I have some old big CMS sites that are not ready for php5 so I keep this one around too02:23
Yahooadamcan anyone help me with my MySQL problem, i posted on the forums, but its kinda ground to a halt (http://ubuntuforums.org/showthread.php?t=539909)02:33
Yahooadambasically, mysql doesnt start when my server boots, any ideas ?02:33
ScottKYahooadam: Does /var/run/mysql exist?02:38
Yahooadam./var/run/mysqld does02:39
ScottKOK.02:40
ScottKSo much for my idea on that one.02:40
Yahooadam:(02:49
Yahooadamoh well time to sleep, gnite, thx anyway :)02:57
Yahooadamif anyone has any ideas and reads this later, please do post on that thread02:57
=== Yahooadam [n=Adam@host81-157-3-200.range81-157.btcentralplus.com] has left #ubuntu-server []
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== pschulz01 [n=pschulz0@ubuntu/member/pschulz01] has joined #ubuntu-server
=== ICU [n=me@sechzig.dd.ewetel.de] has joined #ubuntu-server
=== jbrouhard [n=jbrouhar@24.121.169.166] has joined #ubuntu-server
=== Pyretic [n=typing@timor.zolder.org] has joined #ubuntu-server
=== rvfh [n=rvfh@fe2adsl-2.wyplay.net] has joined #ubuntu-server
=== asisak [n=conp@ubuntu/member/coNP] has joined #ubuntu-server
=== WaVeR [n=Cobra@217-196-176-5.static.worldsoft-isp.net] has joined #Ubuntu-Server
krautmoin09:17
=== pschulz01_ [n=pschulz0@eth3010.sa.adsl.internode.on.net] has joined #ubuntu-server
=== YourMomsHero [n=cirish@ip24-251-191-203.ph.ph.cox.net] has joined #ubuntu-server
=== coNP [n=conp@ubuntu/member/coNP] has joined #ubuntu-server
=== tck [n=tck@212.2.166.64] has joined #ubuntu-server
=== ivoks [n=ivoks@36-150.dsl.iskon.hr] has joined #ubuntu-server
=== dexem [n=dani@222.Red-88-23-207.staticIP.rima-tde.net] has joined #ubuntu-server
=== mdz [i=mdz@nat/canonical/x-79f915f8758c624a] has joined #ubuntu-server
=== zul [n=chuck@ubuntu/member/zul] has joined #ubuntu-server
=== pschulz01 [n=pschulz0@ubuntu/member/pschulz01] has joined #ubuntu-server
=== jdstrand [n=james@mail.strandboge.com] has joined #ubuntu-server
=== mathiaz [n=mathiaz@dsl-207-112-50-64.tor.primus.ca] has joined #ubuntu-server
=== fernando_ [n=fernando@189.0.215.152] has joined #ubuntu-server
=== ivoks [n=ivoks@36-150.dsl.iskon.hr] has joined #ubuntu-server
=== fernando_ [n=fernando@200.220.231.177] has joined #ubuntu-server
=== spiekey [n=dasdas@91.89.147.172] has joined #ubuntu-server
spiekeyhi03:59
spiekeyi have set up a ubuntu with smbldap-tools. I can log in with ssh and so on. It all works. Now i would like to know why ;)04:00
spiekeywhen i log in via ssh i tell it to use common-auth where i have my pam_ldap.so written down.04:02
spiekeythen i GUESS it will check out /etc/libnss-ldap.conf, /etc/pam_ldap.secret /etc/pam_ldap.conf04:03
spiekeyso it knows where to auth.04:03
spiekeycorrect so far?04:04
sorenAlmost :)04:07
spiekeyalmost?04:08
sorenI don't think it uses libnss-ldap.conf for the authentication, but only immediately after.04:08
sorenNot that it matters, really.04:08
spiekeyok.04:09
sorenDuring authentication it checks if the username and password corresponds. It doesn't need nss for that.04:09
spiekeynss is just for the enviorment stuff like homedir?04:09
soren...but as soon as it actually does a setuid and all that, it needs nss.04:09
sorenspiekey: At any point where you need to do uid <-> username translation, you need nss.04:10
spiekeyso pam_ldap is for auth only.04:10
spiekeyhow does it know where to find it in the ldap database?04:10
sorenspiekey: And that's at the final stages of logging in (i.e. after verifying your credentials, but before running your shell and such)04:10
sorenspiekey: Find what?04:10
spiekeyto see if password and username matches04:11
spiekey(this still looks like magic to me904:11
soren:)04:11
sorenIt's quite simple, actually.04:11
sorenThe LDAP server is set up to let the user authenticate. So pam proxies the login request to the LDAP server. If that succeeds, pam succeeds.04:12
spiekeyoh, so pam just asks ldap if the auth is okay? And ldap does the rest with its schema?04:13
spiekeywell, ldap looks it up by using the schema it has in its config04:13
sorenPam receives a username.. it passes the username to each of the configured modules and asks them what they feel like doing with it. Most of them will ask for a password. In the case of ldap, it takes the username, inserts it into a scheme like cn=theusername,ou=People,dc=foo,dc=bar and tries to authenticate with that dn and the given password.04:13
sorenspiekey: Yes.04:14
sorenspiekey: That's the usual arrangement, anyway.04:14
sorenspiekey: (In my experience, that is)04:14
sorenThere are other ways to do it, though.04:14
spiekeywell. I guess this applies for the pam_ldap module :)04:15
sorenYou can also let pam do the authentication directly. You tell pam how to extract the userPassword attribute for the user, and then verifies it. This is useful if you don't want the users to be able to access the ldap server directly at all.04:15
spiekeyeasy enought though04:15
spiekeysoren: oh yes! i did that once with pam_mysql ;)04:15
soren...but usually you want to use ldap for other interesting stuff, too.04:16
sorenHang on. Phone call...04:16
spiekeynp, thanks!04:16
sorenOk, I'm back.04:18
sorenUm... Did that clear everyhithin up?04:19
spiekeyin that case, yes! :)04:19
sorenAlright. Great.04:19
spiekeyI have got another question though: Where does samba auth against? Does that work via pam_ldap, too? Since i have a "passdb backend = ldapsam:ldap://127.0.0.1/" line in here i am not quite sure.04:20
sorenspiekey: No, samba usually can't use pam.04:20
spiekeyoh, okay.04:21
sorenspiekey: You see, when you're using ssh, the password is sent over the ssh channel, so that the server can choose what to do with it (typically something about calculating an md5 and comparing it to something).04:21
soren...but when you're using samba, it sends a hash of the password, rather then the password itself.04:21
spiekeythat makes sense04:22
sorenThis means that the server needs to be able to compare that hash with something, and that's not how pam works.04:22
sorenThis is why samba doesn't just use the system's passwd file for authentication.04:23
sorenBack in the day when you could still use unencrypted passwords, you could do that, but that was a looong time ago :)04:24
spiekeySamba gets all the samba-Specific information from ldap. Like: Ihave user Foo with passwd far. Auth OK? If yes it asks for the homedir, passwordexpiredate, etc, too?04:25
=== kshah [n=kunalash@ool-44c0ac9c.dyn.optonline.net] has joined #ubuntu-server
kshahI want to set up a Wake on LAN for my server, should I install etherwake?04:25
Pyretici think etherwake might be the client04:26
Pyreticyou need ethtool though04:26
kshahoye04:26
kshahk04:26
Pyretici had it working on my non-ubuntu machine a while ago04:26
kshahthank you, testing time04:29
sorenspiekey: Sounds right.04:30
spiekeysoren: wonderful!04:31
spiekeysoren: i am about to draw/write a chart about the whole system thing. Would you mind reading/correcting it when its finished?04:31
sorenspiekey: I'll try.04:31
sorenspiekey: Is it urgent?04:32
spiekeyits basically what i asked you just with drawn pictures :)04:32
spiekeysoren: no, not at all04:32
sorenspiekey: Alright. Then no problem :)04:32
spiekeysoren: are you here regularry?04:32
sorenspiekey: All day, every day :)04:32
spiekey:)) How come?04:33
sorenspiekey: Well, I don't log off IRC when I'm not around, and I'm around at least during business hours (central european ones) and a lot of my spare time, too.04:36
spiekeyok, cool!04:37
=== dexem [n=dani@14.Red-88-26-177.staticIP.rima-tde.net] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== nandemonai [n=nandemon@ppp121-45-66-168.lns10.adl6.internode.on.net] has joined #ubuntu-server
=== ivoks [n=ivoks@36-150.dsl.iskon.hr] has joined #ubuntu-server
=== boggle [n=spindler@conf.dow.cam.ac.uk] has joined #ubuntu-server
=== boggle [n=spindler@conf.dow.cam.ac.uk] has joined #ubuntu-server
=== boggle [n=spindler@conf.dow.cam.ac.uk] has joined #ubuntu-server
=== leonel [n=leonel@189.155.150.218] has joined #ubuntu-server
kshahwhat client program are you using (win) to send Wake on LAN requests?05:42
=== Yahooadam [n=Adam@host81-157-3-200.range81-157.btcentralplus.com] has joined #ubuntu-server
=== Drazha is now known as Drazha[away]
=== Nicke [n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se] has joined #ubuntu-server
=== boggle [n=spindler@conf.dow.cam.ac.uk] has joined #ubuntu-server
=== WaVeR [n=Cobra@80-218-162-121.dclient.hispeed.ch] has joined #Ubuntu-Server
Pyreticsay, how would one enable lvm to enable on startup ?07:40
=== osmosis [n=steven@cpe-76-80-127-252.socal.res.rr.com] has joined #ubuntu-server
leonelPyretic: install with the alternate cd07:56
Pyreticoh, there's no way to enable it lateron ?07:57
Pyreticit just doesn't seem to do a "vgchange -a y data"07:58
=== ubotu [n=ubotu@ubuntu/bot/ubotu] has joined #ubuntu-server
=== ivoks [n=ivoks@36-150.dsl.iskon.hr] has joined #ubuntu-server
=== maestrojed [n=outliers@75-164-136-142.ptld.qwest.net] has joined #ubuntu-server
maestrojedI am trying to install an older version of MySQL on Ubuntu.  I do not see a bulld in archives.ubuntu.com/pool.  Does this me that there are not DEB(s) for MySQL?09:21
=== Pyretic [n=typing@timor.zolder.org] has left #ubuntu-server []
=== Drazha781 [n=drazha@89.100.195.195] has joined #ubuntu-server
=== Drazha781 is now known as Drazha
=== ivoks [n=ivoks@36-150.dsl.iskon.hr] has joined #ubuntu-server
=== lbm [n=lbm@0x555373ab.adsl.cybercity.dk] has joined #ubuntu-server
osmosishow come I dont see a amazon EC2 image of ubuntu ?09:41
mathiazmaestrojed: you can find mysql deb in the archives.09:45
maestrojedmathiaz: thanks, but all I see in the archives is the list below.  Am I looking in the wrong place (pool/universe/m/)09:48
maestrojedmysql++/09:48
maestrojedmysql-admin/09:48
maestrojedmysql-dfsg-4.1/09:48
maestrojedmysql-dfsg/09:48
maestrojedmysql-navigator/09:48
maestrojedmysql-ocaml/09:48
maestrojedmysql-query-browser/09:48
maestrojedmysql-ruby/09:48
maestrojedmysqlcc/09:48
maestrojedmysqltcl/09:48
mathiazmaestrojed: mysql-dfsg-4.1 is the mysql-server09:50
maestrojedmathiaz: Great! Thank you.09:51
=== ivoks_ [n=ivoks@21-31.dsl.iskon.hr] has joined #ubuntu-server
=== konam [n=konam@201.229.136.217] has joined #ubuntu-server
konamhi10:03
konamhow do i know the interface that my server is using? there's a command for that. I have ubuntu server in a virtualbox vm10:04
konamis just that i set the internet connection in that virtual machine and shut it down. when i turn it on again the internet connection was gone10:04
sommer_konam: have you tried ifconfig?10:11
sommer_usually it's eth010:11
konamsommer_ thanks10:28
osmosisanyone using EC2 ?10:46
=== lousygarua [n=lousygar@CBL217-132-224-125.bb.netvision.net.il] has joined #ubuntu-server
=== maestrojed [n=outliers@75-164-136-142.ptld.qwest.net] has joined #ubuntu-server
maestrojedI am trying to install an older version of MySQL server.  I downloaded mysql-server-4.1_4.1.15-1ubuntu5_i386.deb it said it needed libmysqlclient14_4.1.15-1ubuntu5_i386.deb so I downloaded and installed it first.  Now on package install I get and error.  Error:Failed to satisfy all dependencies (broken cache)11:08
maestrojedit then says to run sudo apt -get install -f   to fix it but that returns sudo: apt: command not found11:08
Anarchmaestrojed: s/apt -get/apt-get/11:09
maestrojedAnarch: I run that in terminal?11:10
Anarchmaestrojed: But this may not solve all your problems.  When I can't get the package manager to Just Work, I cope by building from source.11:10
Anarchmaestrojed: Yes, apt-get in terminal.11:10
mathiazmaestrojed: on which version of ubuntu are you trying to install 4.1 ?11:12
maestrojedDesktop 711:12
mathiazmaestrojed: well. It won't work as mysql-server-4.1_4.1.15-1ubuntu5_i386.deb is from dapper (6.06)11:12
maestrojeddoh11:12
maestrojedmathiaz: is there a build that will?11:13
mathiazmaestrojed: this is why apt and dpkg are not happy.11:13
mathiazmaestrojed: not for feisty.11:13
mathiazmaestrojed: mysql-server-4.1 is no longer available for feisty11:13
mathiazmaestrojed: it's replaced with mysql-server-5.0.11:14
maestrojedso If I am tying to  build it just like my production server.  Is there a solution?11:14
maestrojedbuild from the binaries?11:14
=== pschulz01 [n=pschulz0@ubuntu/member/pschulz01] has joined #ubuntu-server
mathiazmaestrojed: you could try to build from the dapper source on you feisty box.. But I don't know if that would actually work.11:15
=== dexem [n=dani@212.97.172.119] has joined #ubuntu-server
=== jbrouhard [n=jbrouhar@24.121.169.166] has joined #ubuntu-server
jbrouhardHowdy all11:56
jbrouhardAnyone here consider a SOHO version of Ubuntu Server ?11:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!