PDA

View Full Version : Update to PHP 7.2 and vBulletin 4.2.5



kung foo man
24th January 2019, 08:01
Hi all, this was quite a fight... running now kinda latest MySQL, haproxy, lighttpd, forum software and PHP (on Ubuntu 18.04).

I had lots of issues in the process, but I figured out every problem so far. Please notice me if there are any bugs etc. left, so I can fix it.

If posting or login isn't possible anymore for whatever reason, please provide feedback in our Discord: https://discordapp.com/invite/mqBchQZ

Current todo list:

- setup tracker.killtube.org
- figure out reliable way to update letsencrypt (atm I just copied over certificate from old server)
- youloop.php, probably nobody cares about that :D
- fix some template issues for vBulletin (#vbtab_activity# in navbar)

Mitch
24th January 2019, 11:06
So far I haven't seen any issues.


- figure out reliable way to update letsencrypt (atm I just copied over certificate from old server)

I use certbot and cron for automatically updating my certificate.

Something like described here:
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

kung foo man
24th January 2019, 11:50
Yesterday I had this issue, I cloned letsencrypt from GitHub and tried running it:



Collecting certbot-nginx==0.30.0 (from -r /tmp/tmp.NZM1FU6no3/letsencrypt-auto-requirements.txt (line 218))
Downloading https://files.pythonhosted.org/packages/ad/15/7f42f31ba068f837816647135a0704a8c89aad685df160407e 92870c0277/certbot_nginx-0.30.0-py2.py3-none-any.whl (90kB)
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/site-packages (from josepy==1.1.0->-r /tmp/tmp.NZM1FU6no3/letsencrypt-auto-requirements.txt (line 95)) (40.6.3)
Exception:
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
status = self.run(options, args)
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
session=session, autobuilding=True
File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 848, in build
assert building_is_possible
AssertionError

IzNoGoD
24th January 2019, 18:44
https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx

IzNoGoD
24th January 2019, 18:46
Auto-redirect from non-https to https is not working.
www subdomain as well, doesnt redirect to https.

Also, there are two domains, killtube.org and www.killtube.org

kung foo man
25th January 2019, 10:03
Added this now in global.php, it redirects every http:// to same URI but for https://, which is included by every other .php:



if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $redirect);
exit();
}


Source: https://stackoverflow.com/questions/5106313/redirecting-from-http-to-https-with-php

Works pretty nice.

I had www subdomain (entire *.killtube.org) already pointed to new IP, maybe that is DNS cache. Do you still have problems with www.killtube.org (http://www.killtube.org)?

IzNoGoD
25th January 2019, 16:15
Both domains work fine now.

kung foo man
26th January 2019, 14:00
http://tracker.killtube.org/ works again, https not yet supported... need to overhaul the complete viewer to bring that thing into 2019 lol