LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   service httpd not working (https://www.linuxquestions.org/questions/linux-newbie-8/service-httpd-not-working-830210/)

vs224 09-03-2010 03:19 PM

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

zootboy 09-03-2010 03:42 PM

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?

xeleema 09-03-2010 03:44 PM

Quote:

Originally Posted by vs224 (Post 4087349)
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.


All times are GMT -5. The time now is 09:08 AM.