Can't recomplile PHP with custombuild

RaspPI

New member
Joined
Oct 17, 2020
Messages
7
Hello,

I'm creating a Raspberry PI web server, I've installed Ubuntu server 18.04.5 on it and opened the needing ports on my Ethernet decoder.

I followed the steps from DA to install everything and at the end of the installation, I get this error https://gyazo.com/f72e31b222379329098226076b69258f. If I would run the command, I get this error https://gyazo.com/8493dd1bc6de325f5324ee599387894d. It also doesn't work when running it with sudo.

Due to this, I see that DA will not launch when I reboot the server.

Have any of you some expertise on how I could fix this issue?

Thanks in advance!
 
Update:

I managed to run the commands from above by giving me write access in those files. However, I still confront problems. https://gyazo.com/b95ad3d59cf23e0e7b25a39874a05277

Now I added my domain as server.domain.com do I need to set the DNS records of my used domain to my LAN server IP or is it enough to just add a DNS record that links the server. part to my IP?
 
It looks like you're trying to do all this as non-root. You need to be root to install the software in the correct locations, and start services.
 
It looks like you're trying to do all this as non-root. You need to be root to install the software in the correct locations, and start services.
Thanks for your response!

I've tried it on the Ubuntu user which is root by default on Ubuntu Servers, but still can't recompile PHP with custombuild.
 
Thanks for your response!

I've tried it on the Ubuntu user which is root by default on Ubuntu Servers, but still can't recompile PHP with custombuild.
To clarify an error I have:

I need to recompile the PHP version which is 7.3 with the "cd /usr/local/directadmin/custombuild" but when I want to access it even with sudo, It says that I don't have permission to access the directory so I can't use the ./build command.

Does anyone have an idea on how I could access the directory?
 
sudo su
and do it as root
Thanks for the reply!

I've tried it and was able to access the custombuild directory, I ran the "./build all d" command and at the end it tells me it can't find zlib. So I installed it with sudo and tried it again. The error keeps coming up however, zlib is installed on my system.
 
zlib is installed on my system.
zlib is installed with custombuild
not apt. I can't tell if you used apt or ./build

./build zlib

If you want to see all the items CB maintains just do
./build
 
zlib is installed with custombuild
not apt. I can't tell if you used apt or ./build

./build zlib

If you want to see all the items CB maintains just do
./build
Thanks for your reply!

I tried to install it via "./build zlib" it installed but after that, I get the error again. This is the error:
b5d3d10b8084f7e172c61e2ba80928ae.png

With this, I tried the apt-get command that I got from the terminal but that gives the same error over and over.
 
Assume you installed all of the pre-install packages

Code:
apt-get update
apt-get install wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1

Do you get an error if you run them again?
 
**** SPECIAL NOTICE for non-root ssh logins ****
If logging in as a user other than admin or root (using su to gain root access):
You *must* add "AllowUsers username" to /etc/ssh/sshd_config before you log out from root or you'll lose root on the server forever, and you'll have to format.
I assume you done this?

Note: not sure why this is needed for a 'su', I assume DA actually needs root access....
 
Last edited:
Assume you installed all of the pre-install packages

Code:
apt-get update
apt-get install wget gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libperl4-corelibs-perl libwww-perl libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev cron bzip2 zip automake autoconf libtool cmake pkg-config python libdb-dev libsasl2-dev \
libncurses5 libncurses5-dev libsystemd-dev bind9 dnsutils quota patch logrotate rsyslog libc6-dev libexpat1-dev \
libcrypt-openssl-rsa-perl libnuma-dev libnuma1

Do you get an error if you run them again?
Yes, I ran all the pre-install packages and tried it again, and no errors there.

Also, didn't know DA supported ARM CPUs.
I saw a thread online from someone who has DA installed on a Raspberry PI 3 so I believe it also should work on mine.

I assume you done this?

Note: not sure why this is needed for a 'su', I assume DA actually needs root access....
Well, I'm running an Ubuntu server which has user "ubuntu" as root. You can't log in on user "root" as it's protected, instead, Ubuntu has created the user "ubuntu" which is the same as root.
 
Well, I'm running an Ubuntu server which has user "ubuntu" as root. You can't log in on user "root" as it's protected, instead, Ubuntu has created the user "ubuntu" which is the same as root.
Unless that user has uid 0 it is not a root account. Normally root-logins are not allowed over SSH, and instead you log in with a different default user (in your case 'ubuntu') and then become root afterwards, in order to escalate your privileges to actually manage the server. If your 'ubuntu' user has uid 0, then ignore everything I just said. :)
 
I would just try a full supported OS like Debian 9 or 10. Then see what happens.
 
If the ubunto user acted as root, why not just use root..... I mean, Debian/et al devs must have added a different SSH login other than root for a reason
 
Back
Top