Error with rewrite_confs

Leap

Verified User
Joined
Jun 15, 2016
Messages
35
Today I installed a second php version, after which I wanted to rewrite the confs as suggested...
This however gave an error...

The output was:

Code:
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
Using a.a.a.a
b.b.b.b for your server IP
./build: line 14156: [: /usr/local/directadmin/data/admin/ips/a.a.a.a: binary operator expected
Restarting apache.

a.a.a.a is my main IP (of course this is an actual IP) and b.b.b.b is the secondary.

Anybody know what causes the above mentioned error and how to fix it?
 
Please let us know the output of:
Code:
grep -r server /usr/local/directadmin/data/admin/ips

There should be only 1 IP of type "server".
 
Code:
[root@webmakers01 ~]# grep -r server /usr/local/directadmin/data/ips
grep: /usr/local/directadmin/data/ips: No such file or directory

[root@webmakers01 ~]# grep -r server /usr/local/directadmin/data/admin/ips
/usr/local/directadmin/data/admin/ips/b.b.b.b:status=server
/usr/local/directadmin/data/admin/ips/a.a.a.a:status=server

So, both are type "server".
I can't seem to change this in the IP tab in DirectAdmin...
 
Last edited:
So I needed to change this in /usr/local/directadmin/data/admin/ips/b.b.b.b from:

Code:
reseller=
status=server

to

Code:
reseller=admin
status=owned

That seemed to solve the issue!
Thanks for the help!
 
Back
Top