Issue with php installation?

Hi all,

I recently switched from an older Intel-based MacBook to a new Apple Silicon one—i began the process of installing the necesssary parts to develop my site but I think something may have gone wrong with my installation of PHP?

After installing php, i started the server with “php -S localhost:8080 kirby/router.php” and got this message:

“This page is currently offline. We are very sorry for the inconvenience and will fix it as soon as possible.”

and it recommended I switch to a version of php compatible with my version of kirby—but i’m on Kirby 3.9.8 and installed php 8.3.8, which should be compatible. So i tried switching to php 8.2, and now I get this text when trying to access localhost:8080

Warning : Unknown: Failed to open stream: No such file or directory in Unknown on line 0

Fatal error : Failed opening required ‘kirby/router.php’ (include_path=‘.:/opt/homebrew/Cellar/php@8.2/8.2.20_1/share/php@8.2/pear’) in Unknown on line 0

i’m sure it’s an issue with the resources i’ve installed through terminal as i’m dont fully know what i’m doing when i work in the terminal outside of a few commands. Can anyone help me figure out what the issue is?

Nope, PHP 8.3 support was added to Kirby 3.10.

In the same folder where you called this, could you do a ls -la and post the result

So i realized i started the localhost server in the system terminal instead of the vscode terminal where i have my site’s folder open, and after doing it in there i’m able to access the site like normal.

here’s the ls -la results anyway but i think this solves the problem right?

joop@Garrits-bigmac officejoop % ls -la
total 584
drwxr-xr-x@ 28 joop staff 896 Jun 12 14:30 .
drwxr-xr-x@ 5 joop staff 160 Jun 6 00:15 …
-rw-r–r–@ 1 joop staff 10244 Jun 6 00:15 .DS_Store
-rw-r–r–@ 1 joop staff 456 Apr 12 17:32 .editorconfig
drwxr-xr-x@ 14 joop staff 448 Apr 12 17:32 .git
-rw-r–r–@ 1 joop staff 708 Apr 12 17:32 .gitignore
-rw-r–r–@ 1 joop staff 1936 Apr 12 17:32 .htaccess
-rw-r–r–@ 1 joop staff 18 Apr 12 17:32 CNAME
-rw-r–r–@ 1 joop staff 2751 Apr 12 17:32 README.md
-rw-r–r–@ 1 joop staff 15962 Apr 12 17:32 android-chrome-192x192.png
-rw-r–r–@ 1 joop staff 57518 Apr 12 17:32 android-chrome-512x512.png
-rw-r–r–@ 1 joop staff 14585 Apr 12 17:32 apple-touch-icon.png
drwxr-xr-x@ 5 joop staff 160 Apr 12 17:32 assets
-rw-r–r–@ 1 joop staff 246 Apr 12 17:32 browserconfig.xml
-rw-r–r–@ 1 joop staff 895 Apr 12 17:32 composer.json
drwxr-xr-x@ 13 joop staff 416 Apr 12 17:32 content
-rw-r–r–@ 1 joop staff 201 Apr 12 17:32 favicon-16x16.png
-rw-r–r–@ 1 joop staff 1535 Apr 12 17:32 favicon-32x32.png
-rw-r–r–@ 1 joop staff 15086 Apr 12 17:32 favicon.ico
-rw-r–r–@ 1 joop staff 114008 Apr 12 17:32 favicon@4x.png
-rw-r–r–@ 1 joop staff 78 Apr 12 17:32 index.php
drwxr-xr-x@ 21 joop staff 672 Apr 12 17:32 kirby
drwxr-xr-x 4 joop staff 128 Jun 12 14:32 media
-rw-r–r–@ 1 joop staff 9571 Apr 12 17:32 mstile-150x150.png
-rw-r–r–@ 1 joop staff 634 Apr 12 17:32 safari-pinned-tab.svg
drwxr-xr-x@ 12 joop staff 384 Jun 12 14:30 site
-rw-r–r–@ 1 joop staff 426 Apr 12 17:32 site.webmanifest
drwxr-xr-x@ 5 joop staff 160 Apr 12 17:32 starterkit-main

Yep, that’s what I thought.

thanks, please excuse my rookie mistake lol