LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-03-2010, 04:19 PM   #1
vs224
LQ Newbie
 
Registered: Aug 2010
Posts: 8

Rep: Reputation: 0
service httpd not working


Hi,

when i run command

service httpd start

it breaks my connection to oracle database, seems like it doesnot run correct config file

However, when i run

/etc/rc.d/init.d/httpd restart

everything look correct. connection to database is established. How to make both in sync (so both do the same thing)

Thanks,
Vidya
 
Old 09-03-2010, 04:42 PM   #2
zootboy
Member
 
Registered: Nov 2008
Location: In a dumpster, with my laptop.
Distribution: Fedora
Posts: 124

Rep: Reputation: 25
Are you running these commands as root? I know the httpd daemon needs to be started as root so that it can bind to the network interface.

Also, what does starting httpd have to do with oracle? AFAIK, httpd does not connect to oracle directly. Usually a page will run a script (e.g. PHP) that accesses a DB.

Finally, are there any error messages on the console when you run either command?
 
Old 09-03-2010, 04:44 PM   #3
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 252Reputation: 252Reputation: 252
Quote:
Originally Posted by vs224 View Post
Hi,
when i run command
service httpd start
it breaks my connection to oracle database, seems like it doesnot run correct config file
However, when i run
/etc/rc.d/init.d/httpd restart
everything look correct. connection to database is established. How to make both in sync (so both do the same thing)
Thanks,
Vidya
Greetingz!
I would advise you do NOT modify the script. Judging from the other two threads you have started;

19aug10: Error While Running httpd.conf

23aug10: Configure PHP to connect w/ Oracle

You seem to be running Red Hat Enterprise Linux 5.2. I would strongly encourage you to read the Release notes (x86/x86_64), the Technical Notes (x86 & x86_64) first.

As for "The connection to the Oracle database breaking", that's what happens when you run either;

service httpd stop
service httpd start

Only the following will not break the connection;

service httpd restart
service httpd refresh


It is like that by design.
 
  


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
Why no httpd service? Sysop1911 Linux - Software 5 12-14-2007 07:30 PM
Service httpd nnadithya Linux - Server 5 12-16-2006 10:08 PM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 11:31 PM
httpd as a service joshf Linux - Software 5 07-10-2003 08:54 AM
Using HTTPD Service skopje909 Linux - General 1 11-15-2001 04:32 PM


All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration