Re: can't start apache 1.3 inside jail
Doh! it was a DNS issue. Put an entry for my jail in the /etc/hosts file in both the host and jail and it works like a charm. Thanks for the help. Sorry I'm such a noob and thanks for the help! On 5/25/06, Cheng-Lung Sung <[EMAIL PROTECTED]> wrote: Have you checked log file? On Wed, May 24, 2006 at 01:53:35PM -0400, Andy Greenwood wrote: > I've built and installed apache13 from ports in my jail, but apachectl > start just gives me > > [EMAIL PROTECTED] ~]# apachectl start > /usr/local/sbin/apachectl start: httpd could not be started > > and httpd -X exits immediately with no output. I've tried to run truss > on apachectl start, but I'm not really sure on how to interpret the > output (attached). Any help would be much appreciated. > > [EMAIL PROTECTED] ~]# uname -a > FreeBSD prison.example.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May > 21 08:46:15 EDT 2006 > [EMAIL PROTECTED]:/jail/obj/jail/src/sys/BEHEMOTH i386 -- Cheng-Lung Sung - clsung@ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't start apache 1.3 inside jail
Have you checked log file? On Wed, May 24, 2006 at 01:53:35PM -0400, Andy Greenwood wrote: > I've built and installed apache13 from ports in my jail, but apachectl > start just gives me > > [EMAIL PROTECTED] ~]# apachectl start > /usr/local/sbin/apachectl start: httpd could not be started > > and httpd -X exits immediately with no output. I've tried to run truss > on apachectl start, but I'm not really sure on how to interpret the > output (attached). Any help would be much appreciated. > > [EMAIL PROTECTED] ~]# uname -a > FreeBSD prison.example.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May > 21 08:46:15 EDT 2006 > [EMAIL PROTECTED]:/jail/obj/jail/src/sys/BEHEMOTH i386 -- Cheng-Lung Sung - clsung@ pgp7NSSced9SM.pgp Description: PGP signature
can't start apache 1.3 inside jail
I've built and installed apache13 from ports in my jail, but apachectl start just gives me [EMAIL PROTECTED] ~]# apachectl start /usr/local/sbin/apachectl start: httpd could not be started and httpd -X exits immediately with no output. I've tried to run truss on apachectl start, but I'm not really sure on how to interpret the output (attached). Any help would be much appreciated. [EMAIL PROTECTED] ~]# uname -a FreeBSD prison.example.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 21 08:46:15 EDT 2006 [EMAIL PROTECTED]:/jail/obj/jail/src/sys/BEHEMOTH i386 # truss httpd -X mmap(0x0,3608,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 671715328 (0x28099000) munmap(0x28099000,0xe18) = 0 (0x0) __sysctl(0xbfbfe778,0x2,0x28095998,0xbfbfe774,0x0,0x0) = 0 (0x0) mmap(0x0,32768,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 671715328 (0x28099000) issetugid() = 0 (0x0) open("/etc/libmap.conf",0x0,0666)= 3 (0x3) fstat(3,0xbfbfde90) = 0 (0x0) read(0x3,0x2809d000,0x1000) = 0 (0x0) close(3) = 0 (0x0) open("/var/run/ld-elf.so.hints",0x0,00) = 3 (0x3) read(0x3,0xbfbfe740,0x80)= 128 (0x80) lseek(3,0x80,SEEK_SET) = 128 (0x80) read(0x3,0x2809f000,0x24)= 36 (0x24) close(3) = 0 (0x0) access("/usr/local/lib/libcrypt.so.3",0) ERR#2 'No such file or directory' access("/usr/local/lib/mysql/libcrypt.so.3",0) ERR#2 'No such file or directory' access("/lib/libcrypt.so.3",0) = 0 (0x0) open("/lib/libcrypt.so.3",0x0,00)= 3 (0x3) fstat(3,0xbfbfe780) = 0 (0x0) read(0x3,0x280948e0,0x1000) = 4096 (0x1000) mmap(0x0,16384,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) = 671748096 (0x280a1000) mprotect(0x280a3000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mprotect(0x280a3000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) mmap(0x280a4000,4096,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0x3000) = 671760384 (0x280a4000) close(3) = 0 (0x0) access("/usr/local/lib/libexpat.so.6",0) = 0 (0x0) open("/usr/local/lib/libexpat.so.6",0x0,027757763770) = 3 (0x3) fstat(3,0xbfbfe780) = 0 (0x0) read(0x3,0x280948e0,0x1000) = 4096 (0x1000) mmap(0x0,122880,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) = 671764480 (0x280a5000) mprotect(0x280bf000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mprotect(0x280bf000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) mmap(0x280c,12288,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0x1b000) = 671875072 (0x280c) close(3) = 0 (0x0) access("/usr/local/lib/libc.so.6",0) = 0 (0x0) open("/usr/local/lib/libc.so.6",0x0,027757763770) = 3 (0x3) fstat(3,0xbfbfe780) = 0 (0x0) read(0x3,0x280948e0,0x1000) = 4096 (0x1000) mmap(0x0,856064,(0x5)PROT_READ|PROT_EXEC,(0x20002)MAP_NOCORE|MAP_PRIVATE,3,0x0) = 671887360 (0x280c3000) mprotect(0x2817b000,4096,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mprotect(0x2817b000,4096,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) mmap(0x2817c000,20480,(0x3)PROT_READ|PROT_WRITE,(0x12)MAP_FIXED|MAP_PRIVATE,3,0xb9000) = 672645120 (0x2817c000) mmap(0x28181000,77824,(0x3)PROT_READ|PROT_WRITE,(0x1012)MAP_ANON|MAP_FIXED|MAP_PRIVATE,-1,0x0) = 672665600 (0x28181000) close(3) = 0 (0x0) mmap(0x0,36864,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 672743424 (0x28194000) sysarch(0xa,0xbfbfe7f0) = 0 (0x0) mmap(0x0,4696,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x1258)= 0 (0x0) mmap(0x0,520,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x208) = 0 (0x0) mmap(0x0,936,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x3a8) = 0 (0x0) mprotect(0x280c3000,757760,(0x7)PROT_READ|PROT_WRITE|PROT_EXEC) = 0 (0x0) mmap(0x0,21800,(0x3)PROT_READ|PROT_WRITE,(0x1000)MAP_ANON,-1,0x0) = 672780288 (0x2819d000) munmap(0x2819d000,0x5528)= 0 (0x0) mprotect(0x280c3000,757760,(0x5)PROT_READ|PROT_EXEC) = 0 (0x0) sigprocmask(0x1,0x28094820,0xbfbfe7c0) = 0 (0x0) sigprocmask(0x3,0x28094830,0x0) = 0 (0x0) readlink("/etc/malloc.conf","A<",63) = 2 (0x2) issetugid() = 0 (0x0) mmap(0x0,4096,(0x3)PROT_READ|PROT_WRITE,(0x1002)MAP_ANON|MAP_PRIVATE,-1,0x0) = 672780288 (0x2819d000) break(0x80
Re: can't start Apache 1.3 server in freeBSD 4.9 release #0
On Sun, 12 Sep 2004, Sujit Dey wrote: > 127.0.0.1, but using "/usr/local/sbin/apachectl start", can't start > the Apache server. It is giving httpd can not be started. I followed > [alert] mod_unique_id: unable to gethostbyname() Set the hostname in /etc/rc.conf (add 'hostname='www.foo.com' in the /etc/rc.conf file), # /etc/rc.conf ... hostname="www.foo.com" and/or add it to the /etc/hosts file as # /etc/hosts ::1 localhost localhost.foo.com www.foo.com 127.0.0.1 localhost localhost.foo.com www.foo.com and/or edit /usr/local/etc/apache/httpd.conf and uncomment and set the value in 'ServerName' in the top 1/3 of the file: #/usr/local/etc/apache/httpd.conf # # ServerName allows you to set a host name which is sent back to clients for # your server if it's different than the one the program would get (i.e., use # "www" instead of the host's real name). # # Note: You cannot just invent host names and hope they work. The name you # define here must be a valid DNS name for your host. If you don't understand # this, ask your network administrator. # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address (e.g., http://123.45.67.89/) # anyway, and this will make redirections work in a sensible way. # # 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your # machine always knows itself by this address. If you use Apache strictly for # local testing and development, you may use 127.0.0.1 as the server name. # ServerName www.foo.com Dw. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't start Apache 1.3 server in freeBSD 4.9 release #0
On Sunday 12 September 2004 04:29, Sujit Dey wrote: > After installing Apache 1.3, i was configuring in freeBSD following > the procedure mentioned in FreeBSD Handbook( section 23.7 Apache > HTTP Server). i've tried ServerName (in httpd.conf ) with > localhost, 127.0.0.1, but using "/usr/local/sbin/apachectl start", > can't start the Apache server. It is giving httpd can not be > started. I followed same procedure in Windows and able to start > Apache server. please help me or give me some clue for how to start > the Apache server. > > httpd log file contails following entry... > [alert] mod_unique_id: unable to gethostbyname() Perhaps you need to set the machine's hostname? hostname="some.fqdn.here" in /etc/rc.conf, or just using the hostname command from a shell as root. -- Thanks, Josh Paetzel ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
can't start Apache 1.3 server in freeBSD 4.9 release #0
After installing Apache 1.3, i was configuring in freeBSD following the procedure mentioned in FreeBSD Handbook( section 23.7 Apache HTTP Server). i've tried ServerName (in httpd.conf ) with localhost, 127.0.0.1, but using "/usr/local/sbin/apachectl start", can't start the Apache server. It is giving httpd can not be started. I followed same procedure in Windows and able to start Apache server. please help me or give me some clue for how to start the Apache server. httpd log file contails following entry... [alert] mod_unique_id: unable to gethostbyname() ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
can't start Apache 1.3 server in freeBSD 4.9 release #0
After installing Apache 1.3, i was configuring in freeBSD following the procedure mentioned in FreeBSD Handbook( section 23.7 Apache HTTP Server). i've tried ServerName (in httpd.conf ) with localhost, 127.0.0.1, but using "/usr/local/sbin/apachectl start", can't start the Apache server. It is giving httpd can not be started. I followed same procedure in Windows and able to start Apache server. please help me or give me some clue for how to start the Apache server. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't start apache
edit your /etc/hosts to look something like this 127.0.0.1 localhost.myname.com localhost 192.168.1.10 anyname.myname.com anyname 192.168.1.5anyname.myname.com. or try running sysinstall or /stand/sysinstall and reconfig your network card. restart the system Pete Renshaw > Hi, > I just installed freeBSD for the first time and now I'm trying to > get apache running. When running "apachectl start" I get the > following error: > > "Could not determine the server's fully qualified domain name, using > 127.0.0.1 for Servername httpd not running, trying to start > (13) Permission denied: make_sock: Could not bind to address [::]:80 > no listening sockets available, shutting down Unable to open logs" > > When running "sudo apachectl start" I only get this: > > "Could not determine the server's fully qualified domain name, using > 127.0.0.1 for Servername" > > Any help or ideas would be apprecciated, thanks, > Holger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't start apache
On 09/17/2003 04:33 AM [EMAIL PROTECTED] (Eugene Lee) wrote: >Again, this is a warning, not an error. With sudo, "apachectl start" >gets run as root, so you do not encounter the previous errors. And at >this point, Apache is running. Thanks, I doublechecked and Apache is really running. I suppose that the ServerName does not matter, if I'll be using it as a local Webserver. Thanks for your quick help, Holger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't start apache
On Wed, Sep 17, 2003 at 11:11:49AM +0200, H. Bartel wrote: : : I just installed freeBSD for the first time and now I'm trying to get : apache running. When running "apachectl start" I get the following : error: : : "Could not determine the server's fully qualified domain name, using 127.0.0.1 for Servername This is a warning, not an error. Apache is still starting up. : httpd not running, trying to start : (13) Permission denied: make_sock: Could not bind to address [::]:80 : no listening sockets available, shutting down You must be root in order to bind to ports below 1024, so you must run "apachectl start" as root. : Unable to open logs" Another root thing, trying to open the Apache logs in a directory that your normal account can't access but the root account can access. : When running "sudo apachectl start" I only get this: : : "Could not determine the server's fully qualified domain name, using 127.0.0.1 for Servername" Again, this is a warning, not an error. With sudo, "apachectl start" gets run as root, so you do not encounter the previous errors. And at this point, Apache is running. -- Eugene Lee eugene at fsck dot net ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
can't start apache
Hi, I just installed freeBSD for the first time and now I'm trying to get apache running. When running "apachectl start" I get the following error: "Could not determine the server's fully qualified domain name, using 127.0.0.1 for Servername httpd not running, trying to start (13) Permission denied: make_sock: Could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs" When running "sudo apachectl start" I only get this: "Could not determine the server's fully qualified domain name, using 127.0.0.1 for Servername" Any help or ideas would be apprecciated, thanks, Holger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"