[21:20] <ripdisk> Hello everybody! I'm having a very odd problem. I host a particular game server, but the windows box in my rack died, and since its a tiny daemon i figured i'd just run i in a virtualbox win7 setup
[21:21] <ripdisk> i had a very hard ime getting it to work.... but now, finall, my game client can connect.  BUT UH-OH...
[21:21] <ripdisk> now, suddenly out of nowhere.... apache is completely broken
[21:21] <ripdisk> i cannot access ANY webfiles in /var/www/html/
[21:21] <ripdisk> not even when i do it from the server itself using 127.0.0.1
[21:22] <ripdisk> i've restarted apache... made sure port 80 is specified
[21:22] <wxl> this all sounds like maybe a virtualbox question?
[21:22] <ripdisk> that
[21:22] <wxl>  /join #virtualbox
[21:22] <ripdisk> that's incorrect, sir
[21:22] <ripdisk> my virtualbox is working completely fine
[21:23] <ripdisk> i'm not having any problems with that, i just typed that.
[21:23] <ripdisk> i typed 'it took a long time, but now finally my game client can connect'
[21:23] <wxl> i'm having a little trouble understanding what server/client is running on what host/guest
[21:23] <wxl> that may explain things
[21:23] <ripdisk> ok, that has absolutely nothing to do with my problem.
[21:24] <ripdisk> here, lets pretend i never mentioned a virtual computer
[21:24] <ripdisk> now. apache broke for no reason.
[21:24] <wxl> so yuor problem is apache running on a lubuntu machine?
[21:24] <ripdisk> yes.
[21:24] <wxl> well, i doubt that has anything to do with lubuntu specifically. again, it's probably just as applicable to any *buntu flavour
[21:24] <wxl> still, i'd start by looking at permissions
[21:25] <ripdisk> i'm on a PC wiht lubuntu installed as the OS I boot into. I set up a virtualbox and installed windows 7 in there, so i could run my game server without having to get rid of my linux
[21:25] <ripdisk> ok, heres some more information
[21:25] <ripdisk> i was working perfectly for a long time, and the ONLY Other thing aside from settintg up virtual box was an upgrade
[21:25] <ripdisk> it was working*
[21:25] <wxl> what got upgraded?
[21:25] <ripdisk> and now.... ihave virtualbox completely shut down.
[21:26] <wxl> and.. did you check the permissions?
[21:26] <ripdisk> virtualbox is no longer running whatsoever,and i cannot access any of my webpages
[21:26] <ripdisk> ok, permissions of what? and.. if  thats the case, why would they suddenly change all on their own?
[21:26] <wxl> no clue what updated, so can't tell you
[21:26] <ripdisk> no, UPGRADE
[21:26] <ripdisk> not update.
[21:27] <wxl> but the permissions of the files you're trying to serve
[21:27] <wxl> same difference. some part of your system changed.
[21:28] <ripdisk> OK, i changed the permissions of /var/www/html to 777
[21:28] <ripdisk> absolutely no difference.
[21:28] <wxl> what about ownership?
[21:28] <ripdisk> who should it belong to
[21:28] <ripdisk> 'cos i DID at one point mess with permissions and i didn't realy know hwat i was doing...tryijg to get my game sever working
[21:29] <wxl> that's likely your problem
[21:29] <wxl> but i don't know much about apache
[21:29] <ripdisk> i think i did chmod ripdisk -R html
[21:29] <ripdisk> wel
[21:29] <ripdisk> if its set to 777 i shouldn't matter WHO owns it
[21:30] <wxl> not necessarily true
[21:30] <wxl> so let's start with dumb questions though
[21:30] <wxl> is apache running?
[21:31] <ripdisk> yeah. I Mentioned up top that I restarted it several times
[21:31] <wxl> have you looked for eerrors in the logs?
[21:33] <ripdisk> i woulnd't know what log to look at... but hey here's some more info
[21:33] <ripdisk> when i try to visit the folder, even from localhost
[21:33] <ripdisk> it says unable to connect
[21:34] <wxl> can you telnet to localhost 80?
[21:35] <ripdisk> how do you do that? telne 127.0.0.1:80 ?
[21:36] <wxl> telnet 127.0.0.1 80
[21:36] <ripdisk> remote connection refused
[21:36] <ripdisk> its a port beng blocked i just know it
[21:37] <wxl> there ya go
[21:37] <wxl> one sec
[21:37] <ripdisk> at one point i was looking at ports and stuff to get my client to work but i forgo where i found those setings
[21:39] <wxl> does `netstat -lntu | grep 80` return anything?
[21:41] <wxl> you could use ss instead of netstat fwiw
[21:42] <ripdisk> nope, nothing... dude i just accidently did something really stupid
[21:43] <wxl> so it sounds like either you don't have apache listening on 80 or you have a firewall rule working against you
[21:43] <ripdisk> foar whatever reaqson, i hit a key and it pasted apt install apache2-bin
[21:43] <ripdisk> and it started doing something so i hit ctrl c to stop it
[21:43] <ripdisk> and now when  type service apache2 start it says
[21:43] <ripdisk> Job for apache2.service failed because the control process exited with error code.
[21:43] <ripdisk> See "systemctl  status apache2.service" and "journalctl  -xe" for details.
[21:44] <ripdisk> crap man i dont know wtf i did
[21:44] <wxl> just install apache2-bin
[21:44] <wxl> there's nothing wrong with installing it
[21:44] <wxl> it is a dependency of apache2
[21:44] <wxl> i.e. you need to have it
[21:45] <wxl> you might want to just `sudo apt update && sudo apt-get install --reinstall apache2`
[21:46] <ripdisk> ok, its dong that
[21:46] <ripdisk> i hope tis didn't break my phpmyadmin and my mysql stuff cos i dont have it written down anwhere
[21:47] <wxl> it shouldn't clobber your configs
[21:47] <ripdisk> ok, the reinstall finished
[21:47] <ripdisk> i just typed service apache2 start
[21:47] <ripdisk> and it saId this again
[21:47] <ripdisk> Job for apache2.service failed because the control process exited with error code.
[21:47] <ripdisk> See "systemctl  status apache2.service" and "journalctl  -xe" for details.
[21:48] <wxl> what version are you on?
[21:48] <ripdisk> i was on an oldder one, and the other day i just did the 'upgrade'
[21:48] <ripdisk> everything was working fine until i started messing with ports
[21:48] <wxl> not helpful; `lsb_release -a`
[21:48] <ripdisk> 17.10
[21:49] <wxl> pastebin the results of systemctl status apache2.service
[21:54] <ripdisk> https://pastebin.com/YwDFcmzd
[21:55] <wxl> that output seems really messed up like something's cut off
[21:55] <wxl> however it's clear there's something wrong with your conf file
[21:56] <wxl> looks like there also may be an error with mods-enabled/php5.load
[21:56] <ripdisk> dude
[21:57] <ripdisk> i found the problem, SOME DAMN IDIOT
[21:57] <ripdisk> I'M SO ANGRY
[21:57] <wxl> that's surprisngly more often the case than not :)
[21:58] <ripdisk> https://pastebin.com/fLipm8PT
[21:58] <ripdisk> if i cant fix this, i will ruin everything i've been working with for a long time
[21:58] <wxl> apache2 remember
[21:59] <ripdisk> IT SAYS THE SAME THNG
[22:00] <ripdisk> here's the same thing with apache2
[22:00] <ripdisk>           this or Ctrl-C to cancel.
[22:00] <ripdisk>  [15:00] [ripdisk(+i)] [3:freenode/#lubuntu(+Ccnt)] [Act: 1]
[22:00] <ripdisk> [#lubuntu] https://pastebin.com/0yrHfNJB
[22:00] <ripdisk> sorry
[22:00] <ripdisk> https://pastebin.com/0yrHfNJB
[22:00] <ripdisk> thats the one.
[22:01] <ripdisk> dude.... if i cant get this shit working...
[22:01] <wxl> try doing systemctl start apache2.service
[22:01] <wxl> oh wait nevermind
[22:01] <ripdisk> I dont know ANY of my mysql information, all my phpmyadmin info will be gone which means EVERYTHING i made that relies on mysql is EFFED
[22:01] <wxl> you said it says the same thing but it doesn't
[22:01] <wxl> now do systemctl status apache2.service again
[22:02] <wxl> also: freaking out ain't going to fix nothing, so chillax
[22:03] <ripdisk> https://pastebin.com/rQn3TDJV
[22:03] <ripdisk> no, if i cant fix this i'm calling the cops on  him
[22:03] <wxl> Syntax error on line 146 of /etc/apache2/apache2.conf
[22:03] <ripdisk> i have his name, address, number, license plate, number to his job, number to his wife's job
[22:03] <wxl> fix that
[22:03] <wxl> Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load
[22:03] <wxl> then fix that
[22:04] <ripdisk> i dont know what you mean by fix it
[22:04] <ripdisk> it only has one line
[22:04] <ripdisk> LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
[22:04] <ripdisk> thats the whole file
[22:05] <wxl> you fixed the first problem?
[22:05] <ripdisk> no, thats whats in the file you told me to edit
[22:05] <wxl> Syntax error on line 146 of /etc/apache2/apache2.conf
[22:05] <wxl> ^^ that
[22:05] <wxl> do that first
[22:06] <ripdisk> # Include module configuration:
[22:06] <ripdisk> IncludeOptional mods-enabled/*.load
[22:06] <ripdisk> IncludeOptional mods-enabled/*.conf
[22:06] <ripdisk> thatsa the line.
[22:06] <wxl> 146 is one line
[22:06] <wxl> those are 3
[22:06] <ripdisk> IncludeOptional mods-enabled/*.load
[22:06] <wxl> but suffice it to say it looks like the problem is the fact that it's loading the other file
[22:06] <ripdisk> thats the line
[22:07] <wxl> does /usr/lib/apache2/modules/libphp5.so exist?
[22:08] <ripdisk> no
[22:09] <wxl> looks like it's part of php5-dbg which is only available for trusty
[22:09] <ripdisk> i'm getting really freaking angry. everything worked absolutely perfectly as of yesterday, i didn't touch any settings or do ANTHING other than upgrade
[22:09] <wxl> doesn't sound like it
[22:09] <wxl> looks like we're up to about php7 now
[22:10] <ripdisk> doesn'tsound like what
[22:10] <wxl> you didn't do anything other than upgrade
[22:10] <ripdisk> i didn't. i upgraded, and then i installed virtual box.
[22:10] <ripdisk> it worked RIGHT before i did that, and hasn't worked since.
[22:10] <wxl> and then messed with ports and permissions and some guy did something and blah blha blah
[22:12] <ripdisk> that guy did something was not yesterday
[22:12] <ripdisk> that happened like maybe months ago
[22:12] <ripdisk> and he only ports i messed with were on my router and within virtual obx
[22:14] <wxl> do you need php for what you're serving?
[22:20] <ripdisk> i mostly work in php
[22:20] <wxl> what's php --version give you? please tell me it says 7
[22:20] <wxl> well, 7.1. more specifically
[22:21] <ripdisk> ripdisk@bmt-one:~$ php --version
[22:21] <ripdisk> PHP 7.1.11-0ubuntu0.17.10.
[22:21] <wxl> lovely
[22:21] <ripdisk> ok, fr shits and giggles, how do i disable php entirely
[22:21] <ripdisk> just to try
[22:21] <wxl> you can get rid of or remove that php5.load file
[22:22] <wxl> there will not be php5 for the version of *buntu you're on
[22:22] <ripdisk> yeah, wher'es it aga again
[22:22] <wxl> in mods-enabled
[22:22] <ripdisk> i'm in irssi i cant freaking scroll up
[22:22] <ripdisk> eugh
[22:22] <wxl> page up
[22:23] <ripdisk> f /etc/apache2/apache2.conf
[22:23] <ripdisk> that file?
[22:23] <wxl> nope
[22:23] <wxl> all of apache2 stuff is in /etc/apache2
[22:23] <wxl> then go into mods-enabled
[22:23] <wxl> anything php5 in there, you do not want
[22:23] <wxl> actually, you don't want anything less than 7
[22:24] <ripdisk> funny, her4e is no 7s in there
[22:24] <ripdisk> only 5s
[22:24] <wxl> burn them
[22:24] <ripdisk> ok i moved them to a temp folder for now
[22:24] <ripdisk> hey look i think it worked hold on
[22:24] <ripdisk> it sure as hell did
[22:25] <ripdisk> ok, now we'r making progress
[22:25] <wxl> go check to see your php is working
[22:26] <ripdisk> but i'm not sexually excited at the moment
[22:26] <ripdisk> oh my PHP
[22:26] <ripdisk> didn't see the H
[22:26] <wxl> if it's not, `a2enmod php7.1` should get you there
[22:27] <wxl> word to the wise: things like programming language version changes that often occur between major system version changes often result in a little extra work
[22:27] <ripdisk> <?php
[22:27] <ripdisk> echo a horse is a horse of course of course;
[22:27] <ripdisk> ?>
[22:27] <ripdisk> did not load.
[22:27] <ripdisk> oh wait
[22:28] <ripdisk> it'd help if i knew how to code
[22:28] <wxl> ^^
[22:28] <wxl> `phpinfo();` would probably suffice
[22:29] <ripdisk> <?php
[22:29] <ripdisk> echo "a horse is a horse of course of course";
[22:29] <ripdisk> ?>
[22:29] <ripdisk> won't work
[22:29] <ripdisk> no mas php :( no bueno
[22:30] <wxl> did you do what i suggested?
[22:32] <ripdisk> `a2enmod php7.
[22:32] <ripdisk> where would i et that
[22:33] <wxl> sorry i'm not drunk enough to understand that
[22:33] <ripdisk> et = get
[22:33] <ripdisk> where would I get that
[22:33] <ripdisk> `a2enmod php7
[22:33] <ripdisk> tatswhat you said
[22:33] <ripdisk> < wxl> if it's not, `a2enmod php7.1` should get you there
[22:33] <ripdisk> is that not what you meant by 'doing what you told me to do' ?
[22:34] <wxl> go to the command line and type that
[22:37] <ripdisk> root@bmt-one:/etc/apache2/mods-enabled# a2enmod php7.1
[22:37] <ripdisk> ERROR: Module php7.1 does not exist!
[22:38] <wxl> install libapache2-mod-php
[23:56] <billybob> I am unable to connect a wireless Canon MG2922 to an ACER Aspire laptop running Lubuntu 17.10. I want to connect without using an access point, that is, connect directly to the printer wirelessly without using a router. The printer is properly set to access point mode. The printer shows up in Wi-Fi networks and I can connect the laptop but I'm unable to print.