Skip to content

New Install in Pi #47

Answered by JimKnopf1503
jjm888 asked this question in Q&A
Feb 4, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi!
Check the php version on your Pi. (php -v)
You need to have installed php 8.x and it must be used! If you have php 7 installed parallel to php 8 it may be activ.
You should create a file named phpinfo.php in your webspace (/var/www/html).
Content:

<?php
phpinfo();

Then open this page in your browser http://yourIP/phpinfo.php
There you can see, which php version is activ for your webpages.
Edit:
If it is the wrong version, you can deaktivate it with:
sudo a2dismod php7.4 // where 7.4 should be replaced with your active version, which you found out using phpinfo.php
Enable the right one with:
sudo a2enmod php8.0 // 8.0 should also replaced with your installed version
sudo systemctl res…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jjm888
Comment options

@jjm888
Comment options

@JimKnopf1503
Comment options

@jjm888
Comment options

Answer selected by robske110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants