Notes from Kbin's Matrix Logs - viiia
nb VERY ROUGH, Non Canonical:
8a. 12/6/2023, 11:59:35 - sprite_tm: Hiya, I'm trying to install kbin to my own server. The updated admin guide was really useful and I mostly have it working. However, federation seems to be messed up: I assume I can search for external magazines using the 'search' function and adding the identifier? If so, what would that identifier look like? I tried Lemmy-style !chat@beehaw.org, fedi-style @chat@beehaw.org and both give 'no results'.
8b. 12/6/2023, 12:00:58 - sprite_tm: If I dump the URL (https://beehaw.org/c/chat) in there, I get an error backtrace, but I imagine that's not the correct way to begin with.
8c. 12/6/2023, 12:32:28 - finn10111: <@sprite_tm:matrix.org "Hiya, I'm trying to install kbin..."> May I ask if you were using a reverse proxy? Would like to know how it could work. Or perhaps I have to get another IP address so I won't need my reverse proxy.
8d. 12/6/2023, 12:33:05 - sprite_tm: <@finn10111:matrix.org "May I ask if you were using a re..."> Nope. Direct Apache server with a domain pointing at the kbin public directory.
8e. 12/6/2023, 12:40:28 - finn10111: <@sprite_tm:matrix.org "Nope. Direct Apache server with ..."> Thanks, forgot about the non-docker approach. Perhaps I should try that one
8f. 12/6/2023, 12:43:11 - sprite_tm: Ugh, now search brings up nothing again. Not sure why it's so flakey. Possibly it needs to do something under water to connect to the external server, and doesn't give anything until it does?
8g. 12/6/2023, 13:31:20 - dannekrose: <@sprite_tm:matrix.org "Ugh, now search brings up nothin..."> Are your workers restarting correctly? I ended up setting up a cron job for supervisorctl since workers were erroring out without restarting properly.
8h. 12/6/2023, 14:58:33 - sprite_tm: <@dannekrose:matrix.org "Are your workers restarting corr..."> How do I check/fix that?
8i. 12/6/2023, 16:11:27 - dannekrose: <@sprite_tm:matrix.org "Sorry, I'm pretty good at Unix b..."> Are you using docker?
8j. 12/6/2023, 16:11:57 - sprite_tm: <@dannekrose:matrix.org "Are you using docker?"> No, bare-metal.
8k. 12/6/2023, 16:14:23 - dannekrose: Check out the last few comments on this issue. https://codeberg.org/Kbin/kbin-core/issues/2
8l. 12/6/2023, 17:23:33 - bqv: Would i run into any issues hosting kbin on freebsd?
8m. 12/6/2023, 17:32:22 - dannekrose: <@_xmpp_frony=40xmpp.fi:matrix.org "Would i run into any issues host..."> Hmm. I don't know, but as long as you can run all the dependent daemons and run symfony and node to compile, I don't' see why not
8n. 12/6/2023, 17:33:29 - bqv: Probably fine
8o. 12/6/2023, 19:33:18 - gauthierplm: ernest: regarding https://codeberg.org/Kbin/kbin-core/issues/106, the doc may be updated to use docker' convenience install script: https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script
It will ease the work for users + it detects the distribution.
I can submit a doc PR if you are good with this.
8p. 12/6/2023, 20:46:52 - ivy: <@radekk:matrix.org "Perhaps for basic setup just to ..."> what is nginx for?
12/6/2023, 20:47:06 - ivy: I thought it was what was serving the page
12/6/2023, 20:47:19 - dannekrose: Try
curl -kvvv https://localhost/
12/6/2023, 20:48:22 - ivy: ```shell
kbin@ubuntu-4gb-hil-1:/etc/nginx/sites-enabled$
* Trying ::1:443...
* TCP_NODELAY set
* Connected to localhost (::1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=fedi196.gay
* start date: Jun 12 15:54:59 2023 GMT
* expire date: Sep 10 15:54:58 2023 GMT
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.68.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.18.0 (Ubuntu)
< Date: Mon, 12 Jun 2023 18:47:39 GMT
< Content-Type: text/html
< Content-Length: 612
< Last-Modified: Mon, 12 Jun 2023 13:38:55 GMT
< Connection: keep-alive
< ETag: "64871fef-264"
< Accept-Ranges: bytes
<
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
* Connection #0 to host localhost left intact
```
8q. 12/6/2023, 20:48:29 - radek: I thought the basic setup is just running the docker compose and nginx is not needed but I may be wrong 🙂
12/6/2023, 20:49:21 - ivy: <@radekk:matrix.org "I thought the basic setup is jus..."> nginx is in the setup
12/6/2023, 20:49:22 - ivy: https://codeberg.org/Kbin/kbin-core/wiki#nginx
12/6/2023, 20:50:14 - dannekrose: Ok. Try this now:
curl -kvvv -H "Host: <your-domain-name>" https://localhost/
12/6/2023, 20:50:34 - dannekrose: Change <your-domain-name> to whatever it is without http
Example: Host: kbin.social
12/6/2023, 20:51:17 - ivy: ```shell
kbin@ubuntu-4gb-hil-1:/etc/nginx/sites-enabled$ curl -kvvv -H "Host: fedi196.gay" https://localhost/
* Trying ::1:443...
* TCP_NODELAY set
* Connected to localhost (::1) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
* subject: CN=fedi196.gay
* start date: Jun 12 15:54:59 2023 GMT
* expire date: Sep 10 15:54:58 2023 GMT
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
> GET / HTTP/1.1
> Host: fedi196.gay
> User-Agent: curl/7.68.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx/1.18.0 (Ubuntu)
< Date: Mon, 12 Jun 2023 18:50:50 GMT
< Content-Type: text/html
< Content-Length: 612
< Last-Modified: Mon, 12 Jun 2023 13:38:55 GMT
< Connection: keep-alive
< ETag: "64871fef-264"
< Accept-Ranges: bytes
<
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
* Connection #0 to host localhost left intact
```
8r. 12/6/2023, 20:53:09 - radek: <@figroot:matrix.org "nginx is in the setup"> This is bare metal setup where you manually install all components. There is also this docker install section which shows how to run it using docker. I think you choose either one or another
8s. 12/6/2023, 20:54:21 - dannekrose: Ok. Do you where you cloned your kbin git into? In your /etc/nginx/sites-available/kbin.conf file there should be a line with something like:
root /home/kbin/kbin/kbin/public; # path to repo/public
Does that point to the /public subfolder in your kbin repo directory?
8t. 12/6/2023, 20:54:32 - dannekrose: I did mine bare-metal.
8u. 12/6/2023, 20:54:37 - dannekrose: So I know the struggle.
8v. 12/6/2023, 20:54:48 - dannekrose: I did it even before the current documentation and it was TOUGH
8w. 12/6/2023, 20:54:52 - ivy: <@radekk:matrix.org "This is bare metal setup where y..."> thats not possible as there is not a published image https://codeberg.org/Kbin/kbin-core/wiki#install-with-docker
8x. 12/6/2023, 21:03:19 - ivy: <@dannekrose:matrix.org "Ok. Do you where you cloned you..."> I think this is it
```shell
kbin@ubuntu-4gb-hil-1:~$ cd /var/www/kbin
kbin@ubuntu-4gb-hil-1:/var/www/kbin$ ls
assets composer.json docker docker-compose.yml LICENSE package.json phpunit.xml.dist src tests vendor
bin composer.lock docker-compose.override.yml Dockerfile migrations package-lock.json public symfony.lock translations webpack.config.js
clover.xml config docker-compose.prod.yml docs node_modules phpcs.xml README.md templates var yarn.lock
kbin@ubuntu-4gb-hil-1:/var/www/kbin$ cd public
kbin@ubuntu-4gb-hil-1:/var/www/kbin/public$ ls
assets build bundles favicon.ico favicon.svg index.php js kbin_logo.png kbin_logo.svg kbin-og.png kbin-promo.svg logo.png manifest.json media robots.txt site.webmanifest sw.js
```
8y. 12/6/2023, 21:03:32 - dannekrose: Nice!
8z. 12/6/2023, 21:04:02 - dannekrose: what do you see when you try:
ls -lash /var/www/kbin
8aa. 12/6/2023, 21:04:38 - ivy: image.png (File Attached)
12/6/2023, 21:04:53 - ivy: ```shell
kbin@ubuntu-4gb-hil-1:/var/www/kbin/public$ ls -lash /var/www/kbin
total 2.1M
4.0K drwxr-xr-x 17 kbin www-data 4.0K Jun 12 15:01 .
4.0K drwxr-xr-x 4 root root 4.0K Jun 12 13:45 ..
4.0K drwxrwxr-x 6 kbin kbin 4.0K Jun 12 13:45 assets
4.0K drwxrwxr-x 2 kbin kbin 4.0K Jun 12 13:45 bin
484K -rw-rw-r-- 1 kbin kbin 484K Jun 12 13:45 clover.xml
8.0K -rw-rw-r-- 1 kbin kbin 5.6K Jun 12 13:45 composer.json
540K -rw-rw-r-- 1 kbin kbin 538K Jun 12 13:45 composer.lock
4.0K drwxrwxr-x 7 kbin kbin 4.0K Jun 12 13:45 config
4.0K drwxrwxr-x 4 kbin kbin 4.0K Jun 12 13:45 docker
4.0K -rw-rw-r-- 1 kbin kbin 927 Jun 12 13:45 docker-compose.override.yml
4.0K -rw-rw-r-- 1 kbin kbin 320 Jun 12 13:45 docker-compose.prod.yml
8.0K -rw-rw-r-- 1 kbin kbin 5.6K Jun 12 13:45 docker-compose.yml
4.0K -rw-rw-r-- 1 kbin kbin 3.8K Jun 12 13:45 Dockerfile
4.0K -rw-rw-r-- 1 kbin kbin 390 Jun 12 13:45 .dockerignore
4.0K drwxrwxr-x 3 kbin kbin 4.0K Jun 12 13:45 docs
8.0K -rw-rw-r-- 1 kbin kbin 4.3K Jun 12 14:10 .env
8.0K -rw-rw-r-- 1 kbin kbin 4.2K Jun 12 13:45 .env.example
4.0K -rw-rw-r-- 1 kbin kbin 436 Jun 12 13:45 .env.test
4.0K drwxrwxr-x 8 kbin kbin 4.0K Jun 12 13:45 .git
4.0K -rw-rw-r-- 1 kbin kbin 796 Jun 12 13:45 .gitignore
36K -rw-rw-r-- 1 kbin kbin 34K Jun 12 13:45 LICENSE
4.0K drwxrwxr-x 2 kbin kbin 4.0K Jun 12 13:45 migrations
20K drwxrwxr-x 412 kbin kbin 20K Jun 12 15:01 node_modules
4.0K -rw-rw-r-- 1 kbin kbin 1.2K Jun 12 13:45 package.json
552K -rw-rw-r-- 1 kbin kbin 551K Jun 12 13:45 package-lock.json
76K -rw-rw-r-- 1 kbin kbin 75K Jun 12 13:45 .php-cs-fixer.cache
4.0K -rw-rw-r-- 1 kbin kbin 267 Jun 12 13:45 phpcs.xml
4.0K -rw-rw-r-- 1 kbin kbin 1.2K Jun 12 13:45 phpunit.xml.dist
4.0K drwxrwxr-x 7 kbin kbin 4.0K Jun 12 15:01 public
4.0K -rw-rw-r-- 1 kbin kbin 3.6K Jun 12 13:45 README.md
4.0K drwxrwxr-x 32 kbin kbin 4.0K Jun 12 13:45 src
24K -rw-rw-r-- 1 kbin kbin 23K Jun 12 13:45 symfony.lock
4.0K drwxrwxr-x 23 kbin kbin 4.0K Jun 12 13:45 templates
4.0K drwxrwxr-x 4 kbin kbin 4.0K Jun 12 13:45 tests
4.0K drwxrwxr-x 2 kbin kbin 4.0K Jun 12 13:45 translations
8.0K drwxrwxr-x+ 4 kbin kbin 4.0K Jun 12 13:59 var
4.0K drwxrwxr-x 57 kbin kbin 4.0K Jun 12 17:54 vendor
4.0K -rw-rw-r-- 1 kbin kbin 2.6K Jun 12 13:45 webpack.config.js
212K -rw-rw-r-- 1 kbin kbin 211K Jun 12 13:45 yarn.lock
```
8ab. 12/6/2023, 21:05:37 - dannekrose: Ok. First thing is to edit your /etc/nginx/sites-available/kbin.conf file to update the "root" line to point to /var/www/kbin/public
8ac. 12/6/2023, 21:07:35 - finn: Trying to run kbin using the provided docker-compose file and apache in front (debian 11) - or is that a bad idea in general? Then I would try to add another IP to the server
8ad. 12/6/2023, 21:06:59 - ivy: image.png (File Attached)
8ae. 12/6/2023, 21:07:07 - ivy: it seems I already had
8af. 12/6/2023, 21:08:18 - dannekrose: Ok. Next try reloading nginx:
systemctl restart nginx
8ag. 12/6/2023, 21:09:15 - ivy: restarted :3
8ah. 12/6/2023, 21:09:51 - dannekrose: Let me get you a redacted version of my conf. Just a moment.
8ai. 12/6/2023, 21:12:03 - dannekrose: Just checking but did you get a TLS Certificate using Let's Encrypt?
8aj. 12/6/2023, 21:12:10 - ivy: yes
8ak. 12/6/2023, 21:12:18 - bqv: Does kbin support blocking entire instances?
8al. 12/6/2023, 21:12:32 - dannekrose: Awesome. I'll skip that part then.
8am. 12/6/2023, 21:13:43 - dannekrose: What does the following show:
php -v
12/6/2023, 21:14:09 - ivy: ```shell
kbin@ubuntu-4gb-hil-1:/var/www/kbin/public$ php -v
PHP 8.2.7 (cli) (built: Jun 8 2023 15:27:12) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
```
8an. 12/6/2023, 21:19:33 - dannekrose: Nice. Did you set up a php pool yet?
8ao. 12/6/2023, 21:19:43 - ivy: whats that?
8ap. 12/6/2023, 21:19:47 - dannekrose: :)
8aq. 12/6/2023, 21:19:54 - dannekrose: Yeah, that's a tricky part.
8ar. 12/6/2023, 21:20:08 - dannekrose: That's an important step, but separate.
8as. 12/6/2023, 21:20:14 - dannekrose: Trust me, it's not intuitive.
8at. 12/6/2023, 21:20:20 - ivy: oh no
8au. 12/6/2023, 21:20:33 - ivy: bruh
8av. 12/6/2023, 21:20:43 - dannekrose: But, I only know because I've set up a Pixelfed Instance and even though that's not complete with documentation, it's still good. Hang on.
8aw. 12/6/2023, 21:20:46 - dannekrose: It's ok.
8ax. 12/6/2023, 21:20:54 - dannekrose: It's not hard, it's just not obvious
8ay. 12/6/2023, 21:22:03 - ivy: multithreading was a mistake, we should just build thousands of cores into cpus 🙃
8az. 12/6/2023, 21:22:21 - ivy: or have monolithic cpus
8ba. 12/6/2023, 21:22:23 - ivy: lol
8bb. 12/6/2023, 21:23:11 - dannekrose: Use this, but change every mention of "pixelfed" to "kbin" Also edit based on what sizes you want to accept for uploads.
https://docs.pixelfed.org/running-pixelfed/prerequisites/#configuring-php-fpm-pool-and-socket
8bc. 12/6/2023, 21:23:21 - ivy: <@_xmpp_frony=40xmpp.fi:matrix.org "Does kbin support blocking entir..."> I'm pretty sure you can defederate, yes
8bd. 12/6/2023, 21:23:58 - ivy: oooooh
8be. 12/6/2023, 21:24:12 - ivy: this looks vaguely familiar
8bf. 12/6/2023, 21:26:38 - dannekrose: <@_xmpp_frony=40xmpp.fi:matrix.org "Does kbin support blocking entir..."> The instance admin can, yes.
8bg. 12/6/2023, 21:28:08 - ivy: <@dannekrose:matrix.org "Use this, but change every menti..."> ```shell
kbin@ubuntu-4gb-hil-1:~$ cd /etc/php/php-fpm.d/
-bash: cd: /etc/php/php-fpm.d/: No such file or directory
```
8bh. 12/6/2023, 21:28:43 - ivy: there doesn't seem to be a file there
8bi. 12/6/2023, 21:28:45 - dannekrose: scroll up a little bit on that page and it gives some options where it might be.
8bj. 12/6/2023, 21:28:56 - dannekrose: Hang on
8bk. 12/6/2023, 21:29:58 - thatmacadmin: Is this a good reason to run your own instance?
8bl. 12/6/2023, 21:30:08 - dannekrose: What does this show?:
sudo find / -name "www.conf"
12/6/2023, 21:30:49 - ivy: ```shell
kbin@ubuntu-4gb-hil-1:~$ sudo find / -name "www.conf"
/etc/php/8.2/fpm/pool.d/www.conf
find: ‘/proc/597755’: No such file or directory
find: ‘/proc/597764’: No such file or directory
find: ‘/proc/597767’: No such file or directory
/var/lib/docker/overlay2/a8bec7228e86f0db4d3d156b2cd81dd13fb425b819f045e7f527cc29732374f9/diff/usr/local/etc/php-fpm.d/www.conf
/var/lib/docker/overlay2/e21c9df372ce82119ca69d65c95b3a56e2b4a6545aab7f8378e3c9c9b21ae067/merged/usr/local/etc/php-fpm.d/www.conf
```
8bm. 12/6/2023, 21:31:00 - dannekrose: The ability for users to block/hide domains has been requested and is on the to-do list last I heard.
8bn. 12/6/2023, 21:31:18 - dannekrose: So it depends on your needs and what priorities you have.
8bo. 12/6/2023, 21:32:27 - dannekrose: So cd into /etc/php/8.2/fpm/pool.d/
8bp. 12/6/2023, 21:33:41 - ivy: I didn't know sudo find existed
8bq. 12/6/2023, 21:33:46 - ivy: thats pretty cool
8br. 12/6/2023, 21:34:54 - ivy: so from here I would I run
```
cp www.conf kbin.conf
```
8bs. 12/6/2023, 21:35:33 - dannekrose: Yup!
8bt. 12/6/2023, 21:36:10 - ivy: then in the file do
```conf
; use the username of the app-user as the pool name, e.g. pixelfed
[kbin]
user = kbin
group = kbin
; to use a tcp socket, e.g. if running php-fpm on a different machine than your app:
; (note that the port 9001 is used, since php-fpm defaults to running on port 9000;)
; (however, the port can be whatever you want)
; listen = 127.0.0.1:9001;
; but it's better to use a socket if you're running locally on the same machine:
listen = /run/php-fpm/kbin.sock
listen.owner = http
listen.group = http
listen.mode = 0660
; [...]
```
8bu. 12/6/2023, 21:36:43 - X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*: @ivy @dannekrose damn.
8bv. 12/6/2023, 21:37:00 - dannekrose: Yup!
8bw. 12/6/2023, 21:37:06 - ivy: based
8bx. 12/6/2023, 21:37:35 - dannekrose: Oh.
8by. 12/6/2023, 21:37:38 - X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*: Was hoping to get past that spiral of federation breaking masto and now lemmy have botj dived headfirst into. Theres smarter ways to handle that
8bz. 12/6/2023, 21:37:50 - dannekrose: Listen owner *might* need to be the same: kbin
8ca. 12/6/2023, 21:38:27 - dannekrose: listen.owner and group. This is where things are a little murky for me, but I think you need those as kbin, too.
8cb. 12/6/2023, 21:38:38 - ivy: what would that look like
8cc. 12/6/2023, 21:38:38 - dannekrose: We can try to change it if it doesn't work
8cd. 12/6/2023, 21:38:57 - dannekrose: listen.owner = kbin
listen.group = kbin
8ce. 12/6/2023, 21:39:05 - ivy: ooooh
8cf. 12/6/2023, 21:39:07 - ivy: awesome
8cg. 12/6/2023, 21:41:44 - dannekrose: After saving, restart php8.2:
sudo systemctl restart php8.2-fpm
8ch. 12/6/2023, 21:42:40 - ivy: awesome
8ci. 12/6/2023, 21:42:44 - ivy: image.png (File Attached)
8cj. 12/6/2023, 21:43:18 - dannekrose: Check to see if it's running ok:
sudo systemctl status php8.2-fpm
8ck. ● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2023-06-12 19:43:01 UTC; 49s ago
Docs: man:php-fpm8.2(8)
Process: 675021 ExecStart=/usr/sbin/php-fpm8.2 --nodaemonize --fpm-config /etc/php/8.2/fpm/php-fpm.conf (code=exited, status=78)
Process: 675047 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
Main PID: 675021 (code=exited, status=78)
Jun 12 19:43:01 ubuntu-4gb-hil-1 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Jun 12 19:43:01 ubuntu-4gb-hil-1 php-fpm8.2[675021]: [12-Jun-2023 19:43:01] ERROR: unable to bind listening socket for address '/run/php-fpm/kbin.sock': No such file or directory (2)
Jun 12 19:43:01 ubuntu-4gb-hil-1 php-fpm8.2[675021]: [12-Jun-2023 19:43:01] ERROR: FPM initialization failed
Jun 12 19:43:01 ubuntu-4gb-hil-1 systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=78/CONFIG
Jun 12 19:43:01 ubuntu-4gb-hil-1 systemd[1]: php8.2-fpm.service: Failed with result 'exit-code'.
Jun 12 19:43:01 ubuntu-4gb-hil-1 systemd[1]: Failed to start The PHP 8.2 FastCGI Process Manager.
```
8cl. 12/6/2023, 21:45:28 - ivy: should I run ```docker compose up```
8cm. 12/6/2023, 21:45:45 - dannekrose: No.
8cn. 12/6/2023, 21:46:00 - ivy: ok
8co. 12/6/2023, 21:46:06 - dannekrose: Ah.
8cp. 12/6/2023, 21:46:09 - dannekrose: Ok.
8cq. 12/6/2023, 21:46:29 - dannekrose: sudo mkdir /run/php-fpm
8cr. 12/6/2023, 21:46:50 - dannekrose: then
sudo chown kbin:kbin /run/php-fpm
8cs. 12/6/2023, 21:47:03 - dannekrose: Then
sudo systemctl restart php8.2-fpm
8ct. 12/6/2023, 21:47:42 - ivy: no errors!! 🎉
8cu. 12/6/2023, 21:48:17 - dannekrose: Nice. sudo systemctl status php8.2-fpm shows green? Nice
8cv. 12/6/2023, 21:48:26 - dannekrose: You'll need that path for the nginx part.
8cw. 12/6/2023, 21:48:35 - dannekrose: /run/php-fpm/kbin.sock
8cx. 12/6/2023, 21:49:16 - ivy: <@dannekrose:matrix.org "Nice. sudo systemctl status php..."> yep it's green!!
```shell
kbin@ubuntu-4gb-hil-1:/etc/php/8.2/fpm/pool.d$ sudo systemctl status php8.2-fpm
● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-06-12 19:47:24 UTC; 1min 24s ago
Docs: man:php-fpm8.2(8)
Process: 702075 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
Main PID: 702053 (php-fpm8.2)
Status: "Processes active: 0, idle: 4, Requests: 3, slow: 0, Traffic: 0req/sec"
Tasks: 5 (limit: 4555)
Memory: 46.8M
CGroup: /system.slice/php8.2-fpm.service
├─702053 php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)
├─702071 php-fpm: pool kbin
├─702072 php-fpm: pool kbin
├─702073 php-fpm: pool www
└─702074 php-fpm: pool www
Jun 12 19:47:24 ubuntu-4gb-hil-1 systemd[1]: Starting The PHP 8.2 FastCGI Process Manager...
Jun 12 19:47:24 ubuntu-4gb-hil-1 systemd[1]: Started The PHP 8.2 FastCGI Process Manager.
```
8cy. 12/6/2023, 21:49:41 - ivy: uh oh
8cz. 12/6/2023, 21:49:52 - ivy: <@dannekrose:matrix.org "/run/php-fpm/kbin.sock"> ```shell
kbin@ubuntu-4gb-hil-1:/etc/php/8.2/fpm/pool.d$ sudo /run/php-fpm/kbin.sock
sudo: /run/php-fpm/kbin.sock: command not found
```
Add comment