Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-18-2007, 06:39 AM   #1
LQ Newbie
Registered: Dec 2007
Posts: 7

Rep: Reputation: Disabled
httpd (no pid file) not running

hi i m getting errr when tryin to start service

Service : service ns-httpd start

could not determine the server's fully qualified domain name ns-httpd
/etc/init.d/ns-httpd stop: httpd (no pid file) not running

how to fix it.

Old 12-18-2007, 07:13 AM   #2
LQ Newbie
Registered: Nov 2004
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
Try these commands:

# echo > /etc/hostname

# /bin/hostname -F /etc/hostname

# service ns-httpd restart
Old 12-19-2007, 12:05 AM   #3
LQ Newbie
Registered: Dec 2007
Posts: 7

Original Poster
Rep: Reputation: Disabled
not working

my server not on domain its local machine on VM. i tried these commands
when i run services ns-httpd restart i m again getting error could not determine the fully qualified domain name.

kindly tell how to fix it.

Old 12-19-2007, 09:13 AM   #4
Senior Member
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, OpenBSD, Slackware, Solaris, SuSE, Xubuntu
Posts: 1,757

Rep: Reputation: 80
A FQDN (fully qualified domain name) includes a hostname, domain, and top-level domain, example:
my server not on domain its local machine on VM.
Then you can use a pseudo (fake) top-level domain that is not used on the Internet, example: myhostname.home.local or myhostname.test.internal

Place your FQDN in /etc/hosts, that file should already include localhost.
Code:  localhost
a.b.c.d    myhostname.home.local  myhostname
replace a.b.c.d with your actual IP address

Last edited by bsdunix; 12-19-2007 at 10:59 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting PID of running process in C/C++ laikos Programming 16 10-30-2015 06:16 PM
[help] apache problem : httpd dead but pid file exists princenux Linux - Server 2 11-30-2006 05:26 AM
Apache problem: httpd (pid 2206?) not running newlinuxnewbie Linux - Software 2 09-05-2006 10:17 AM
httpd service stop fails, no pid, this after latest update squadja Red Hat 2 08-11-2004 02:29 PM
ERROR: Couldn't write pid to pid file lawrencegoodman Linux - Newbie 2 02-13-2004 08:05 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration