httpd could not be started

2008-07-15 Thread Тарас
Hi!
When I run Apache:

/usr/local/sbin/apachectl start: httpd could not be started

httpd-error.log
[Tue Jul 15 10:35:46 2008] [alert] mod_unique_id: unable to gethostbyname()
 
httpd.pid don't exist.

С уважением. Тарас Голуб

-- реклама ---
Домен БЕСПЛАТНО!
С хостинг-планом на http://www.hostpro.ua

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2008-07-15 Thread Jos Chrispijn

Тарас wrote:

Hi!
When I run Apache:

/usr/local/sbin/apachectl start: httpd could not be started

httpd-error.log
[Tue Jul 15 10:35:46 2008] [alert] mod_unique_id: unable to gethostbyname()
 
httpd.pid don't exist.
  

What is your question again?

-- Jos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2008-07-15 Thread N. Raghavendra
At 2008-07-15T11:01:40+03:00, Тарас wrote:

 /usr/local/sbin/apachectl start: httpd could not be started

 httpd-error.log
 [Tue Jul 15 10:35:46 2008] [alert] mod_unique_id: unable to gethostbyname()

If there's no entry for your hostname in `/etc/hosts', adding one may
help:

127.0.0.1   localhost localhost.example.net
192.168.8.10foo.example.net   foo

Raghavendra.

-- 
N. Raghavendra [EMAIL PROTECTED] | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


httpd could not be started

2006-01-13 Thread Steven Narmontas
I'm entirely new to FreeBSD, but have a fair amount of Linux 
experience.

I installed FreeBSD 6.0 (Production Release) on an oldish i386 
system.  During the install, I asked to install ALL.  The 
install went flawlessly.

I need Apache on this system for some software development, so I 
followed these instructions I found at:  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 
:

# pkg_add -r cvsup-without-gui
# cvsup -L 2 -h cvsup.FreeBSD.org 
/usr/share/examples/cvsup/ports-supfile
# cd /usr/ports/www/apache13
# make
# make install

Everything to this point went smoothly!  I edited 
/usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the 
IP address of the machine. However, when I try to start apache I 
get:

#/usr/local/sbin/apachectl start
/usr/local/sbin/apachectl start: httpd could not be started

I can't start apache.  Here's a configtest:

#/usr/local/sbin/apachectl configtest
Syntax OK


Apache also won't start if I bypass the apachectl script and start 
it directly. However it doesn't report any errors either:

# /usr/local/sbin/httpd
#


Everything up above is with a completely fresh install of FreeBSD 
6.  I didn't mess around with anything on the system.  I followed 
the above steps exactly. (As I side note, I've struggled with this 
for two days, and have installed FreeBSD at least 6 times trying 
differnet things.  I can't get Apache to start. On previous 
installs, I tried using apache22 with the same results.)

Does anyone have any suggestions on how to get ANY version of 
Apache running on a new install of FreeBSD 6?

Thanks,
Steven Narmontas






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: httpd could not be started

2006-01-13 Thread Kiffin Gish
On Fri, 2006-01-13 at 09:55 -0800, Steven Narmontas wrote:
 I'm entirely new to FreeBSD, but have a fair amount of Linux 
 experience.
 
 I installed FreeBSD 6.0 (Production Release) on an oldish i386 
 system.  During the install, I asked to install ALL.  The 
 install went flawlessly.
 
 I need Apache on this system for some software development, so I 
 followed these instructions I found at:  
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 
 :
 
 # pkg_add -r cvsup-without-gui
 # cvsup -L 2 -h cvsup.FreeBSD.org 
 /usr/share/examples/cvsup/ports-supfile
 # cd /usr/ports/www/apache13
 # make
 # make install
 
 Everything to this point went smoothly!  I edited 
 /usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the 
 IP address of the machine. However, when I try to start apache I 
 get:
 
 #/usr/local/sbin/apachectl start
 /usr/local/sbin/apachectl start: httpd could not be started
 

Maybe httpd-error.log contains some suspicious-looking error messages?

[snip]

-- 
Kiffin Gish [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread kalin mintchev

what does the httpd log say?

 I'm entirely new to FreeBSD, but have a fair amount of Linux
 experience.

 I installed FreeBSD 6.0 (Production Release) on an oldish i386
 system.  During the install, I asked to install ALL.  The
 install went flawlessly.

 I need Apache on this system for some software development, so I
 followed these instructions I found at:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
 :

 # pkg_add -r cvsup-without-gui
 # cvsup -L 2 -h cvsup.FreeBSD.org
 /usr/share/examples/cvsup/ports-supfile
 # cd /usr/ports/www/apache13
 # make
 # make install

 Everything to this point went smoothly!  I edited
 /usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the
 IP address of the machine. However, when I try to start apache I
 get:

 #/usr/local/sbin/apachectl start
 /usr/local/sbin/apachectl start: httpd could not be started

 I can't start apache.  Here's a configtest:

 #/usr/local/sbin/apachectl configtest
 Syntax OK


 Apache also won't start if I bypass the apachectl script and start
 it directly. However it doesn't report any errors either:

 # /usr/local/sbin/httpd
 #


 Everything up above is with a completely fresh install of FreeBSD
 6.  I didn't mess around with anything on the system.  I followed
 the above steps exactly. (As I side note, I've struggled with this
 for two days, and have installed FreeBSD at least 6 times trying
 differnet things.  I can't get Apache to start. On previous
 installs, I tried using apache22 with the same results.)

 Does anyone have any suggestions on how to get ANY version of
 Apache running on a new install of FreeBSD 6?

 Thanks,
 Steven Narmontas






 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


-- 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Luke Bakken
 #/usr/local/sbin/apachectl start
 /usr/local/sbin/apachectl start: httpd could not be started

 Apache also won't start if I bypass the apachectl script and start
 it directly. However it doesn't report any errors either:

Some ideas, I may be off base here:

1. Is there anything being written to the error_log file?
2. Can you start Apache with the -F argument to make it stay in the
foreground? Any output there?

Luke
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Greg Barniskis

Steven Narmontas wrote:
I'm entirely new to FreeBSD, but have a fair amount of Linux 
experience.


I installed FreeBSD 6.0 (Production Release) on an oldish i386 
system.  During the install, I asked to install ALL.  The 
install went flawlessly.


I need Apache on this system for some software development, so I 
followed these instructions I found at:  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 
:


# pkg_add -r cvsup-without-gui
# cvsup -L 2 -h cvsup.FreeBSD.org 
/usr/share/examples/cvsup/ports-supfile

# cd /usr/ports/www/apache13
# make
# make install

Everything to this point went smoothly!  


As well it should have, since you followed correct procedure. =)

 I edited
/usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the 
IP address of the machine. However, when I try to start apache I 
get:


#/usr/local/sbin/apachectl start
/usr/local/sbin/apachectl start: httpd could not be started


[snip]

Does anyone have any suggestions on how to get ANY version of 
Apache running on a new install of FreeBSD 6?


Apache and most other add-on daemons on FreeBSD require that you 
explicitly enable them to run in /etc/rc.conf. Have you got a line


apache2_enable=YES

in your rc.conf?

The need for this as well as the proper syntax should be noted in 
the file /usr/ports/www/apache2/pkg-msg. For any other port you 
install there's probably gold nuggets of info in its pkg-msg file. 
This stuff displays during the make install, but then so does 
several K of other info so it's not hard to miss these things.


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Frank Staals

Greg Barniskis wrote:


Steven Narmontas wrote:


I'm entirely new to FreeBSD, but have a fair amount of Linux experience.

I installed FreeBSD 6.0 (Production Release) on an oldish i386 
system.  During the install, I asked to install ALL.  The install 
went flawlessly.


I need Apache on this system for some software development, so I 
followed these instructions I found at:  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 
:


# pkg_add -r cvsup-without-gui
# cvsup -L 2 -h cvsup.FreeBSD.org 
/usr/share/examples/cvsup/ports-supfile

# cd /usr/ports/www/apache13
# make
# make install

Everything to this point went smoothly!  



As well it should have, since you followed correct procedure. =)

 I edited

/usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the IP 
address of the machine. However, when I try to start apache I get:


#/usr/local/sbin/apachectl start
/usr/local/sbin/apachectl start: httpd could not be started



[snip]

Does anyone have any suggestions on how to get ANY version of Apache 
running on a new install of FreeBSD 6?



Apache and most other add-on daemons on FreeBSD require that you 
explicitly enable them to run in /etc/rc.conf. Have you got a line


apache2_enable=YES

in your rc.conf?

The need for this as well as the proper syntax should be noted in the 
file /usr/ports/www/apache2/pkg-msg. For any other port you install 
there's probably gold nuggets of info in its pkg-msg file. This stuff 
displays during the make install, but then so does several K of other 
info so it's not hard to miss these things.


In fact, it doesn't realy matter if you add apache_enable=YES to 
rc.conf ( since het installed apache13 adding apache2_enable=YES would 
be quite useless ... ) when you start it manually from commandline, 
adding it to rc.conf is only usefull when you want to start apache from 
boot, which can be quite usefull, but it can't be the reason why apache 
wouldn't start.


Try adding '127.0.0.1   full name machine localhost' to 
/etc/hosts that might help. You should also check your apache log ( 
probably in /var/log/  when at default settings ) for a more detailed 
message of what went wrong


Good luck,

--
-Frank Staals


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Jerry McAllister
 
 I'm entirely new to FreeBSD, but have a fair amount of Linux 
 experience.
 
 I installed FreeBSD 6.0 (Production Release) on an oldish i386 
 system.  During the install, I asked to install ALL.  The 
 install went flawlessly.
 
 I need Apache on this system for some software development, so I 
 followed these instructions I found at:  
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 
 :
 
 # pkg_add -r cvsup-without-gui
 # cvsup -L 2 -h cvsup.FreeBSD.org 
 /usr/share/examples/cvsup/ports-supfile
 # cd /usr/ports/www/apache13
 # make
 # make install
 
 Everything to this point went smoothly!  I edited 
 /usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the 
 IP address of the machine. However, when I try to start apache I 
 get:
 
 #/usr/local/sbin/apachectl start
 /usr/local/sbin/apachectl start: httpd could not be started

You need to look for error messages in at least two places.

One would be the error_log file for apache which may be in:
  /var/log/httpd-error.log
if you did everything in the default way.

The other would be the system error log file which is:
  /var/log/messages
again, if you are using defaults.

One of those may have a message telling you why it could not be
started.   Error messages get put in those places because then
they are saved for you to check up on later if needed - like the
present situation.

Generally httpd-error.log will contain error messages for things
that go wrong while Apache is running.   Messages concerning
problems that make it unable to start will most often go in to
the system error log - /var/log/messages.

If there are no error messages in those files at about the time 
apache is starting up, then you may need to try and run Apache
interactively.

jerry


 
 I can't start apache.  Here's a configtest:
 
 #/usr/local/sbin/apachectl configtest
 Syntax OK
 
 
 Apache also won't start if I bypass the apachectl script and start 
 it directly. However it doesn't report any errors either:
 
 # /usr/local/sbin/httpd
 #
 
 
 Everything up above is with a completely fresh install of FreeBSD 
 6.  I didn't mess around with anything on the system.  I followed 
 the above steps exactly. (As I side note, I've struggled with this 
 for two days, and have installed FreeBSD at least 6 times trying 
 differnet things.  I can't get Apache to start. On previous 
 installs, I tried using apache22 with the same results.)
 
 Does anyone have any suggestions on how to get ANY version of 
 Apache running on a new install of FreeBSD 6?
 
 Thanks,
 Steven Narmontas
 
 
 
 
 
 
 
 --=_Part_982_24986631.1137174942886
 Content-Type: text/plain; charset=us-ascii
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 --=_Part_982_24986631.1137174942886--
 
 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Steven Narmontas
On Fri Jan 13 10:05:52 PST 2006, Kiffin Gish 
[EMAIL PROTECTED] wrote:

 On Fri, 2006-01-13 at 09:55 -0800, Steven Narmontas wrote:
 ...
 
 Everything to this point went smoothly!  I edited 
 /usr/local/etc/apache/httpd.conf ONLY to set the ServerName to 
 the IP address of the machine. However, when I try to start 
 apache I get:
 
 #/usr/local/sbin/apachectl start
 /usr/local/sbin/apachectl start: httpd could not be started
 
 
 Maybe httpd-error.log contains some suspicious-looking error 
 messages?
 


Of course it does! duh!

For the record, the error messages in httpd-error.log read:

 [alert] mod_unique_id:unable to gethostbyname(x)

where  was the made-up host name I used during the install.

I edited /etc/rc.conf to change hostname to a valid name, and 
apache now starts fine.

Thank you!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: httpd could not be started

2006-01-13 Thread Greg Barniskis

Frank Staals wrote:

Greg Barniskis wrote:

apache2_enable=YES

in your rc.conf?

The need for this as well as the proper syntax should be noted in the 
file /usr/ports/www/apache2/pkg-msg. For any other port you install 
there's probably gold nuggets of info in its pkg-msg file. This stuff 
displays during the make install, but then so does several K of other 
info so it's not hard to miss these things.


In fact, it doesn't realy matter if you add apache_enable=YES to 
rc.conf ( since het installed apache13 adding apache2_enable=YES would 
be quite useless ... ) 


Duh. Sorry, the later line about him trying apache22 got stuck in my 
mind.


when you start it manually from commandline, 
adding it to rc.conf is only usefull when you want to start apache from 
boot, which can be quite usefull, but it can't be the reason why apache 
wouldn't start.


Oh. I was sure that I'd read in a previous thread that the lack of 
an enable flag would stop it from being started at all, but that 
must have been for a different port or in a different context. 
Anyway, thanks for the correction, always glad to have my 
misconceptions destroyed.



--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Tofik Suleymanov

Steven Narmontas wrote:

On Fri Jan 13 10:05:52 PST 2006, Kiffin Gish 
[EMAIL PROTECTED] wrote:


 


On Fri, 2006-01-13 at 09:55 -0800, Steven Narmontas wrote:
   


...

Everything to this point went smoothly!  I edited 
/usr/local/etc/apache/httpd.conf ONLY to set the ServerName to 
the IP address of the machine. However, when I try to start 
apache I get:


#/usr/local/sbin/apachectl start
/usr/local/sbin/apachectl start: httpd could not be started

 

Maybe httpd-error.log contains some suspicious-looking error 
messages?


   




Of course it does! duh!

For the record, the error messages in httpd-error.log read:

[alert] mod_unique_id:unable to gethostbyname(x)

where  was the made-up host name I used during the install.

I edited /etc/rc.conf to change hostname to a valid name, and 
apache now starts fine.


Thank you!

 




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


You could just add it to /etc/hosts :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: httpd could not be started

2006-01-13 Thread Frank Staals

Greg Barniskis wrote:


Frank Staals wrote:


Greg Barniskis wrote:


apache2_enable=YES

in your rc.conf?

The need for this as well as the proper syntax should be noted in 
the file /usr/ports/www/apache2/pkg-msg. For any other port you 
install there's probably gold nuggets of info in its pkg-msg file. 
This stuff displays during the make install, but then so does 
several K of other info so it's not hard to miss these things.


In fact, it doesn't realy matter if you add apache_enable=YES to 
rc.conf ( since het installed apache13 adding apache2_enable=YES 
would be quite useless ... ) 



Duh. Sorry, the later line about him trying apache22 got stuck in my 
mind.


when you start it manually from commandline, adding it to rc.conf is 
only usefull when you want to start apache from boot, which can be 
quite usefull, but it can't be the reason why apache wouldn't start.



Oh. I was sure that I'd read in a previous thread that the lack of an 
enable flag would stop it from being started at all, but that must 
have been for a different port or in a different context. Anyway, 
thanks for the correction, always glad to have my misconceptions 
destroyed.



If I recall correctly you can only start the services in /etc/rc.d/ if 
you have them in /etc/rc.conf with '/etc/rc.d/service-name start'.  ( 
But off-course there is a way to start them without adding them to 
rc.conf : '/etc/rc.d/service-name forcestart' ). You must have mixed 
up the two ( /etc/rc.d/ and /usr/local/etc/rc.d/ )


--
-Frank Staals


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]