Author Topic: cwp-httpd not recognized by yum as webserver  (Read 13847 times)

0 Members and 1 Guest are viewing this topic.

cwp-httpd not recognized by yum as webserver
« on: February 19, 2018, 02:59:42 PM »
it seems that cwp-httpd is lacking the rmp descriptor as 'webserver' and thus is not being recognized by yum as httpd. As a result any package requiring httpd wants to install http from source repo, notwithstanding that any such package will not be interacting with cwp-httpd but only with the httpd from the source repo.

cross reference http://forum.centos-webpanel.com/apache/what-is-cwp-httpd/msg16007/#msg16007

Offline
***
Re: cwp-httpd not recognized by yum as webserver
« Reply #1 on: February 19, 2018, 06:06:32 PM »
didnt get at all what you mean by that :)

Re: cwp-httpd not recognized by yum as webserver
« Reply #2 on: February 19, 2018, 06:18:09 PM »
Code: [Select]
yum list installed httpd does not show cwp-httpd-2.4.29-2.x86_64 as installed, i.e. it is not recognizing it as 'webserver'.
The OS is not even recognizing it as httpd, just
Code: [Select]
httpd -v
The latter aside the rpm semantics apparently provide for specification of the package and cwp-httpd seems to be missing 'webserver' as rpm descriptor and thence not being recognized by yum. In comparison the stock httpd ships with that descriptor.

Offline
***
Re: cwp-httpd not recognized by yum as webserver
« Reply #3 on: February 19, 2018, 06:22:21 PM »
yum list installed | grep httpd

what httpd -v output is?

Re: cwp-httpd not recognized by yum as webserver
« Reply #4 on: February 19, 2018, 06:34:56 PM »
grep is irrelevant for yum's installation routine, I am afraid. You can test with no other httpd app installed than cwp-httpd and installing an app with httpd as dependency.  yum does not recognize cwp-httpd as httpd and will want to install the stock httpd instead.

As for the command line use
Quote
Usage: httpd [-D name] [-d directory] [-f file]
                                   [-C "directive"] [-c "directive"]
                                   [-k start|restart|graceful|graceful-stop|stop]
                                   [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed vhost settings
  -t -D DUMP_RUN_CFG : show parsed run settings
  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t -D DUMP_INCLUDES: show all included configuration files
  -t                 : run syntax check for config files
  -T                 : start without DocumentRoot(s) check
  -X                 : debug mode (only one worker, do not detach)

Offline
***
Re: cwp-httpd not recognized by yum as webserver
« Reply #5 on: February 19, 2018, 06:38:31 PM »
cwp-httpd comes with pre compiled http app. Its downloaded with centos web panel repository. For manual installation you can try.

https://panel.bullten.net/knowledgebase/36/Install-Apache-24-and-suPHP-072-in-CWP.html

Re: cwp-httpd not recognized by yum as webserver
« Reply #6 on: February 19, 2018, 06:41:06 PM »
what httpd -v output is?

With the dormant stock httpd shipped with CWP the output is
Quote
Server version: Apache/2.4.6 (CentOS)
Server built:   Oct 19 2017 20:39:16

If that stock httpd 2.4.6 is removed and only cwp-httpd remains on the system then the output is
Quote
-bash: /usr/sbin/httpd: No such file or directory

Re: cwp-httpd not recognized by yum as webserver
« Reply #7 on: February 19, 2018, 06:43:11 PM »
cwp-httpd comes with pre compiled http app. Its downloaded with centos web panel repository.
That is fine, except there is no reason that it should not be recognised by yum (and OS) as httpd. It is clearly a bug of sorts and should be ironed out, imho.

Offline
***
Re: cwp-httpd not recognized by yum as webserver
« Reply #8 on: February 19, 2018, 06:45:43 PM »
what httpd -v output is?

With the dormant stock httpd shipped with CWP the output is
Quote
Server version: Apache/2.4.6 (CentOS)
Server built:   Oct 19 2017 20:39:16

If that stock httpd 2.4.6 is removed and only cwp-httpd remains on the system then the output is
Quote
-bash: /usr/sbin/httpd: No such file or directory


are you running httpd and cwp-httpd both?

Re: cwp-httpd not recognized by yum as webserver
« Reply #9 on: February 19, 2018, 06:47:59 PM »
Nope. As far I can tell the stock comes installed with CWP but sits just dormant (disabled)

Offline
***
Re: cwp-httpd not recognized by yum as webserver
« Reply #10 on: February 19, 2018, 06:49:36 PM »
httpd doesnt comes pre installed with cwp-httpd. Better remove it and symlink right httpd path

ln -s /usr/local/apache/bin/httpd /usr/sbin/httpd

then run httpd -v


Re: cwp-httpd not recognized by yum as webserver
« Reply #11 on: February 19, 2018, 06:52:49 PM »
thanks, done this a couple of times and it is fine for the OS links, but does not resolve the matter with yum.

Re: cwp-httpd not recognized by yum as webserver
« Reply #12 on: February 19, 2018, 07:05:49 PM »
httpd doesnt comes pre installed with cwp-httpd
That is making the point then, since I did not install it specifically it must have slipped in as dependency for another yum package

Offline
***
Re: cwp-httpd not recognized by yum as webserver
« Reply #13 on: February 19, 2018, 07:06:38 PM »
yes that is possible

Re: cwp-httpd not recognized by yum as webserver
« Reply #14 on: February 19, 2018, 07:30:50 PM »
Inspected both rpm packages, cwp-httpd and stock httpd, with a text editor. The difference and what is missing from cwp-httpd is apparent, causing this bug. Not only is 'webserver' absent but also 'httpd'. cwp-httpd only declares its own name to the system/yum.

stock httpd


cwp-httpd


https://panel.bullten.net/knowledgebase/36/Install-Apache-24-and-suPHP-072-in-CWP.html
Will that be recognized by yum as httpd?