php 5.x, 7.x and 8.0 cannot compile against openssl 3.0 or higher. Try php 8.1 or higher.

abdulbasitrana

New member
Joined
Oct 17, 2022
Messages
6
Sir, I am trying to change php version to 7.4 but It is giving me Error: "php 5.x, 7.x and 8.0 cannot compile against openssl 3.0 or higher. Try php 8.1 or higher."
Sir, I changed my openssl version to 1.1.1q. Now I am running command "./build php n" this time it is giving me below error:

2022-10-17_23-52-37.png
 
Sir, I changed my openssl version to 1.1.1q.
You can not just change openssl, this can break the whole system.

Is this a new install? If yes, you can best reset the whole OS and install again.
Then if you want an OS with an older openssl version to be able to use php 7.4 and 7.3 you need to use an older OS.
Do not use Almalinux 9 for example, that will only support php 8.0 and newer since it has openssl 3.0.
You can use Almalinux 8.

If you use Debian/Ubuntu, check which versions have what and do not use a version which uses openssl 3.0 because you will run into the same problem.

P.s. best is to not support PHP 7.4 and older anymore. Security support ends november 28th and will be totaly EOL begin january 2023.
 
Sir, I have Rebuild my Server and Installed Ubuntu 20.04 LTS.
Sir, Ubuntu 20.04 comes with Openssl 1.1.1f.
2022-10-18_17-49-34.png

Sir, I run below Commands:
cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build php n

Sir, PHP 7.4.32 Installed but It is also showing me Errors.

2022-10-18_17-45-53.png


Sir, I have run "systemctl restart httpd" Command it is giving me below output:

2022-10-18_18-23-10.png


Sir, I have run "systemctl status httpd.service" Command it is giving me below output:

2022-10-18_18-21-58.png
 

Attachments

  • 2022-10-18_17-45-53.png
    2022-10-18_17-45-53.png
    48.6 KB · Views: 204
Seems php-fpm can not get the uid for the user "webapps", that is odd.
The user webapps is used for phpmyadmin and roundcube webmail.

But I don't know how to fix that.

@Zhenyapan do you have a clue on this?
 
maybe when you install DA you don't select to install phpmyadmin or/and roundcube?
 
I have generated ticket and Directadmin reply me below message.
It seems that your installation was not fully finished.
Have you started initiating new php version build while the installation was not finished? Some command that was executed cleared out the files for the compilation that was happening at that moment, as the error of the install is a missing file.
I've executed the ./build all d command in screen that should compile all the components of directadmin. After it finishes, you should be able to see all the services in GUI -> Show services as up.

At the moment apache and php-fpm74 seems down.
As it has only 1cpu and 2gb of ram, the recompilation will take a while to finish, but it should get there.
Now my Issue is Fixed and Websites are working fine. ?
 
Back
Top