LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-18-2007, 06:39 AM   #1
imughal
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

Error:
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.

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

Rep: Reputation: 0
Try these commands:

Code:
# echo your_host_name.your_domain_name.com > /etc/hostname

# /bin/hostname -F /etc/hostname

# service ns-httpd restart
 
Old 12-19-2007, 12:05 AM   #3
imughal
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.

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

Rep: Reputation: 78
A FQDN (fully qualified domain name) includes a hostname, domain, and top-level domain, example: myhostname.example.com

http://en.wikipedia.org/wiki/FQDN
Quote:
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

http://en.wikipedia.org/wiki/Top-level_domain

Place your FQDN in /etc/hosts, that file should already include localhost.
Code:
127.0.0.1  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.
 
  


Reply


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
[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
Getting PID of running process in C/C++ laikos Programming 9 03-15-2004 03:33 AM
ERROR: Couldn't write pid to pid file lawrencegoodman Linux - Newbie 2 02-13-2004 08:05 PM


All times are GMT -5. The time now is 01:45 PM.

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