[2025-05-12] Syntax highlighting through CSS and markdown
This commit is contained in:
parent
fafa5ee954
commit
9f630196ed
6 changed files with 98 additions and 22 deletions
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
title: Fixing php errors in a Nextcloud docker-compose configuration
|
||||
categories:
|
||||
- til
|
||||
category: til
|
||||
layout: post
|
||||
tags:
|
||||
- php
|
||||
- nextcloud
|
||||
|
@ -15,7 +15,7 @@ I was trying to rescan the files in my Nextcloud server (running on Raspberry Pi
|
|||
|
||||
I was trying using the following syntax to call `occ` and scan the files:
|
||||
|
||||
```
|
||||
```bash
|
||||
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
|
||||
```
|
||||
|
||||
|
@ -32,7 +32,7 @@ It took me a decent amount of time to diagnose the exact issue, but eventually I
|
|||
Running `php -m` will print out the list of currently installed PHP modules. I noticed I was missing quite a few of the required modules, but the one that was causing my issue was the missing `pdo_mysql` module.
|
||||
This can be installed by running:
|
||||
|
||||
```
|
||||
```bash
|
||||
sudo apt-get install php7.4-mysql
|
||||
```
|
||||
**Note: This command will change based on your OS, PHP version and database type**
|
||||
|
@ -49,7 +49,7 @@ From first glance, this looks like something wrong in the DNS name resolution. T
|
|||
Eventually however, after a long and perilous journey over the high seas of Nextcloud forums and StackOverflow, I found [this example](https://techoverflow.net/2020/07/17/how-to-run-nextcloud-php-occ-in-a-docker-compose-configuration/) of running `php occ` in a docker-compose configuration.
|
||||
This led me to running this command:
|
||||
|
||||
```
|
||||
```bash
|
||||
docker-compose exec -u www-data nextcloud-app php occ files:scan --all
|
||||
```
|
||||
**Note: replace nextcloud-app with the name of your Nextcloud container. Also, this command must be run from the directory of your Nextcloud docker-compose.yml**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue