ericovk
Verified User
Hi,
I have done the install before on CentOS 6. But now I am getting a couple of errors and DA won't start.
The errors during install are:
Running on CentOS7 (on a Virtualbox VM):
My license has been set on "OS CentOS 7 64-bit", so that's looking good.
I tried to install the apache/nginx combo.
After a full reinstall, I get the same errors
It seems like the installation hasn't been completed. Files are missing.
Journal gives:
I have done the install before on CentOS 6. But now I am getting a couple of errors and DA won't start.
Code:
# service directadmin status
Redirecting to /bin/systemctl status directadmin.service
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: disabled)
Active: failed (Result: resources) since Thu 2016-07-21 19:10:17 CEST; 26s ago
Docs: http://www.directadmin.com
Process: 1855 ExecStart=/usr/local/directadmin/directadmin d (code=exited, status=0/SUCCESS)
Jul 21 19:10:17 s2.thiscould.be systemd[1]: Starting DirectAdmin Web Control Panel...
Jul 21 19:10:17 s2.thiscould.be directadmin[1855]: failed to open pipe log ((null)): Bad address
Jul 21 19:10:17 s2.thiscould.be systemd[1]: PID file /run/directadmin.pid not readable (yet?) after start.
Jul 21 19:10:17 s2.thiscould.be systemd[1]: Failed to start DirectAdmin Web Control Panel.
Jul 21 19:10:17 s2.thiscould.be systemd[1]: Unit directadmin.service entered failed state.
Jul 21 19:10:17 s2.thiscould.be systemd[1]: directadmin.service failed.
The errors during install are:
Code:
dynamic.c: In function 'iptrack_find_ip_or_shift':
dynamic.c:47:17: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier
from pointer target type [enabled by default]
STORAGE_SIN_ADDR(iptrack_list[c].ip) == STORAGE_SIN_ADDR(*ip)) {
^
In file included from ftpd.h:118:0,
from dynamic.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
dynamic.c: In function 'iptrack_get':
dynamic.c:78:17: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier
from pointer target type [enabled by default]
STORAGE_SIN_ADDR(iptrack_list[c].ip) == STORAGE_SIN_ADDR(*ip)) {
^
In file included from ftpd.h:118:0,
from dynamic.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
======
tpd.c: In function 'checkvalidaddr':
ftpd.c:537:9: warning: passing argument 1 of 'storage_sin_addr6' discards 'const' qualifier fr
om pointer target type [enabled by default]
if (IN6_IS_ADDR_MULTICAST(&STORAGE_SIN_ADDR6_NF(*addr)) ||
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:117:18: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
struct in6_addr *storage_sin_addr6(struct sockaddr_storage * const ss);
^
ftpd.c:543:9: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier fro
m pointer target type [enabled by default]
if (ntohl(STORAGE_SIN_ADDR(*addr)) == INADDR_ANY ||
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c:544:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier fr
om pointer target type [enabled by default]
ntohl(STORAGE_SIN_ADDR(*addr)) == INADDR_NONE ||
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c:545:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
ntohl(STORAGE_SIN_ADDR(*addr)) == INADDR_BROADCAST ||
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c:546:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
IN_MULTICAST(ntohl(STORAGE_SIN_ADDR(*addr))) ||
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c:547:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
IN_BADCLASS(ntohl(STORAGE_SIN_ADDR(*addr)))) {
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c: In function 'addrcmp':
ftpd.c:593:9: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
if (STORAGE_SIN_ADDR(*s1) == STORAGE_SIN_ADDR(*s2)) {
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c:593:9: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualifier from pointer target type [enabled by default]
if (STORAGE_SIN_ADDR(*s1) == STORAGE_SIN_ADDR(*s2)) {
^
In file included from ftpd.h:118:0,
from ftpd_p.h:4,
from ftpd.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
ftpd.c: In function 'updatepidfile':
ftpd.c:5236:9: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
(void) ftruncate(fd, (off_t) 0);
^
ftpd.c: In function 'accept_client':
ftpd.c:5330:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
(void) write(clientfd, line, strlen(line));
^
ftpd.c:5346:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
(void) write(clientfd, line, strlen(line));
^
======
log_puredb.c: In function 'access_ip_match':
log_puredb.c:108:13: warning: passing argument 1 of 'storage_sin_addr' discards 'const' qualif
ier from pointer target type [enabled by default]
saip_raw = (const unsigned char *) &(STORAGE_SIN_ADDR(*sa));
^
In file included from ftpd.h:118:0,
from log_puredb.c:5:
ipstack.h:116:17: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage * const'
struct in_addr *storage_sin_addr(struct sockaddr_storage * const ss);
^
=====
privsep.c: In function 'privsep_privpart_bindresport':
privsep.c:208:13: warning: passing argument 1 of 'storage_port6' discards 'const' qualifier fr
om pointer target type [enabled by default]
STORAGE_PORT6(query->bindresport.ss) = htons(*portlistpnt);
^
In file included from ftpd.h:118:0,
from privsep.c:4:
ipstack.h:115:12: note: expected 'struct sockaddr_storage * const' but argument is of type 'co
nst struct sockaddr_storage *'
in_port_t *storage_port6(struct sockaddr_storage * const ss);
^
privsep.c:210:13: warning: passing argument 1 of 'storage_port' discards 'const' qualifier fro
m pointer target type [enabled by default]
STORAGE_PORT(query->bindresport.ss) = htons(*portlistpnt);
^
In file included from ftpd.h:118:0,
from privsep.c:4:
ipstack.h:114:12: note: expected 'struct sockaddr_storage * const' but argument is of type 'const struct sockaddr_storage *'
in_port_t *storage_port(struct sockaddr_storage * const ss);
^
====
quotas.c: In function 'quota_update':
quotas.c:120:13: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
(void) ftruncate(fd, (off_t) 0);
^
Running on CentOS7 (on a Virtualbox VM):
Code:
# cat /etc/*release*
CentOS Linux release 7.2.1511 (Core)
Derived from Red Hat Enterprise Linux 7.2 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.2.1511 (Core)
CentOS Linux release 7.2.1511 (Core)
cpe:/o:centos:centos:7
My license has been set on "OS CentOS 7 64-bit", so that's looking good.
I tried to install the apache/nginx combo.
After a full reinstall, I get the same errors
Code:
./build all d
It seems like the installation hasn't been completed. Files are missing.
Code:
# /usr/local/directadmin/custombuild/./build rewrite_confs
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
/usr/local/directadmin/custombuild/./build: line 11985: [: : integer expression expected
grep: /usr/local/directadmin/conf/directadmin.conf: No such file or directory
/usr/local/directadmin/custombuild/./build: line 11988: [: : integer expression expected
grep: /usr/local/directadmin/data/admin/ips: No such file or directory
Using x.x.x.x for your server IP
ls: cannot access /usr/local/directadmin/data/users/*/nginx.conf: No such file or directory
ls: cannot access /usr/local/directadmin/data/users/*/httpd.conf: No such file or directory
Job for php-fpm70.service failed because the control process exited with error code. See "systemctl status php-fpm70.service" and "journalctl -xe" for details.
Job for php-fpm56.service failed because the control process exited with error code. See "systemctl status php-fpm56.service" and "journalctl -xe" for details.
Found /usr/local/directadmin/custombuild/mod_aclr2-1.0.0.tar.gz
Extracting /usr/local/directadmin/custombuild/mod_aclr2-1.0.0.tar.gz...
Installing mod_aclr2-1.0.0...
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -I/usr/local/include -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_aclr2.lo mod_aclr2.c && touch mod_aclr2.slo
/var/www/build/libtool --silent --mode=link gcc -std=gnu99 -L/usr/local/lib -o mod_aclr2.la -rpath /usr/lib/apache -module -avoid-version mod_aclr2.lo
/var/www/build/instdso.sh SH_LIBTOOL='/var/www/build/libtool' mod_aclr2.la /usr/lib/apache
/var/www/build/libtool --mode=install install mod_aclr2.la /usr/lib/apache/
libtool: install: install .libs/mod_aclr2.so /usr/lib/apache/mod_aclr2.so
libtool: install: install .libs/mod_aclr2.lai /usr/lib/apache/mod_aclr2.la
libtool: install: install .libs/mod_aclr2.a /usr/lib/apache/mod_aclr2.a
libtool: install: chmod 644 /usr/lib/apache/mod_aclr2.a
libtool: install: ranlib /usr/lib/apache/mod_aclr2.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/lib/apache
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/lib/apache/mod_aclr2.so
[activating module `aclr' in /etc/httpd/conf/httpd.conf]
mod_aclr2 has been installed successfully.
Restarting apache.
Checking to ensure /etc/httpd/conf/ssl.crt/server.ca is set.
ls: cannot access /usr/local/directadmin/data/users/*/nginx.conf: No such file or directory
ls: cannot access /usr/local/directadmin/data/users/*/httpd.conf: No such file or directory
grep: /usr/local/directadmin/data/admin/ips: No such file or directory
Using x.x..x.x for your server IP
Using x.x.x.x for your server IP
Job for php-fpm70.service failed because the control process exited with error code. See "systemctl status php-fpm70.service" and "journalctl -xe" for details.
Job for php-fpm56.service failed because the control process exited with error code. See "systemctl status php-fpm56.service" and "journalctl -xe" for details.
Restarting nginx.
Journal gives:
Code:
Unregistered Authentication Agent for unix-process:3612:31835 (system bus name :1.59, object path /org/freedesktop/PolicyKit1/Authen