php 8.2 not installed properly

stof

Verified User
Joined
Jan 28, 2021
Messages
24
Location
Nijmegen
Hi ,

I just installed two php versions on my centos 7 machine. Directadmin and custombuild are also installed.

I used this thread to do it.

I did this
Code:
cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build set php2_release 8.2
./build php

and after that I did this:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

In the attachement you can see how it looks like now. The 7.4 works fine.

But the 8.2 doesn't work. And I saw something strange. In the other attachment you see the php handler. After php 7.4 I see php-fpm
But after the 8.2 I don't see the mode. It says (null)

So I have the idea the installation didn't go the way it should be.

Now is my question.
How can I do the install of the php2_release 8.2 over again but then with a mode included? or just that is works : ))

Thanks!
 

Attachments

  • php1.png
    php1.png
    64.2 KB · Views: 9
  • php.png
    php.png
    17.1 KB · Views: 9
If i'm not mistaken, you "enabled" the option 8.2 but did not build/install the 8.2
I think you need to run:
./build php n

But i'm lazy and i use CustomBuild in the other themes.
 
that plugin not comparitive wiith current custombuild binary.
Please change to Evolution skin to get latest custombuild UI.
 
that plugin not comparitive wiith current custombuild binary.
I don't think that is the issue here. The PHP version selector as in the screenshot also works in Enhanced skin and the screenshot is showing the enhanced skin.
Also he compiled via SSH, so he did not use custombuild plugin. Or do you mean the left side screenshot?
Isn't that from Cloudlinux?

@stof I would consider th use php 8.0 as the php1 selection, because 7.4 is already EOL. You can still use php 8.2 as second and maybe php 7.4 as third if you still need that for some customers.

I would try use ./build update first and then do what @ericosman said and use the ./build php n command. Keep looking at your screen to see if indeed everything is build and you don't encounter any errors.

You are not using Cloudlinux are you?
 
Thanks for your answers!

I use linux with centos 7 and directadmin with custombuild. Don't know what cloudlinux is and if this vps is on that system.

Is it possible to have three php versions on a vps with 4 cores and 5 ram?

I thought two was the maximum. I installed 7.4 because still many sites only work on 7.4. When I move sites to this vps I want to see if they can work on php 8.2 but when it does not work I want it to be able to stay on that same vps with 7.4.

I will try to build it later this evening with the ./build php n command.

But also there is something different with this custombuild. Normally I see all kinds of software that can be build with custom build.
I use the old skin. Has this something to do with the skin? Should the admin change to the evolution skin in order to custombuild work properly?

Where can I change the kin for the admin? And is it easy to set back ? cause I actually like the old skin better.
Also when I change something and click on save the custombuild does not really safe it.

Thanks again!

ps custombuild version 1.0.37 is installed.
 

Attachments

  • skin.png
    skin.png
    141.6 KB · Views: 4
  • skin2.png
    skin2.png
    99.5 KB · Views: 5
  • skin3.png
    skin3.png
    102.1 KB · Views: 10
Is it possible to have three php versions on a vps with 4 cores and 5 ram?
Sorry, I don't know. We don't work with that low ram. Maybe not but I don't have experience, we always have a lot more ram in the servers.
If you need to stick with 7.4 for some reason, then you can keep it like you have.

You could try to build the php 8.2 seperately so you can see what is going wrong. It might be a RAM issue or missing swap issue. Be sure you have at least a 4 GB swap partition.

Try like this (if I remember correctly):
Code:
cd /usr/local/directadmin/custombuild
./build update
./build php_expert 8.2 php_fpm
this way only php 8.2 is compiled, takes less long then both and you can follow to see if any errors occur.

Should the admin change to the evolution skin in order to custombuild work properly?
Yes. For the custombuild plugin (so the GUI) you need to use the Evo skin. Directadmin removed the Custombuild plugin a couple of DA versions ago and it's now only supported from the Evo skin.

I personally never use the thing, I always use SSH myself, but that's a choice.
 
I just did the commands like you wrote. And here I get the messages. What could this be?

Package 1:pkgconfig-0.27.1-4.el7.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.2k-26.el7_9.x86_64 already installed and latest vers ion
Package systemd-devel-219-78.el7_9.7.x86_64 already installed and latest version
Package krb5-devel-1.15.1-55.el7_9.x86_64 already installed and latest version
Package libcurl-devel-7.29.0-59.el7_9.1.x86_64 already installed and latest vers ion
Package 2:libpng-devel-1.5.13-8.el7.x86_64 already installed and latest version
Package freetype-devel-2.8-14.el7_9.1.x86_64 already installed and latest versio n
Package libwebp-devel-0.3.0-11.el7.x86_64 already installed and latest version
Package libjpeg-turbo-devel-1.2.90-8.el7.x86_64 already installed and latest ver sion
Package libxslt-devel-1.1.28-6.el7.x86_64 already installed and latest version
Package libsodium-devel-1.0.18-1.el7.x86_64 already installed and latest version
Package libicu-devel-50.2-4.el7_7.x86_64 already installed and latest version
Package sqlite-devel-3.7.17-8.el7_7.1.x86_64 already installed and latest versio n
Package oniguruma-devel-6.8.2-2.el7.x86_64 already installed and latest version
download_with_cache: using cached '/usr/local/directadmin/custombuild/cache/php- 8.2.8.tar.gz' file
Extracting ...
Done.
Configuring php-8.2.8...
Patching php-fpm for per-user process grouping
patching file sapi/fpm/fpm/fpm_children.c
Hunk #1 succeeded at 454 (offset 23 lines).
Patching php-fpm to not fail on startup if User quota maxed out on socket chown
patching file sapi/fpm/fpm/fpm_unix.c
Hunk #1 succeeded at 299 (offset 64 lines).
grep: : No such file or directory
grep: : No such file or directory
Can't open : No such file or directory.
Can't open : No such file or directory.
Can't open : No such file or directory.
Can't open : No such file or directory.
Can't open : No such file or directory.
grep: : No such file or directory
grep: : No such file or directory
grep: : No such file or directory
grep: : No such file or directory
Can't open : No such file or directory.
Can't open : No such file or directory.
Can't open : No such file or directory.
Can't open : No such file or directory.
./build: line 9337: : command not found

*** There was an error while trying to configure php. Check the configure file
 
Oh the smileys where not there but I think some code is transformed into a smiley :)

And thanks for the answer.
 
old custombuild plugin UI might break the config files. if you still want to use, go change to evolution skin.

but how to change.... I don't know. I trying switch to evolution skin around 1-2 year. and then forgot everything on enhanced skin. ?‍?


somehow it could be.
Reseller Level -> Skin Manager
 
old custombuild plugin UI might break the config files. if you still want to use, go change to evolution skin.
Why? He is running the commands from SSH not from the plugin, so that error has nothing to do with using the Enhanced skin, we use the enhanced skin too.

And here I get the messages. What could this be?
Good question. Maybe you can best update DA first so the Custombuild plugin GUI will be removed from the Enhanced skin too and maybe there is a fix for the build of the newer php versions.
 
Why? He is running the commands from SSH not from the plugin, so that error has nothing to do with using the Enhanced skin, we use the enhanced skin too.
I know that,

but I just warn incase maybe he still use it for some reason that could be break change.

but for @stof problem. That error is somehow missing some configuration files.

Currently directadmin only serve new update custombuild package with DA binary.

Update to directadmin latest version result will be custombuild plugin automatic removed. It fine, just switch skin to use if you still want.
 
Back
Top