Author Topic: Disable Apache service forever  (Read 5023 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Disable Apache service forever
« on: November 09, 2020, 05:41:55 PM »
I'm a Java developer and I want to be free to choose my webserver. That means any webserver, apart of Nginx, LiteSpeed, Varnish, etc.
When I stop Apache, CWP still works and I can start my web server (GlassFish at the moment) on ports 80 and 443.
After few time, hours or days, when I check the server status, I realize that my GlassFish is stopped and Apache has been started again.

Also, in Services Config / Start-up services, I've been disabled httpd service. And its still disabled on start-up.

I'm not expert in Linux.

Is it possible to do that?

Thank you.

Offline
*
Re: Disable Apache service forever
« Reply #1 on: November 09, 2020, 07:53:27 PM »
disabling apache is a bad idea as it's used for many system services like a proxy for webmail, panel...
You should run custom services on other ports and then set apache or nginx to proxy those domains on the custom ports.

that info is here
http://wiki.centos-webpanel.com/webservers-vhost-templates

VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*****
Re: Disable Apache service forever
« Reply #2 on: November 09, 2020, 08:07:54 PM »
when you choose nginx or litespeed as main server apache will be stopped or can be stopped forever.

Offline
*
Re: Disable Apache service forever
« Reply #3 on: November 10, 2020, 07:21:03 AM »
disabling apache is a bad idea as it's used for many system services like a proxy for webmail, panel...
You should run custom services on other ports and then set apache or nginx to proxy those domains on the custom ports.

that info is here
http://wiki.centos-webpanel.com/webservers-vhost-templates

Yes. I thought that and I also tried to redirect apache listen ports to 8080 with no success.
I mean, when apache restarts it self, its listening to port 80 again.

I did it editing in "Contents of File: /usr/local/apache/conf/httpd.conf"

Listen 8080

I don't know if that is enought.

Thank you for your answer.

Offline
*
Re: Disable Apache service forever
« Reply #4 on: November 10, 2020, 07:30:30 AM »
when you choose nginx or litespeed as main server apache will be stopped or can be stopped forever.

Do you mean that if I select any of other web servers, my server will be as it were nginx?
I tried it right now. I've selected nginx, saved changes, and my server is still up.
But I'm seeing that nginx has been installed and now, I have a new row for Nginx Reverse Proxy under the Apache Webserver in Services Status tab in the dashboard.

Will Nginx be started in the next server restart? I've disabled it in Start-up services section.

Thank you for your answer.