@Madchatthew I use it here. It is faster, but not sure if that extends to build times.
installing flarum with plesk
-
@Hari My responses below
change PHP version to 8 at the server level and also for my domain in Plesk using SSH
PHP 8.x has been available in Plesk since October 2021. There’s no need to change this using SSH, and it’s actually not recommended. The entire point of Plesk is to manage this using the portal - see below
https://support.plesk.com/hc/en-us/articles/115000769793
instead of maria DB i want to use MySQL as default, how can i do that? is it really possible? without a docker or any other things (since i am getting those SQL errors as shown in the earlier reply want to switch to MySQL from MariaDB)
Possible, yes - although it’s usually the other way round in the sense that people want to replace MySQL with MariaDB
https://www.plesk.com/blog/product-technology/mysql-vs-mariadb/
update composer to v2 for my domain via SSH.
You should take the same route as is advertised here
-
@phenomlab oh i see in that case i think my old backup is causing the issues regarding MySQL and PHP versions. i will try fresh installation now.
-
@Hari Ok. Let me know.
-
i have installed and set my project settings to PHP 8 but CLI is not updating to 8.0
should i try this?
https://talk.plesk.com/threads/set-default-php-version-for-command-line.345940/
-
@Hari What version of Plesk do you have ? You should be able to install this using the links I posted earlier ?
-
-
@Hari What’s the output of
php -v
from CLI ? -
i just sent logins, please teach me what changes i need to make i really want to learn this setup process … i want to do a youtube video on this too
-
@Hari Looks like the environment variable is not set.
What is the output of
locate php
andwhereis php
? -
should i goto the root and run these commands again?
-
@Hari No. Plesk typically installs PHP in
/opt/plesk/php/7.4/bin
so what is the output of/opt/plesk/php/7.4/bin/php -v
?Should be
PHP 7.4.28 (cli) (built: Feb 18 2022 07:57:20) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with the ionCube PHP Loader + ionCube24 v11.0.1, Copyright (c) 2002-2022, by ionCube Ltd. with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
Therefore, PHP 8 should be in
/opt/plesk/php/8.0/bin
, so you should also get output from/opt/plesk/php/8.0/bin/php -v
as belowPHP 8.0.16 (cli) (built: Feb 18 2022 07:57:20) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.16, Copyright (c) Zend Technologies with Zend OPcache v8.0.16, Copyright (c), by Zend Technologies
This means that because your environment variable is missing, you have to specify the full path to PHP 8, so instead of just
php
, you need/opt/plesk/php/8.0/bin/php
Welcome to Plesk
-
-
@Hari sorry - that should be
/opt/plesk/php/8.0/bin/php
. Previous post corrected. -
@phenomlab i installed Plesk directly from DO app area… it’s free up to 2-3 domains.
after running opt command the screen got stuck
-
@Hari That’s expected because you are now running PHP as a daemon Kill it by pressing CTRL + C (sometimes CTRL + Z or CTRL + X), then issue the correct command of
/opt/plesk/php/8.0/bin/php -v
which should spit out the version used in CLI. -
-
@Hari There you go…!
-
@phenomlab ok, now when i went in the domain folder and try i am getting an error
-
@Hari so if you wanted to run a particular PHP file, or command, you’d have to use
/opt/plesk/php/8.0/bin/php flarum cache:clear
for example.Now you know why I hate Plesk
-
@Hari said in installing flarum with plesk:
@phenomlab ok, now when i went in the domain folder and try i am getting an error
Yes, you have to understand that this expected. You cannot just run
php
and expect it to work like that in Plesk, because it won’t.