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.


Messages - filz51

Pages: [1] 2
1
Somehow I can't access CWP anymore, I can only connect via a console in the browser. So I tried to update CWP first
Code: [Select]
sh /scripts/update_cwp
(...)
WARNING ** 20:28:12:179: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1. Error.Failed: Cannot determine user of subject
Error registering authentication agent GDBus.Error:org.freedesktop.PolicyKit1. Error.Failed: Cannot determine user of subject (poolkit-error-quark, 0)

A reboot doesn't recover the CWP admin panel. Looks like all services are down now. What can I do? The solutions I've found in the forum don't work SSH-service not running.



2
CentOS 7 Problems / X-Cron-Env: wrong path
« on: November 11, 2021, 02:57:51 PM »
Somhow my cronjobs don't work anymore. error is coming from <PATH=/usr/bin:/bin>
How can I correct this?

Subject: Cron <root@cwp> /usr/bin/redis-cli FLUSHALL >/dev/null 2>&1
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <LANG=de_CH.utf8>
X-Cron-Env: <LC_ALL=de_CH.utf-8>
X-Cron-Env: <XDG_SESSION_ID=6884>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>

3
CentOS Configuration / Setup curl-cronjob
« on: October 06, 2021, 07:32:14 AM »
Hi
I want to setup a cronjob tu curl an URL. I'm not sure if curl it working with -q flag too.
/usr/local/bin/php -q https://myserver.com?swcfpc=1&swcfpc-preloader=1&swcfpc-sec-key=xyzTHISISMYKEYzyx

After execution I get
Code: [Select]
cwp crontab[25393]: (root) REPLACE (myaccount)in /var/log/cron.

What is this line telling me? I expected something else like "preloader started sucessfully".


4
Installation / Re: How to register imagick extension for php-fpm?
« on: June 13, 2021, 07:17:52 AM »
Code: [Select]
The module is listed now for the web panel info.php but not for the accounts. I found these two lines in the status for php_selector3. Might this be a reason?
Jun 13 09:04:22 my.system.com systemd[1]: php-fpm74.service: Can't open PID file /opt/alt/php-fpm74/usr/var/run/php-fpm.pid (yet?) after reload: No such file or directory
Jun 13 09:04:22 my.system.com systemd[1]: Reloaded The PHP FastCGI Process Manager.

5
Installation / Re: How to register imagick extension for php-fpm?
« on: June 11, 2021, 08:19:13 AM »
This is the configure command:
Code: [Select]
phpinfo for php-fpm74
phpinfo()
PHP Version => 7.4.20

System => Linux my.system.com 4.18.0-310.el8.x86_64 #1 SMP Tue Jun 8 00:24:50 UTC 2021 x86_64
Build Date => Jun 11 2021 09:11:10
Configure Command =>  './configure'  '--prefix=/opt/alt/php-fpm74/usr' '--with-config-file-path=/opt/alt/php-fpm74/usr/php' '--with-config-file-scan-dir=/opt/alt/php-fpm74/usr/php/php.d' '--with-zlib=/usr' '--enable-mbstring' '--with-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--with-curl' '--with-iconv' '--with-gmp' '--with-pspell' '--enable-gd' '--with-jpeg' '--with-freetype' '--enable-gd-jis-conv' '--with-webp' '--with-zlib-dir=/usr' '--with-xpm' '--with-openssl' '--with-pdo-mysql=mysqlnd' '--with-gettext=/usr' '--with-bz2=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-xmlrpc' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-external-pcre' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-intl' '--enable-fpm' '--enable-opcache' 'PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /opt/alt/php-fpm74/usr/php
Loaded Configuration File => /opt/alt/php-fpm74/usr/php/php.ini
Scan this dir for additional .ini files => /opt/alt/php-fpm74/usr/php/php.d
Additional .ini files parsed => /opt/alt/php-fpm74/usr/php/php.d/apcu.ini,
/opt/alt/php-fpm74/usr/php/php.d/ioncube.ini,
/opt/alt/php-fpm74/usr/php/php.d/memcached.ini,
/opt/alt/php-fpm74/usr/php/php.d/opcache.ini,
/opt/alt/php-fpm74/usr/php/php.d/redis.ini
(...)

shouldn't there be added something like '--enable-imagick' in when I ticked "imagick" it in the options to compile the php-fpm version? 

6
Installation / Re: How to register imagick extension for php-fpm?
« on: June 10, 2021, 06:40:06 PM »
Hi

I did. And I did it one more time. Restart. But still, the extension is not showing up in info.php. What can I do?

7
Installation / Re: How to register imagick extension for php-fpm?
« on: June 09, 2021, 07:08:40 AM »
Hi Joseph

Output from 1st. and 2nd Command:
Code: [Select]
Version: ImageMagick 6.9.10-86 Q16 x86_64 2020-01-13 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib gvc jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf
 x xml zlib
Usage: convert [options ...] file [ [options ...] file ...] [options ...] file
...

Output from 3rd command:
Code: [Select]
sh: /usr/local/bin/convert: No such file or directory
But output from command
Code: [Select]
php -mis

Code: [Select]
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
redis
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]

8
Installation / How to register imagick extension for php-fpm?
« on: June 08, 2021, 08:30:47 AM »
Hello
I installed Imagick on the system but where and how can I register the extension? I can see the package in PECL-Manager but only for Main PHP.
I tried a fresh php-installation with php-fpm (custom config with imagick option ticked) and restarted the services. But the module is still missing in info.php
Bast, Filz

9
Hi

Hi
I'm using the incredible Wordpress Plugin Cloudflare Super Page Cache https://wordpress.org/plugins/wp-cloudflare-page-cache/ and I have to paste following lines into the nginx config files to make it work:
Code: [Select]
   location ~* \.(xml|xsl)$ { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
location = /wp-content/wp-cloudflare-super-page-cache/---replace-mydomain.com---/debug.log { access_log off; deny all; }


When I paste them into the standard nginx-config template and restart nginx the plugin works great, but I get a 404 on the sitemaps. Any idea why this happens?

Best, Filz



10
FTP / Re: pure-ftp.service does not exist
« on: May 15, 2021, 12:54:54 PM »
Hi Sandeep
Thank you, it's fixed.

11
FTP / pure-ftp.service does not exist
« on: May 12, 2021, 09:29:17 AM »
Hi
FTP service doesn't start up.
Code: [Select]
systemctl enable pure-ftp returns "pure-ftp.service does not exist".

Output from
Code: [Select]
systemctl status pure-ftpd.service● pure-ftpd.service - Pure-FTPd FTP server
   Loaded: loaded (/usr/lib/systemd/system/pure-ftpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: timeout) since Wed 2021-05-12 11:09:53 CEST; 12min ago
  Process: 924 ExecStart=/usr/sbin/pure-ftpd /etc/pure-ftpd/pure-ftpd.conf (code=exited, status=0/SUCCESS)
Starting Pure-FTPd FTP server...
pure-ftpd.service: start operation timed out. Terminating.
pure-ftpd.service: Failed with result 'timeout'.
Failed to start Pure-FTPd FTP server.

What can I do?
Cheers, Filz51


12
Varnish / Re: Varnish cache rule
« on: May 12, 2021, 09:21:28 AM »
Thank you!

13
Varnish / Re: Varnish Cache
« on: May 11, 2021, 11:54:10 AM »

14
Varnish / Varnish cache rule
« on: May 11, 2021, 11:52:58 AM »
I need to disable Varnish caching for logged in wordpress users
The rule is for
Code: [Select]
sub vcl_recv {
   
Code: [Select]
if (req.http.cookie ~ "wordpress_logged_in") {
           return (pass);
}

if (req.http.Cache-Control ~ "(no-cache|no-store|private)") {
           return (pass);
}

When I paste it into /etc/varnish/conf.d/vhosts/MYDOMAIN.conf and rebuild the webserver, these rules are lost. Can I paste them somewhere else (template?) where it's not overridden after rebuilding the server?

15
Hi Sandeep

That worked after I deleted the server hostname as subdamain. Thank you. But now I can't enable the firewall anymore and I can't connect to the mailserver running on this host. Roundcube says no connection to IMAP-Server.
Could this problem be related to 100% quotas on several /dev/loop(x) --> (/var/lib/snapd/snap/core/..  /var/lib/snapd/snap/certbot/..)?
I did never mention these 100% quotas before.

Pages: [1] 2