Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: n8v8r 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
-
didnt get at all what you mean by that :)
-
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
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.
-
yum list installed | grep httpd
what httpd -v output is?
-
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
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)
-
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
-
what httpd -v output is?
With the dormant stock httpd shipped with CWP the output is
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
-bash: /usr/sbin/httpd: No such file or directory
-
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.
-
what httpd -v output is?
With the dormant stock httpd shipped with CWP the output is
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
-bash: /usr/sbin/httpd: No such file or directory
are you running httpd and cwp-httpd both?
-
Nope. As far I can tell the stock comes installed with CWP but sits just dormant (disabled)
-
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
-
thanks, done this a couple of times and it is fine for the OS links, but does not resolve the matter with yum.
-
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
-
yes that is possible
-
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
(https://s14.postimg.org/jbfw0e5u9/rpm_httpd.png)
cwp-httpd
(https://s14.postimg.org/n935poic1/rpm_cwp-httpd.png)
https://panel.bullten.net/knowledgebase/36/Install-Apache-24-and-suPHP-072-in-CWP.html
Will that be recognized by yum as httpd?
-
The consequence of this bug is either not being able to utilize yum packages with dependencies on httpd whilst cwp-httpd is installed or remove cwp-httpd and install a compliant httpd version. Hardly a selling point for cwp-httpd.
-
it just needs minor changes in the rpm specs to fix this
from
Name: cwp-httpd
to
Name: httpd
and add
Provides: webserver
Provides: httpd-mmn = 20120211
Provides: httpd-mmn = 20120211x8664
Provides: httpd-mmn = 20120211-x86-64
Provides: httpd = 2.4.29-2
Provides: httpd(x86-64) = 2.4.29-2
-
I fixed this issue by reinstalling the cwp-httpd
#remove if the default httpd
yum erase httpd
#remove cwp-httpd
yum erase cwp-httpd
!!important step
#remove all the apache folder in /usr/local/apache
#remove cwp-suphp
yum erase cwp-suphp
yum install cwp-httpd
yum install cwp-suphp