/srv/irclogs.ubuntu.com/2014/07/20/#ubuntu-server.txt

liox_plis help me?00:02
PupenoHow do I upgrade an Ubuntu 12.04 to 14.04? do-release-upgrade -d worked on other servers.00:06
PupenoI just upgraded an Ubuntu 12.04 to 14.04 and a new version of postgres was installed and the old one removed, but the cluster not upgraded. Any ideas how to proceed now?00:35
liox_hi01:09
liox_my /webmail broken aft downgrade apache 2.4 for 2.201:10
liox_see problem01:10
liox_http://agenciazig.com.br/webmail/01:10
liox_I think it is something related to. htaccess some webmail module that is calling it is not installed01:11
liox_Please could someone help me?01:15
vonsyd0wcheck your apache logs first01:19
liox_vonsyd0w: ok01:22
liox_vonsyd0w: not error apache log01:25
tarvidWarning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/json.so' - /usr/lib/php5/20090626/json.so: cannot open shared object file: No such file or directory in Unknown on line 001:38
tarvidis there a fix?01:38
liox_how could I make a backup of mailboxes to migrate to another server?01:45
liox_my server use postfix+dovecote+imap01:45
liox_my log /var/logs/suphp02:30
liox_[Sat Jul 19 23:25:41 2014] [warn] File "/var/www/webmail/index.php" is not in document root of Vhost "/var/www/agenciazig.com.br/web"02:30
liox_how could I solve this problem?02:30
tarvidpresume you are running apache. Then stanza in /etc/apache2/sites-availble contains the DocumentRoot02:44
tortibHello everyone.02:49
tortibCan someone help me with an issue I'm having with my Squirrel Mail installation?  I followed https://help.ubuntu.com/community/Squirrelmail and set it up properly (to my limited knowledge).  And when I go to the vhost there is an index being displayed instead of the squirrelmail page.  The index shows no files though...02:50
tortibThe dir it's pointing to is /usr/share/squirrelmail permissions are set to 75502:50
tarvidWhat is the DocumentRoot in /etc/apache2/sites-available?03:03
liox_tortib: see problem: http://agenciazig.com.br/webmail/03:03
tarvidIf the virtual does npot have its own stanza, the root is in default03:03
tarvidso what is the DocumentRoot in default03:04
tarvidMine is DocumentRoot /var/www/03:05
tarvidwebmail should live under that directory03:06
tortibI have the directory set to /usr/share/squirrelmail though03:06
tortib<Directory /usr/share/squirrelmail>03:07
tortiband Options FollowSymLinks03:07
liox_tortib: you see problem error 500? ERROR 500 - Internal Server Error!03:07
tortibno indexing03:07
liox_plis helpme03:07
tortibliox_, I don't know what the problem is.  I'm sorry :(03:07
tarvidWhat does that Alias line look like03:09
tortibmail.domain.com03:10
tortiboh you mean for a dir alias?03:10
tortibI don't have one03:10
tarvidLook at the Alias for /doc03:11
tortibI don't have that03:11
tarvidin /etc/apache2/sites-available/default03:12
tortib:x03:12
tarvidAll the magic happens there. If it isn't there it doesn't happen03:14
tortib000-default?03:14
tortibor are you talking about the squirrelmail one?03:15
tarvid000-default is created in sites-enabled from default in sites-available03:15
tarvidThere is no "squirrel mail" one03:16
tarvidEither chain off the DocumentRoot or add an Alias03:17
tortibi added one!03:17
tortibI said I followed the guide03:17
tortibdon't you read?!03:17
tortibhttps://help.ubuntu.com/community/Squirrelmail03:17
tortiblrwxrwxrwx 1 root root   41 Jul 19 22:23 squirrelmail -> /etc/apache2/sites-available/squirrelmail03:18
tarvidI am not going to read the guide, I have been doint Apache for 20 years and virtual host magic happens in sites-available03:18
tortibI see the problem I think03:19
tarvidthe guide has you copy a file to sites-available03:20
tarvidthen the url is http://localhost/squirrelmail03:21
tarvidit says copy not link then run a2ensite squirrelmail then service apache2 restart (or reload)03:25
tarvidtry it03:29
liox_my log is03:34
liox_ SoftException in Application.cpp:221: File "/var/www/webmail/index.php" is not in document root of Vhost03:34
liox_How I fix it so that this file into / var / www / webmail / index.php03:35
tarvidagain - it says copy not link then run a2ensite squirrelmail then service apache2 restart (or reload)03:35
tortibtarvid, read it again.03:36
tarvidI have03:36
tarvidJust try it it should take 30 seconds03:36
tortibI got it working with a2ensite03:37
tarvidexcellent03:37
tarvidISPConfig looks neat but I have no idea what user space regime it follows03:38
tarvidI have reservations about having users ftp into /var/www03:38
FFForever2Does this look right? (network configuration of a KVM instance) http://i.imgur.com/VchnB8p.png for some reason the routes are not being added03:39
tarvid14.04?03:40
FFForever2Yeah03:40
FFForever2And yes, the gateway is suppose to be outside of the range of the ip.03:40
tarvidpotfull of problems with 3.13.003:41
TJ-FFForever2: "ip route add" not "ip addr add"03:42
FFForever2TJ-, (whoops!) I changed it to ip route add/del. There is still nothing in my routes. On a side note how can I bring up/down eth0? service networking restart no longer appears to work, and ifdown/up says that the device is not configured.03:45
TJ-FFForever2: you've got more typos03:47
liox_ls03:47
TJ-FFForever2: "dns-servers" should be "dns-nameservers" (see "man 8 resolvconf")03:47
liox_I can make a backup of my mailboxes from my vps to take another vps? knows a way to do this?03:48
TJ-FFForever2: also, the "post-down" rules should be "pre-down" and in the opposite order to the "post-up" rules03:49
TJ-FFForever2: and finally...03:52
TJ-FFForever2: /32 subnets should not have a broadcast address03:53
FFForever2TJ-, I'm going off of the OVH documentation03:53
FFForever2I'm guessing it needs the broadcast for how their system works?03:55
TJ-FFForever2: that is scary!03:55
FFForever2Indeed their documentation is scary.. http://help.ovh.co.uk/BridgeClient03:55
TJ-FFForever2: no... you can't broadcast to yourself!03:55
FFForever2Ah.. okay.03:56
FFForever2TJ-, How's http://i.imgur.com/9EN5sfz.png?03:58
TJ-FFForever2: no, still not there yet...  the "post-up ip route add ..." rules shouldn't have a subnet specifier, should be just "192.99.36.254"04:01
TJ-FFForever2: and the same for the "pre-down" rules04:01
FFForever2okay, removed.04:01
TJ-FFForever2: that *should* be correct now04:03
FFForever2how can I restart networking without rebooting? ifdown eth0 says ifdown: interface eth0 not configured04:03
TJ-FFForever2: what does "sudo ifup eth0" say? the same?04:04
FFForever2RTNETLINK answers: File exists\r\n Failed to bring up eth0.04:05
TJ-FFForever2: does "ip route ls" show existing routes that need removing?04:06
FFForever2No.04:07
TJ-FFForever2: what does "ip addr show dev eth0" report?04:08
FFForever2TJ-, http://i.imgur.com/dkt89V2.png04:10
TJ-FFForever2: try "sudo ip addr del 192.99.214.38/32 dev eth0" then "sudo ip link set down dev eth0"04:13
FFForever2TJ-, That took eth0 down, and now it says RTNETLINK answers: Network is unreachable\r\n failed to bring up eth0. There's nothing in `route -n`04:16
FFForever2My previous solution was to use a startup script, disable the 60s delay when booting to manually inject the routes, but that seems like a bad solution to a configuration issue.04:17
TJ-FFForever2: "network unreachable" is because you've set a gateway outside the subnet of the interface04:18
TJ-FFForever2: the host has a bridged interface for the guests to attach to?04:20
rahuldroyhey guys, can someone help me debug a segment fault in apache04:22
FFForever2TJ-, It does not.04:23
FFForever2At least one that's not accessible from the guest. If I manually add the route it'll go through the bridge and work04:23
rahuldroyI have a gdb backtrace but have no idea how to read it properly04:27
TJ-FFForever2: the gateway address is the IP assigned to the host bridge?04:29
FFForever2Yeah.04:29
TJ-FFForever2: remove the "gateway" line... let the post-up rule do that work04:29
FFForever2TJ-, When running the first post-up rule I get the error either "to" is duplicate, or "gw" is a garbage.04:33
TJ-FFForever2: ahhh... that'll be because "ip route" takes different syntax to "route"04:37
TJ-FFForever2: can you show me what is there now?04:37
TJ-FFForever2: "post-up ip route add default via 192.99.36.254 dev eth0" (and correct the post-down rule too)04:38
TJ-FFForever2: "via" rather than "gw"04:38
FFForever2TJ-, Sweet! Networking works flawlessly now :). Thanks a lot for your assistence getting this working.04:44
TJ-FFForever2:  you're welcome :)04:44
brrrIs it possible to configure a local BIND DNS for multiple virtual hosts on the same machine?05:37
rahuldroydoes anyone know where I can find an ETA for PHP5 upgrade for ubuntu 14.04?06:27
blaaaI am contemplating running drupal on ubuntu- server, but I wonder if it's advisable to use the available package to do that, how are security updates handled? https://www.drupal.org/SA-CORE-2014-003 does not seem to have been fixed in ubuntu's package yet.06:28
TJ-blaaa: probably because Drupal haven't got a CVE id yet06:31
blaaaso maybe I should just roll my own package or set up a drupal environment 'in webspace' myself then06:34
blaaalooks like there is a fixed debian package available already06:36
blaaaand also for utopic06:37
andolblaaa: Ubuntu keeps Drupal (as well as any other "web applications") in the Universe repository, and hence there is no promises on security upgrades, but more of a community best offert, which varies heavily from package to package.06:42
andolblaaa: The generic suggestion here is to take a look at how well that package has been maintained/upgraded in the past.06:42
* andol tends to prefer a separate source install for stuff like Drupal, Wordpress, etc.06:43
andolrahuldroy: What PHP5 upgrade are you referring to?06:44
andolbrrr: What do you mean with virtual hosts in a BIND/DNS context?06:44
brrrandol, I would like to resolve local domains to different virtual hosts on an apache web server through a DNS on that same machine06:47
brrrI don't know if that makes any sense06:49
blaaaandol: probably it's best to use a source install for that stuff then06:49
andolbrrr: Could you exemplify?06:49
rahuldroyandol: I have just upgraded to php 5.5.15. The default in 14.04 is 5.5.906:51
rahuldroyThere seems to be a bug with fileinfo extension06:52
brrrI want to use test1.local and test2.local as domains through apache virtual hosts on a machine with IP 192.168.1.10006:53
brrrI would like to use that same machine as a DNS to resolve those domains on my local network06:54
rahuldroybrrr: http://pastie.org/940664506:55
rahuldroybrrr: I use virtual hosts all the time on my machine for development purposes06:55
brrrI've got it working for one domain, but I'm not sure how to expand it to multiple domains06:56
andolbrrr: Any point in setting up a BIND for that, instead of just sticking those hostnames in /etc/hosts? Alt if you want something a bit more centralized use something like dnsmasq as your local DNS resolver, and have it do override for those hostnames.06:56
andolbrrr: DNS has no concept what so ever in regards to virtual hosts, it will only transate host1.local, host2.local to ip addresses.06:57
andolrahuldroy: Most likely is that Ubuntu 14.04 will always provide some kind of 5.5.9 version, but with backported security fixes etc. For example, the current PHP5 version in Ubuntu 14.04 is 5.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.3.06:59
brrrif I set-up each domain with a forward zone file, how many reverse zone files will I need?06:59
andolbrrr: This really something you want to happen on a resolver level, because even if you put up an authortiave server for the .local zone you will still need to point your resolver to that authoritve server for the .local zone.07:01
rahuldroyI am using the PPA https://launchpad.net/~ondrej/+archive/ubuntu/php5?field.series_filter=trusty07:01
andolrahuldroy: Well, then ask the PPA owner :P07:02
rahuldroyandol: nahh this PPA fixed it. The default version from ubuntu has problems :(07:02
andolrahuldroy: Well, don't hold your breah for something newer than 5.5.9 in Ubuntu 14.04. What might happen, assuming the bug is severe enough (and someone reports it, pushes a bit, etc) is that the specific bug fix might be backported.07:04
andolhttps://wiki.ubuntu.com/StableReleaseUpdates07:04
brrrI figured that if I could resolve these domains to the same IP, then apache should take care of the rest07:04
brrrIf I use /etc/hosts, I won't be able to access these domains from other computers on the network right?07:05
andolbrrr: Yepp, that's the limitation of using /etc/hosts, that you'll have to keep that file updated on all the computers, which doesn't scale very welll :)07:06
rahuldroyandol: thanks for your help :)07:09
brrrrahuldroy, andol thanks for the responses07:13
rahuldroybrrr: youu can add it to your dns server and add that there instead of using /etc/hosts07:15
rahuldroybrrr: apache uses the headers07:16
brrryeah, I haven't quite figured out the exact entries to make into BIND07:19
rahuldroyIt should only be the domain name & its associated IP??07:25
=== xtriz is now known as dteske
MavKenhad someone reroute facebook.com to a fake one by changing /etc/hosts in a computer lab running ubuntu machines... guess that is the risk of giving sudo access to a hs student lol07:32
rahuldroyMavKen: lols07:32
brrrrahuldroy: but what about the reverse lookup file?07:33
MavKeni dont thing he did anything with the user/pass he was collecting but it could have turned bad for him07:33
brrrthat's the danger of using public computers in general for personal stuff07:34
rahuldroybrrr: you should be able to do that in your dns server as well07:35
brrrdo I need a reverse lookup file for each domain or just one for that IP address?07:36
rahuldroybrrr: I have done it heaps of times in a windows DC but never in a router level07:36
rahuldroybrrr: not really07:37
rahuldroybrrr: but it is a good practice to do it07:38
brrrso I don't need a reverse lookup file?07:38
rahuldroybrrr: I would set it up but in a lot of cases it is not needed07:40
rahuldroybrrr: it most cases your dns server should do it automatically07:40
brrroh07:44
=== Lcawte|Away is now known as Lcawte
brrrI got it to work, thanks for the help/suggestions08:13
rahuldroybrrr: awesome :)08:13
brrr:)08:14
lordievaderGood morning.09:09
=== Lcawte is now known as Lcawte|Away
=== a1berto_ is now known as a1berto
=== moonligh- is now known as moonlight
liox_hi11:16
liox_could someone help me get my webmail broke into a poorly succedia update apache11:16
liox_my  ispconfig log11:17
liox_[Sun Jul 20 08:12:06 2014] [error] [client 201.15.73.95] SoftException in Application.cpp:350: UID of script "/var/www/webmail/$11:17
liox_[Sun Jul 20 08:12:06 2014] [error] [client 201.15.73.95] Premature end of script headers: index.php11:17
bekksLooks like your script is broken.11:30
liox_bekks, did this and solved chow chown -R web1:client1 /var/www/webmail11:58
liox_bekks, strange that just added a group and the client / var / www / webmail and all other hosts also running back would not the correct group www-data?11:59
bekksSorry, I did not understand that sentence - can you please rephrase it?12:00
liox_bekks, this directory / var / www / webmail should not ertencer the group www-data?12:02
liox_this directory / var / www / webmail should not belong to the group www-data?12:02
bekksThat depends on the configuration of your VPS provider.12:02
Macerwow... what happened here??12:34
Macerzpool: ../../lib/libzfs/libzfs_status.c:188: Assertion `nvlist_lookup_uint64(config, ZPOOL_CONFIG_VERSION, &version) == 0' failed.12:34
MacerAborted (core dumped)12:34
bekksMacer: Thats a libzfs core dump. You could try asking in #zfsonlinux12:35
RoguehorseGood Morning15:26
RoyKafternoon15:26
RoyKor15:26
RoyKgood localtime();15:26
=== jpds_ is now known as jpds
=== jpds is now known as Guest68453
=== Guest68453 is now known as jpds_
tortibHello everyone.  Can someone help me diagnose this issue with snmp?  I installed the snmp-mibs-downloader and now I'm getting these errors when running snmpwalk http://paste.ubuntu.com/7826950/21:05
xpistosmenu-container {22:09
xpistosbackground: #0a97ca; /* Old browsers */22:09
xpistosbackground: -moz-linear-gradient(top,  #0a97ca 0%, #044386 100%); /* FF3.6+ */22:09
xpistosbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0a97ca), color-stop(100%,#044386)); /* Chrome,Safari4+ */22:09
xpistosbackground: -webkit-linear-gradient(top,  #0a97ca 0%,#044386 100%); /* Chrome10+,Safari5.1+ */22:09
xpistosbackground: -o-linear-gradient(top,  #0a97ca 0%,#044386 100%); /* Opera 11.10+ */22:09
xpistosbackground: -ms-linear-gradient(top,  #0a97ca 0%,#044386 100%); /* IE10+ */22:09
xpistosbackground: linear-gradient(to bottom,  #0a97ca 0%,#044386 100%); /* W3C */22:09
xpistosfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0a97ca', endColorstr='#044386',GradientType=0 ); /* IE6-9 */22:09
xpistospadding-bottom:13px;22:09
xpistosclear:left;22:09
xpistospadding-bottom:15px;22:09
xpistosmargin-bottom:15px;22:09
xpistos}join22:09
tortibO.o22:15
=== N0DE` is now known as CripperZ-
=== NomadJim_ is now known as NomadJim
Locke2002My server spontaneously rebooted half an hour ago... I don't see anything weird in syslog right up to when the reboot happened, any ideas of what else to look at?23:52
TJ-Locke2002: UPS?23:55
Locke2002It's a VPS, so I don't know if anything happened hardware-side23:55
Locke2002Suppose I can try emailing my provider23:55
MavKendigitalocean?23:56
Locke2002ChunkHost, I dunno if they resell23:56
MavKenoh ok23:56

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