/srv/irclogs.ubuntu.com/2018/12/29/#ubuntu-server.txt

seekrI am attempting to configure a cloud-based Ubuntu system for web hosting purposes.  I've run into a problem which I think may be related to a bug reported at https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1787886 .  One of the first things I did in configuring the server was to do an upgrade to what I think is the system described in this bug report.  Since I'm unfamiliar with Ubuntu itself, I didn't even know how to determine what LTS13:10
seekrrelease I'm running.  Since I see no resolution posted for this bug, it would seem it has not yet been resolved, though the bug report was filed four months ago.  Can anyone help?13:10
ubottuLaunchpad bug 1787886 in apache2 (Ubuntu) "Upgrade from 16LTS to 18LTS breaks Apache2" [Undecided,New]13:10
ikoniaseekr: what's your actual problem13:13
seekrikonia: I'm trying to restore a Joomla!-based site.13:13
seekrI've installed Apache and MySQL and PHP, all of which are required.13:14
ikoniaright, what's the actual problem13:14
ikoniayeah, I get how Joomla works13:14
ikoniawhat's your actual problem13:14
seekrThe problem is that there's a failure in executing index.php a few lines from the end of that file.13:14
ikoniaok, what failure13:15
ikoniawhat problem13:15
seekrI put print statements in the index.php file to determine where the failure occurs.13:15
seekrIt's the one described in the bug report.13:15
ikoniaI'm not interested in the bug report13:15
ikoniaI'm interested in the information you can give me13:15
ikoniawhat's teh actual problem13:15
seekrIt appears to be failing on the line:   $app = JFactory::getApplication('site');13:15
seekrThat's the actual problem at this point.13:16
ikoniawhat does the apache error logs show13:16
seekrnothing useful - I'll take another look...13:16
ikoniaand when you said you upgraded to 18.04 did you move the site to an 18.04 host, or actually upgrade in situ an 16.04 host13:16
seekrin situ, afaik13:17
ikoniawhat do you mean as far as you know13:17
ikoniayou said "the first thing I did was upgrade" you must know how you did it13:17
seekrI don't even know what it means to move the site to an 18.04 host.13:17
ikoniawhy did you upgrade to 18.04 then ?13:17
ikoniaif you don't know how to upgrade / how to use the upgrade process, why did you upgrade and not just continue on 16.0413:17
seekrYes, I followed an instruction that was displayed when I logged in as root.13:17
seekrI'll see if I can find it.13:18
ikoniathere is an offer to upgrade, not a mandate13:18
ikoniaeither way, what does the apache logs show when you try to parse the index.php13:18
seekrwill look13:19
seekrikonia: https://termbin.com/g5t013:21
ikoniaseekr: what log is that ?13:22
seekrikonia: error.log13:22
ikoniaseekr: what does the access log show13:22
ikoniais this the default site or is it a named site13:22
seekrwell, it does have a domain pointing to it, but I'm accessing it via IP address13:23
seekrIt's the site defined by what's in /var/www/html13:23
ikoniaare you using the default site or a name based host13:24
seekraccess log shows nothing interesting - just GETs13:24
seekrI don't quite know what you mean by "default site"13:24
ikoniathere is a default config for apache or there is a config you can use to build/define a name based host13:25
ikoniawhich are you doing, using the default or defining a name based host13:25
seekrI haven't touched the Apache config file, except to move the PHP thing closer to the front of the line that indicates what file name suffices will be recognised and processed13:26
ikoniawhich apache file have you touched13:26
ikoniawhat is the name of the file that defines the site you are looking at13:26
seekr/etc/apache2/apache2.conf, I think it's called.13:27
ikoniayou think ?13:27
ikoniaplease be sure13:27
seekryes, that's it13:27
ikoniaok - so are you view the correct access/error logs defined in that file ?13:28
seekrno - wait - that's not the file - hmmm13:28
seekrikonia: I changed /etc/apache2/mods-available/dir.conf13:30
ikoniawhy ?13:30
tomreynchances are it's a php (5->7) upgrade issues, missing modules or general webapp incompatibility / need for webapp upgrade.13:30
ikoniatomreyn: yup, php-curl is the likley candidate13:30
seekrThe line I changed now reads:  DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm13:30
ikoniabut based on the total lack of solid information I want to be sure before suggesting package changes13:31
ikoniaseekr: no no, "why" did you change it13:31
tomreynikonia: yes, details are needed.13:31
seekrI changed it because it appeared that the index.php file was not being recognised and processed - but I could be wrong - I'm a bit fuzzy now on the order of events - but I'm sure that's not where the problem lies13:31
seekrI just told you why I changed it.13:32
ikoniaseekr: if you're sure that's not where the problem lies, why did you change it13:32
ikoniayou didn't tell me why you changed it13:32
seekrlook - it's easy to change it back to what it was, if only to prove to you that that's not the cause of the problem13:32
ikoniaseekr: I didn't say it was the cause of the problem13:32
seekrI know you didn't - but this thing is a red herring13:33
ikoniaI'm just trying to understand what you've done and why as you don't seem very clear on a lot of things13:33
seekrI'm clear that the problem I'm experiencing is the one cited in the bug report!13:33
ikoniaseekr: please don't state that, as it's clear you have no idea what you're doing or you wouldn't have blindly changed a file13:33
ikoniaseekr: right - have you done what the bug report says then ?13:33
ikoniaif it's that clear13:33
seekrI don't need to deal with this sort of attitude - I'll come back later when things may be different.  Thanks anyway.13:33
seekrThe bug report only talks about adding some modules, and yes, I did follow that advice.13:34
seekrPHP 7.2 modules13:35
ikoniaseekr: so what modules have you added13:35
ikoniaand how did you add the13:35
ikoniawhich ones13:35
ikoniaspecifically which modules by which packages13:35
seekrIt really doesn't much matter, since adding those modules made no difference - didn't make the problem either better or worse.13:35
ikoniait really does matter13:35
ikoniahence why I'm asking13:35
seekrIt may matter to you, since you seem to be trying to make the point that I'm completely confused.13:36
ikoniano13:36
ikoniait matters to fixing the problem13:36
ikoniahence why I'm asking13:36
seekrI'm not finding your questioning to be at all helpful.13:36
ikoniabecause you don't understand the problem13:36
ikoniawhich is fine13:36
ikoniahowever, if you give us the info, I'm sure it can be fixed13:36
seekrMy problem, as I originally stated, is what's described in the bug report.13:36
ikoniawhich modules did you add via which packages13:36
seekrI want to know how to find out whether the bug has been fixed, and what I need to do to take advantage of that fix.13:36
ikoniaseekr: right, they are the same symptoms, so lets see what the problem is13:37
ikoniawhich packages have you added13:37
ikoniaseekr: we can work that out now13:37
ikoniait doesn't look like an actual "bug"13:37
ikonia(if it's the same as that bug report)13:37
seekrClearly you are not willing to pursue that line of inquiry, so I don't find your questioning to be helpful.13:37
ikoniait looks like a difference in how the packages are broken up in php713:37
ikoniaseekr: I am pursuing it exactly13:37
seekrI need to know why the statement I showed you, which is the same one shown in the bug report, is failing.13:38
ikoniaright, and I'm trying to explain that to you13:38
ikoniabut I need to know what packages you have so I can understand which ones may be missing and required by your web app13:38
seekrIf you can give me a way to list the installed PHP modules, please do so.13:38
ikoniaseekr: you said you manaully installed some - those are the key ones13:39
ikoniatell me which ones you installed and how13:39
ikonia(or the key ones to understanding the delta in that bug report I should say)13:39
seekrIt's not relevant to the problem solution - but if only to satisfy you, I'll find the statement I used.13:39
ikoniait is relevant13:39
ikoniait's really important to understand what packages you've added in and how you did it13:40
ikoniaas that bug report is showing that the upgrade process may miss packages due to the way the packges are broke down different in later versions of php13:40
ikoniaseekr: it's clear you're going to fight giving the information so I'll leave you to it13:40
seekrikonia: apt-get install -y libapache2-mod-php7.2 php7.2-cli php7.2-common php7.2-mbstring php7.2-gd php7.2-intl php7.2-xml php7.2-mysql php7.2-zip13:40
seekrThat's fine, ikonia - I don't see the logic in your inquiry.13:41
ikoniano problem then13:41
seekrThe problem was not caused by my installation of modules.13:41
ikoniano, if you have the same problem as that bug report, it's most likley cause by missing modules13:41
ikoniathat are not installed as part of the 16.04 -> 18.04 upgrade process13:41
ikonia(if it's the same as that bug report - if it's not it will need to be worked through)13:42
seekrwhich is why I asked you how to display what PHP modules are installed - perhaps you don't know13:42
ikoniaseekr: I do know, but what mattered what you manually installed and how as that is the "delta"13:42
seekrdelta between what and what?13:42
ikoniaand that will tell us what maybe missing as part of the upgrade or if it's the same symptom, but a different bug13:42
ikoniaseekr: between would should be installed as part of the upgrade and what changes due to package name/version changes13:43
seekrWe don't have enough info to be able to tell what modules are required - we have only that bug report.13:43
seekrI need to find some later report that describes the real cause of the problem and how to solve it.13:44
ikoniaseekr: it can be worked out13:45
seekrhow?13:45
ikoniait's not hard, jamoola is pretty basic13:45
ikoniaby understanding the delta between the old working php packages and the new ones13:45
seekrIt's not about Joomla! per se - it's just that that instruction is failing.13:45
ikoniahence why I was asking for the info I was asking for13:46
ikoniaseekr: it's about php - and joomla is your example in this case13:46
ikoniathe cause will be different depending on the app and what the app needs13:46
ikoniaso it sort of does matter what your usecase is (joomla in this case)13:46
seekrI think I'll be better off just searching for later reports, because I think this sort of debugging exceeds the knowledge of either of us.13:46
ikoniaas different web apps will have different dependencies13:47
ikoniaand those packages will differ in name/version in different php versions13:47
ikoniaseekr: doesn't exceed my knowledge13:47
ikoniabut nice try at a sly insult though13:47
seekrWell, I'm still looking for something genuinely useful from you.13:47
ikoniaall of it was useful13:47
seekrSo far, I've only heard criticism and slurs.13:47
ikoniayou've seen requests for debug information so that I can get to the answer as quick as possible for you13:48
ikoniabut even if what you said where true, it doesn't mean I don't know how to resolve it13:48
seekrThe thing is that neither of us has a way to know what might be missing that's causing that instruction to fail.13:48
ikoniaI'm pretty sure I can figure it out quickly13:49
ikoniahence why I was asking for some information13:49
ikoniait's not hard with php - it's just going to be package version/name changes most likley13:49
ikoniathe other thing you'll need to explain to others is if you are using 18.10 or 18.04 as php 7.2 is default in 18.1013:49
ikoniaand you said you where using 7.213:50
ikonianot 7.213:50
ikoniaI'm not %100 sure without looking if that's true of 18.04 which I think was 713:50
ikonia(but I'd need to check that)13:50
ikonia(again this matters due to package names)13:50
seekrbut the information you're asking for doesn't bear on the problem - I installed a few PHP modules, but the fact of their being there didn't help.  The task is to figure out what module(s) might be needed -- IF that's the cause of the problem, which I doubt either of us has any way to say is what's causing the failure.13:50
ikoniaseekr: it does matter to the problem13:50
ikoniaif you assume you don't know how to fix it, and assume I do, I'm telling you it does matter which modules are installed and which ones are missing by default13:51
seekrWell, tell me what you think you need.13:51
ikoniarather than argue you it, why not just provide the information to the person trying to help13:51
ikoniaeven if you don't understand it, it's a good way to learn13:51
ikonia(it's fine to not understand it by the way)13:51
seekrIt may well matter, but I don't see how we can figure out what's wrong with respect to missing or incorrect version modules/packages or whatever they're called.13:52
ikoniaI've told you it's pretty straight forward13:52
ikoniayou just need to work the packages through13:52
seekrI admit my lack of understanding, but I'm not hearing any useful questions from you - only meta-chat criticising my logic.13:52
ikoniaagain, if you assume you don't know, and I do, rather than constantly saying "you can't work it out" why don't you work with someone to actually work it out who is saying they can13:53
ikoniaseekr: then read back all the lines I've typed, I've explained multiple times why I'm asking for what I'm asking for13:53
seekrGive me what you think to be a relevant question!13:53
ikoniaunderstanding the version of ubuntu, understanding what packges you added and how, knowing the php app (to work out deps)13:53
ikoniaunderstanding if it was a clean install or an upgrade13:54
seekryour question??13:54
ikoniathose are all pretty key questions, you can then work out the package deltas13:54
ikoniaI've already asked them13:54
seekrI need a command to use to determine version, etc.13:54
ikoniayou don't13:54
ikoniawell, hang on13:54
ikoniaversions of what ?13:54
seekrI'm not a regular Ubuntu user (I use Linux Mint, which is based on Ubuntu, as I'm sure you know).13:54
ikoniaactually, I apologies, I'm taking up your time13:55
ikoniaI'll leave you to it, but that maybe info that helps whomever helps you13:55
ikoniaand it may help you get to the chase quicker13:55
seekrWell, you are as long as you're give me nothing useful, including useful questions.13:55
ikoniaplease try not to argue that it doesn't matter with those trying to help - they are normally asking for good reasons13:55
ikoniaseekr: I've given you multiple useful questions to debug it13:55
ikoniaso that you can get a quick and fatual resoution13:55
seekrI'm prepared to accept that possibility, but I need a better demonstration than what you've given me thus far.13:56
ikoniaI don't have to demonstrate anything to you13:56
ikoniaI know what I'm doing13:56
ikoniaI've offered help13:56
ikoniayou don't want it (which is fine)13:56
seekrYou've given me nothing useful, I'm afraid.  :(13:56
ikoniaI'm pretty sure I have13:56
seekrWell, I don't know what it is.13:56
ikoniabut if you can't see the importance of that information, that's fine,13:57
seekrYou're not talking about the actual problem, only trying to convince me of something, and I'm not even sure what it is at this point.  Thanks anyway.13:57
ikoniaI'm talking about the exact problem13:58
ikoniait can't fully parse the index.php most likely (according to the bug report you posted) due to a missing package13:58
ikoniahence why I asked for the error log to see if we could get there quicker/easier13:58
ikoniaand a quick search of ubuntu packages (which I did while we where talking) shows multiple package name differences between php versions13:58
ikoniawhich backs up the basic principal of the bug report13:58
ikoniaso then it's just the question of which packages you need13:59
ikonia(as each use case will be different due to different dependencies)13:59
seekrIt's "principle," actually, and as I said, there's nothing interesting in the Apache log file.13:59
ikoniahence why that bug isn't really a "bug" it's just a difference between PHP versions13:59
ikoniaseekr: nope, fine there is nothing interesting in the logs (hence why I asked you to check it was the right file)14:00
ikoniait's a hope that you get a clue to short cut debugging14:00
ikoniadon't always get it from the error log (although I'm very surprised you got nothing - I'd check for sure if that is the right log file)14:00
seekrI looked in both error.log and access.log - which are the only ones being written to, based on their timestamps.14:00
ikoniathat's fine, you don't always get the answer from them, it's just a good tool to check and cut to the chase quicker14:01
seekr/var/log/apache2/error.log14:01
ikoniasometimes you'll see something like "could not find libphpbc.so" so you know straight away it's the bc-math package14:01
ikoniawhich you can them map to your php version14:01
ikonia(as an example)14:01
seekryes, fine, but that's not the situation here!14:01
ikoniano, you don't get the output, which is why you need to work out the packages14:02
ikoniathe log file is just a useful short cut14:02
ikoniaagain "useful information" and "useful questions"14:02
ikoniaI'll leave you to it, sorry, didn't mean to harp on14:02
seekrwhatever14:03
ikonia?14:03
ikonialook - drop the attitude14:03
ikoniaif you want to use this channel, this attitude can't continue14:03
ikonia(for the record 18.04 is php 7.2 too - so you're ok on that front)14:05
mybalzitchis the docker snap considered production ready? I'd imagine so given how hard canonical is pushing snap19:46
ikoniamybalzitch: I certainly am not confident with it20:04

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