installing flarum with 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
-
@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 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
-
@phenomlab ok, now when i went in the domain folder and try i am getting an error
@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. -
@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.@phenomlab ohoo, in that case, i can not run flarum commands when i am in the domain folder
do i need to create any bash or some kind of profile for that?
or shall i just try to install by giving exact path of my domain folder while installing flarum from root
-
@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.@phenomlab Seeing as this is a testing box, you could try
apt install php8.0-cli
and see where that takes you, but I’m guessing it’s not the silver bullet you are looking for. -
@phenomlab ohoo, in that case, i can not run flarum commands when i am in the domain folder
do i need to create any bash or some kind of profile for that?
or shall i just try to install by giving exact path of my domain folder while installing flarum from root
in that case, i can not run flarum commands when i am in the domain folder
Yes, you can, but you have to specify the full path to PHP each time.
-
@phenomlab ohoo, in that case, i can not run flarum commands when i am in the domain folder
do i need to create any bash or some kind of profile for that?
or shall i just try to install by giving exact path of my domain folder while installing flarum from root
@Hari said in installing flarum with plesk:
flarum from root
Don’t ever do that. Bad for security. You might as well set 777 on all files and folders
-
in that case, i can not run flarum commands when i am in the domain folder
Yes, you can, but you have to specify the full path to PHP each time.
@phenomlab
plesk plesk … lalala
@phenomlab said in installing flarum with plesk:
@phenomlab Seeing as this is a testing box, you could try
apt install php8.0-cli
and see where that takes you, but I’m guessing it’s not the silver bullet you are looking for. -
@phenomlab
plesk plesk … lalala
@phenomlab said in installing flarum with plesk:
@phenomlab Seeing as this is a testing box, you could try
apt install php8.0-cli
and see where that takes you, but I’m guessing it’s not the silver bullet you are looking for.@Hari that should in fact work !
-
@Hari said in installing flarum with plesk:
flarum from root
Don’t ever do that. Bad for security. You might as well set 777 on all files and folders
@phenomlab that is the problem, its better to use pocket hold and install and update extensions using the Plesk panel.
but the only problem is installing Redis … is there any way to create user for domain in Plesk and set his CLI to php8 and composer version to 2
as mentioned in docs Plesk is not using php8 cli this is weird
-
@phenomlab will it work everytime i login or its only valid for this session?
-
@phenomlab will it work everytime i login or its only valid for this session?
@Hari the full path ? Yes.
-
@phenomlab that is the problem, its better to use pocket hold and install and update extensions using the Plesk panel.
but the only problem is installing Redis … is there any way to create user for domain in Plesk and set his CLI to php8 and composer version to 2
as mentioned in docs Plesk is not using php8 cli this is weird
@Hari yes. Take my advice and avoid Plesk. It’s sh**. Can’t be much plainer than that.
-
@phenomlab the php 8 CLI
-
@phenomlab the php 8 CLI
@Hari that will work every time but you still need the full path to the
php
binary -
@Hari yes. Take my advice and avoid Plesk. It’s sh**. Can’t be much plainer than that.
@phenomlab sure, i want to run this little software with light tools - are there any other alternatives?
someone is doing like this https://discuss.flarum.org/d/30211-gtmetrix-grade-and-stats-on-flarum/2 is it a good practice?
i don’t think this bare bones kind of process is good for newbies
Did this solution help you?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.
With your input, this post could be even better 💗
RegisterLog in