So, after that i have installed a debian as chroot, i have started to install and configure bind9.
That works perfectly to resolve some hosts in my local network.
So after that, i would like to install my an apache2 with chroot.
I dont want to use the one of the nas because i need to install some deps that if think will not be in the nas by default and will be may be quiet hard to install (https://asciimoo.github.io/searx/admin/ ... tion-basic).
So, I have installed apache2 and, now, I would like to start apache2 so my script is below :
Code: Select all
chroot $FULL_PATH /etc/init.d/bind9 start
/etc/init.d/S41lighttpd stop
chroot $FULL_PATH /etc/init.d/apache2 start
Code: Select all
[ ok ] Starting domain name service...: bind9.
Stopping lighttpd...
[....] Starting Apache httpd web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.139.1.42. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
. ok
Code: Select all
admin@AS6102T-C545:/volume1/home/admin $ netstat -a | grep 80
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8001 0.0.0.0:* LISTEN
tcp 0 0 :::8000 :::* LISTEN
tcp 0 0 :::8001 :::* LISTEN
But, this is quiet interresting :
Code: Select all
admin@AS6102T-C545:/volume1/home/admin $ netstat -a | grep www
tcp 0 0 0.0.0.0:www 0.0.0.0:* LISTEN
admin@AS6102T-C545:/volume1/home/admin $ netstat -a | grep http
tcp 0 0 0.0.0.0:https 0.0.0.0:* LISTEN
How can i start my chrooted apache2 ?
Thx