Apache in linux jail not working

Status
Not open for further replies.

necrosis

Cadet
Joined
Mar 18, 2014
Messages
3
Hi,

I saw this issue raised already https://bugs.freenas.org/issues/4084

Just to say I think there is as a general issue here So just flagging in case only debian is being looked at.

I tried it on the debian, ubuntu and centos jails and all of them similar problems. The closest I got to working was in debian were I hit the bug above.

On Centos the httpd logs the following before dying on startup with no other errors

Code:
[Mon Mar 17 14:34:40 2014] [crit] (38)Function not implemented: unable to replace stderr with error_log
[Mon Mar 17 14:34:40 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 17 14:34:40 2014] [crit] (38)Function not implemented: unable to replace stderr with error_log
[Mon Mar 17 14:34:40 2014] [notice] Digest: generating secret for digest authentication ...
[Mon Mar 17 14:34:40 2014] [notice] Digest: done


With the status always being

Code:
#service httpd status
httpd dead but subsys locked
 
D

dlavigne

Guest
Linux jails are experimental and limited to 32-bit apps. Have you tried installing Apache in a plugins or a ports jail?
 

necrosis

Cadet
Joined
Mar 18, 2014
Messages
3
I am actually trying to install zoneminder which seems to be a mess on freebsd so was trying the linux jails as the way around that. So the apache problem is frustrating. I was just reporting it here to so it is noted as a general linux jail problem and not just debian.
 
D

dlavigne

Guest
You should be able to build the FreeBSD port for zoneminder. It is currently marked as broken as it does not compile on 7.x or 8.x, but should compile fine on a 9.x system. If you give it a go, let us know if it works or not.
 

necrosis

Cadet
Joined
Mar 18, 2014
Messages
3
Hi, just to get back to you, i did get zoneminder working in a standard freebsd jail.

I installed ports in this order apache22, php5 (with option for apache) mysql55-server and zoneminder.

I then did the following misc manual steps
  • install the zm database and set up the zmuser in mysql
  • updated apache config for some missing php mimetype stuff
  • updated the apache config adding in a file for the zm web console conifg (grabbed the basic config from one of the linux jail installs and changed it to freebsd paths)
  • updated the php.ini to set the default timezone,
  • renamed the zm.conf.sample to to zm.conf
  • updated rc.conf to set the apache22, mysql and zoneminder to run on start up.
I ran it but all got a load of shm errors but then realised i had to set allow.sysvipc=1 on the jail

After the sysctil setting was added, on the restart things seem to be on and I have one ip camera up and running.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi, just to get back to you, i did get zoneminder working in a standard freebsd jail.

I installed ports in this order apache22, php5 (with option for apache) mysql55-server and zoneminder.

I then did the following misc manual steps
  • install the zm database and set up the zmuser in mysql
  • updated apache config for some missing php mimetype stuff
  • updated the apache config adding in a file for the zm web console conifg (grabbed the basic config from one of the linux jail installs and changed it to freebsd paths)
  • updated the php.ini to set the default timezone,
  • renamed the zm.conf.sample to to zm.conf
  • updated rc.conf to set the apache22, mysql and zoneminder to run on start up.
I ran it but all got a load of shm errors but then realised i had to set allow.sysvipc=1 on the jail

After the sysctil setting was added, on the restart things seem to be on and I have one ip camera up and running.

Sweet! I was planning on running zoneminder on FreeBSD as well soon. I read the latest update doesn't compile yet on FreeBSD but the developers are working on it.
 
Status
Not open for further replies.
Top