Hello,
I have an issue with starting apache24 in a jail.
If I repeat it in short, then
/var/log/httpd-error.log and /var/log/httpd-access.log are empty. In /var/log/messages there is nothing regarding to Apache.
/etc/rc.conf on the host machine:
/etc/jail.conf
/jails/jailsrv/etc/rc.conf:
I don't know where else to look.
I have an issue with starting apache24 in a jail.
Code:
root@jailsrv:~ # service apache24 start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@jailsrv:~ # service apache24 status
apache24 is not running.
Code:
root@jailsrv:~ # service apache24 start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
(48)Address already in use: AH00072: make_sock: could not bind to address 192.168.128.25:80
no listening sockets available, shutting down
AH00015: Unable to open logs
/usr/local/etc/rc.d/apache24: WARNING: failed to start apache24
/etc/rc.conf on the host machine:
Code:
hostname="comp.domain"
ifconfig_bce0="inet 192.168.128.11 netmask 255.255.252.0"
cloned_interfaces="${cloned_interfaces} lo1"
defaultrouter="192.168.128.2"
ipv6_activate_all_interfaces="NO"
fschk_y_enable="YES"
background_fsck="NO"
sendmail_enable="NO"
pf_enable="YES"
sshd_enable="YES"
sshd_flags="-4 -u0"
syslogd_flags="-ss -cc"
openntpd_enable="YES"
openntpd_flags="-s"
powerd_enable="YES"
mysql_enable="YES"
mysql_args="--skip-name-resolve --skip-external-locking"
zabbix_server_enable="YES"
zabbix_agentd_enable="YES"
apache24_enable="YES"
dumpdev="NO"
jail_enable="YES"
jail_list="jailsrv"
devfs_load_rulesets="YES"
Code:
ip6 = "disable";
allow.mount;
mount.devfs;
devfs_ruleset = 4;
allow.noset_hostname;
exec.clean;
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
jailsrv {
host.hostname = "jailsrv";
path = "/jails/jailsrv";
ip4.addr += "lo1|127.0.1.1/32";
ip4.addr += "bce0|192.168.128.25/32";
allow.raw_sockets;
allow.sysvipc;
}
Code:
sshd_enable="YES"
sshd_flags="-4 -u0"
syslogd_flags="-ss -cc"
apache24_enable="YES"