Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - n8v8r

Pages: [1] 2 3 ... 5
1
CentOS-WebPanel Bugs / Firewall Survial Mode does not provision for nginx
« on: February 21, 2018, 05:17:21 PM »
CWPpro version: 0.9.8.512

It caters for httpd (and other servers) but not for nginx

2
Suggestions / improve httpd with mod_proxy_fcgi and php-fpm
« on: February 19, 2018, 07:57:46 PM »
As outlined here https://wiki.apache.org/httpd/PHP-FPM there are benefits of performance and security

3
CentOS-WebPanel Bugs / 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

4
Apache / cwp-httpd - where is the directive to load cwp-php located?
« on: February 14, 2018, 06:15:42 PM »
Having this directive does not work apparently since cwp-php is installed/loaded on the cwp-httpd

Code: [Select]
# Cannot load both php5 and php7 modules
<IfModule !mod_php5.c>
  <IfModule prefork.c>
    LoadModule php7_module modules/libphp71.so
  </IfModule>
</IfModule>

Looked into the httpd.conf files but there is no cwp-php module being mentioned, neither in any php.ini. What directive is used to load cwp-php and where is the directive located?

5
PHP / how to get rid of PHP(5.6.3) installed by CWP
« on: February 12, 2018, 02:29:16 PM »
How to remove/uninstall any php installed by CWP? Apparently it is not managed through yum.

6
Apache / what is cwp-httpd?
« on: February 12, 2018, 01:59:42 PM »
Code: [Select]
yum remove httpd
Quote
Running transaction
  Erasing    : httpd-2.4.6-67.el7.centos.6.x86_64                                                     1/1
warning: directory /var/www: remove failed: Device or resource busy
  Verifying  : httpd-2.4.6-67.el7.centos.6.x86_64                                                     1/1

Removed:
  httpd.x86_64 0:2.4.6-67.el7.centos.6

Complete!

Code: [Select]
systemctl restart cwpsrv cwp-phpfpm
Code: [Select]
yum list installed | grep httpd
Quote
cwp-httpd.x86_64                       2.4.29-1
  ???



Having uninstalled apache there is still apache..  ??? What is this (for)? And why is is displaying an apache version on the CWP when httpd is effectively gone?








7
CentOS-WebPanel Bugs / Apache Builder (compiler) outdated
« on: February 12, 2018, 11:41:51 AM »

8
CentOS Linux  7.4.1708 (Core)
Kernel 3.10.0-693.17.1.el7.x86_64
Apache & Varnish Cache & Nginx Reverse Proxy
Apache/2.4.29
nginx/1.12.2
PHP 7.1.9
suPHP version 0.7.2
MySQL version: 10.1.31-MariaDB
CWPpro 0.9.8.458
SEL disabled
Mod Security disabled
BIND correctly validates the record ok but the zone_editor mask is messed up


9
Mod_Security / mod_sec for apache only, neglecting nginx?
« on: February 11, 2018, 06:23:05 PM »
CentOS Linux  7.4.1708 (Core)
Kernel 3.10.0-693.17.1.el7.x86_64
Apache & Varnish Cache & Nginx Reverse Proxy
Apache/2.4.29
nginx/1.12.2
PHP 7.1.9
suPHP version 0.7.2
MySQL version: 10.1.31-MariaDB
CWPpro 0.9.8.458
SEL disabled
Mod Security disabled

It seems that mod_security does not get compiled for nginx with the CWP installer script for mod_security? Indicative seems also the absence of nginx here


 Adding to the nginx vhost
Code: [Select]
location / {
  ModSecurityEnabled on;
  ModSecurityConfig modsecurity.conf;
}
only produces
Quote
unknown directive "ModSecurityEnabled"

11
PHP / PHP7.1/7.2 where is the php-fpm server?
« on: February 10, 2018, 05:46:37 AM »
CentOS Linux  7.4.1708 (Core)
Kernel 3.10.0-693.17.1.el7.x86_64
Apache & Varnish Cache & Nginx Reverse Proxy
Apache/2.4.29
nginx/1.12.2
PHP 7.1.9
suPHP version 0.7.2
MySQL version: 10.1.31-MariaDB
CWPpro 0.9.8.454
SEL disabled
Mod Security disabled

The php-fpm server is supposed to be running and listening on tcp_port 9000 as php upstream handler/proxy.
Code: [Select]
upstream php-handler {
  server 127.0.0.1:9000;
}

Checked with Netstat Port Usage but there is no process listening on that port nor is there any process named php-fpm. It should also be listed as server enabled/disabled but is neither.
Trying to enable/start with
Code: [Select]
systemctl enable (or start)[/i] php71-php-fpm (or php72-php-fpm)
fails with
Quote
Failed to execute operation: No such file or directory

Yum can only install php-fmp v 5.4.16, which does not work with PHP7 and is even producing adverse effects, hence no option

And I am starting to wonder why for any other component with a server attached to it there is a notice but not for php-fpm, suspecting that php-fpm is absent from the switch script



If wrong then please how to start the php-fpm server else appreciate to know how to install the server that CWP might have failed to install in the first place.

13
CentOS Linux  7.4.1708 (Core)
Kernel 3.10.0-693.17.1.el7.x86_64
Apache & Varnish Cache & Nginx Reverse Proxy
Apache/2.4.29
nginx/1.12.2
PHP 5.6.30 ==>> 7.2.0
suPHP version 0.7.2
MySQL version: 10.1.31-MariaDB
CWPpro 0.9.8.454
SEL disabled
Mod Security disabled

Looks like the compiler scripts need some serious update

Quote
/usr/local/src/imagick-3.4.3/imagick_class.c:299:2: warning: 'MagickGetImageMatte' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:82) [-Wdeprecated-declarations]
  matte = MagickGetImageMatte(intern->magick_wand);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_paintfloodfillimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:1284:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
   status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, NULL, x, y);
   ^
/usr/local/src/imagick-3.4.3/imagick_class.c:1292:3: warning: 'MagickPaintFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:99) [-Wdeprecated-declarations]
   status = MagickPaintFloodfillImage(intern->magick_wand, channel, fill_wand, fuzz, border_wand, x, y);
   ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_recolorimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:1774:2: warning: 'MagickRecolorImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:109) [-Wdeprecated-declarations]
  status = MagickRecolorImage(intern->magick_wand, order, array);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_colorfloodfillimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:4315:2: warning: 'MagickColorFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:75) [-Wdeprecated-declarations]
  status = MagickColorFloodfillImage(intern->magick_wand, fill_wand, fuzz, border_wand, x, y);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_mapimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:4743:2: warning: 'MagickMapImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:86) [-Wdeprecated-declarations]
  status = MagickMapImage(intern->magick_wand, intern_map->magick_wand, dither);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_mattefloodfillimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:4784:2: warning: 'MagickMatteFloodfillImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:88) [-Wdeprecated-declarations]
  status = MagickMatteFloodfillImage(intern->magick_wand, alpha, fuzz, color_wand, x, y);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_medianfilterimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:4822:2: warning: 'MagickMedianFilterImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:217) [-Wdeprecated-declarations]
  status = MagickMedianFilterImage(intern->magick_wand, radius);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_paintopaqueimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:4904:2: warning: 'MagickPaintOpaqueImageChannel' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:104) [-Wdeprecated-declarations]
  status = MagickPaintOpaqueImageChannel(intern->magick_wand, channel, target_wand, fill_wand, fuzz);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_painttransparentimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:4987:2: warning: 'MagickPaintTransparentImage' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:107) [-Wdeprecated-declarations]
  status = MagickPaintTransparentImage(intern->magick_wand, color_wand, alpha, fuzz);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_reducenoiseimage':
/usr/local/src/imagick-3.4.3/imagick_class.c:5151:2: warning: 'MagickReduceNoiseImage' is deprecated (declared at /usr/include/ImageMagick/wand/magick-image.h:266) [-Wdeprecated-declarations]
  status = MagickReduceNoiseImage(intern->magick_wand, radius);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_getimageattribute':
/usr/local/src/imagick-3.4.3/imagick_class.c:6481:2: warning: 'MagickGetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:59) [-Wdeprecated-declarations]
  attribute = MagickGetImageAttribute(intern->magick_wand, key);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_getimagechannelextrema':
/usr/local/src/imagick-3.4.3/imagick_class.c:6698:2: warning: 'MagickGetImageChannelExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:78) [-Wdeprecated-declarations]
  status = MagickGetImageChannelExtrema(intern->magick_wand, channel_type, &minima, &maxima);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_getimageextrema':
/usr/local/src/imagick-3.4.3/imagick_class.c:7039:2: warning: 'MagickGetImageExtrema' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:80) [-Wdeprecated-declarations]
  status = MagickGetImageExtrema(intern->magick_wand, &min, &max);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_getimageindex':
/usr/local/src/imagick-3.4.3/imagick_class.c:8151:2: warning: 'MagickGetImageIndex' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:65) [-Wdeprecated-declarations]
  status = MagickGetImageIndex(intern->magick_wand);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_getimagesize':
/usr/local/src/imagick-3.4.3/imagick_class.c:8272:2: warning: 'MagickGetImageSize' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:140) [-Wdeprecated-declarations]
  ZVAL_LONG(return_value, (long)MagickGetImageSize(intern->magick_wand));
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_setimageattribute':
/usr/local/src/imagick-3.4.3/imagick_class.c:8746:2: warning: 'MagickSetImageAttribute' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:111) [-Wdeprecated-declarations]
  status = MagickSetImageAttribute(intern->magick_wand, key, attribute);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_flattenimages':
/usr/local/src/imagick-3.4.3/imagick_class.c:9121:2: warning: 'MagickFlattenImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:132) [-Wdeprecated-declarations]
  tmp_wand = MagickFlattenImages(intern->magick_wand);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_averageimages':
/usr/local/src/imagick-3.4.3/imagick_class.c:10308:2: warning: 'MagickAverageImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:131) [-Wdeprecated-declarations]
  tmp_wand = MagickAverageImages(intern->magick_wand);
  ^
/usr/local/src/imagick-3.4.3/imagick_class.c: In function 'zim_imagick_mosaicimages':
/usr/local/src/imagick-3.4.3/imagick_class.c:10811:2: warning: 'MagickMosaicImages' is deprecated (declared at /usr/include/ImageMagick/wand/deprecate.h:135) [-Wdeprecated-declarations]
  tmp_wand = MagickMosaicImages(intern->magick_wand);

14
CentOS-WebPanel Bugs / PHP 7.2 switch script messes with server settings
« on: February 10, 2018, 02:50:45 AM »
CentOS Linux  7.4.1708 (Core)
Kernel 3.10.0-693.17.1.el7.x86_64
Apache & Varnish Cache & Nginx Reverse Proxy
Apache/2.4.29
nginx/1.12.2
PHP 5.6.30 ==>> 7.2.0
suPHP version 0.7.2
MySQL version: 10.1.31-MariaDB
CWPpro 0.9.8.454
SEL disabled
Mod Security disabled

After the switch script finished httpd would fail to start and complain about port 80 already being occupied (nginx). Rebuilding the configuration Apache & Varnish Cache & Nginx Reverse Proxy did not cure the issue. The solution then was to rebuild httpd only first and then again Apache & Varnish Cache & Nginx Reverse Proxy.

15
How to / How to access CWP panels through VPN only
« on: February 09, 2018, 08:52:37 PM »
Looking for a way to limit access to root (and perhaps end user) panel(s) through VPN only? The VPN server is up and running but how to route/bind the CWPanels to the VPN and remove access for any other entry point?

Pages: [1] 2 3 ... 5