PDA

View Full Version : Perfect setup fails at /etc/init.d/bind9 start


unsichtbare
10th June 2008, 07:27
I am trying to build a new ISPConfig on Ubuntu 8.04 but Bind will not start after executing the steps in "The Perfect Setup"
Jun 9 21:20:43 clients2 named[10697]: starting BIND 9.4.2 -u bind -t /var/lib/named
Jun 9 21:20:43 clients2 named[10697]: found 1 CPU, using 1 worker thread
Jun 9 21:20:43 clients2 named[10697]: loading configuration from '/etc/bind/named.conf'
Jun 9 21:20:43 clients2 named[10697]: none:0: open: /etc/bind/named.conf: permission denied
Jun 9 21:20:43 clients2 named[10697]: loading configuration: permission denied
Jun 9 21:20:43 clients2 named[10697]: exiting (due to fatal error)
Jun 9 21:20:43 clients2 kernel: [15545.364629] audit(1213071643.969:7): type=1503 operation="inode_permission" requested_mask="r::" denied_mask="r::" name="/var/lib/named/etc/bind/named.conf" pid=10698 profile="/usr/sbin/named" namespace="default"

till
10th June 2008, 12:16
Please post the output of:

ls -la /etc/bind/named.conf

venco
10th June 2008, 12:47
I had the same problem: Bind 9 won't start,
The solution I did : After step 10 (Disable AppArmor) of the perfect Server Setup I totally removed AppArmor with the command;

apt-get purge apparmor

After that Bind9 will start.

I'll hope it's the solution for you.

unsichtbare
10th June 2008, 16:22
-rw-r--r-- 1 bind bind 907 2008-04-09 12:42 /etc/bind/named.conf

I was, however, able to get bind to start by completely re-starting the server.

I think AppArmor is the problem. It seems to re-enable at almost every step in the installation.

unsichtbare
10th June 2008, 16:51
Now when installing PHP:

apt-get install libapache2-mod-php5 libapache2-mod-ruby php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-json is a virtual package provided by:
php5-common 5.2.4-2ubuntu5.1
You should explicitly select one to install.
E: Package php5-json has no installation candidate

daveb
10th June 2008, 18:33
You should be able to remove php5-json from your apt-get install list since json is now included in the php5 package.