Multi PHP and switch PHP version

alpsan

Verified User
Joined
Jun 6, 2023
Messages
10
Hello,
I'm trying in vain to install a script that I bought from codecanyon but I'm having a lot of difficulty, so I need your help.
1- I create the domain: OK
2- I don't see where is the version of multiple php (no list nothing at all)
3- By default there is version 8.1 of PHP but I would like to use version 8.0, I can't find the place to switch.
4- I have other sites created by laravel (scripts bought on codecanyon) and all that scares me a little.

Last thing, I want to fully configure the panel with seller, user, etc... if you have a guide to configure all this correctly, it will be super awesome.
Kinds regards
 
I want to fully configure the panel with seller, user, etc...
Exactly which panel are you using?
Because if you use Directadmin with custombuild, you can use up to 4 php versions by default, no external script needed.
However, you do have to set them in the custombuild options.conf so if you don't know your way around SSH, check the custombuild plugin to install multiple php versions.

You can switch php version at user level under domain administration.
And also DA has reseller and user options by default.
 
Exactly which panel are you using?
Because if you use Directadmin with custombuild, you can use up to 4 php versions by default, no external script needed.
However, you do have to set them in the custombuild options.conf so if you don't know your way around SSH, check the custombuild plugin to install multiple php versions.

You can switch php version at user level under domain administration.
And also DA has reseller and user options by default.
Hello Richard, I just found it, it's just awesome. Now I need to figure out how to install a php script purchased (laravel) from codecanyon.

Thanks for your help.
 
You're welcome.

As for the Laravel, I'm sure you will find a way how to do it, lots of docs on Google to be found and for issues you can come here.
Just search for "install laraval directadmin" in Google.

There is also a video which might be helpfull.

Be aware... use at own risk, I haven't tested this myself.
 
Hi Richard, now that I have the PHP selector, when updating Custombuild, I get the message "php 5.x, 7.x and 8.0 cannot compile against openssl 3.0 or higher. Try php 8.1 or higher." So I can't use the php selector. When I deactivate the PHP versions, everything returns to normal. What to do ? Do you have any idea about this problem?
Regards
 
you cant use php 5.x version on newer OS which is using openssl3.0
Use Almalinux 8.x or other OS wich dont use Openssl 3.0
 
you cant use php 5.x version on newer OS which is using openssl3.0
Use Almalinux 8.x or other OS wich dont use Openssl 3.0
Hello, thanks for your reply. I am using ubuntu 22.04, on this server i am not using php version 5.xxx- What to do in this case ?

Regards
 
What to do in this case ?
Best option, downgrade to an Ubuntu version which has no OpenSSL 3.0 support yet. Like 20.04.6 LTS.

There is an option to custom compile things so php 8.0 and lower will work, but I don't now, can mess up things, I wouldn't advise it unless you know your way around in Linux and are experienced enough.

P.s. php 5.x is way EOL, I wouldn't use those EOL things anyway.

Another option is to use Almalinux 8.x and then use Cloudlinux to have more safe/secure support of ancient php versions.
 
Best option, downgrade to an Ubuntu version which has no OpenSSL 3.0 support yet. Like 20.04.6 LTS.

There is an option to custom compile things so php 8.0 and lower will work, but I don't now, can mess up things, I wouldn't advise it unless you know your way around in Linux and are experienced enough.

P.s. php 5.x is way EOL, I wouldn't use those EOL things anyway.

Another option is to use Almalinux 8.x and then use Cloudlinux to have more safe/secure support of ancient php versions.
Hello Richard, I believe this is the best way. I'm in the process of installing it, I'll come back if the need arises. Thank you for everything.
Kind regards.
 
Best option, downgrade to an Ubuntu version which has no OpenSSL 3.0 support yet. Like 20.04.6 LTS.

There is an option to custom compile things so php 8.0 and lower will work, but I don't now, can mess up things, I wouldn't advise it unless you know your way around in Linux and are experienced enough.

P.s. php 5.x is way EOL, I wouldn't use those EOL things anyway.

Another option is to use Almalinux 8.x and then use Cloudlinux to have more safe/secure support of ancient php versions.
How can i do that use "Cloudlinux to have more safe/secure support of ancient php versions." ? Can you please show me ?
Regards
 
Can you please show me ?
Check the cloudlinux.com website. It's not a free thing, it's payware.

You can also use older PHP versions, depending on DA supporting them (I thought minimum version 5.6, not 100% sure) also, but as you know they are all EOL a long time.
 
Back
Top