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 - filz51

Pages: [1]
CentOS Configuration / Setup curl-cronjob
« on: October 06, 2021, 07:32:14 AM »
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

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".

Installation / How to register imagick extension for php-fpm?
« on: June 08, 2021, 08:30:47 AM »
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


I'm using the incredible Wordpress Plugin Cloudflare Super 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/ { 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

FTP / pure-ftp.service does not exist
« on: May 12, 2021, 09:29:17 AM »
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

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?

CentOS 7 Problems / Links to admin panel by hostname don't work, only by IP
« on: February 27, 2021, 02:46:19 PM »

I cant access the admin panel by addressing the hostname. Only IP-links are working. But when I open the Hostname one port 80 I a HTTP Server Test page.
I've got a this new problem since two days and can't check my e-mails anymore. DNS records look correct for me, the hostname subdomain points to the IP, rDNS/PTR-check says SUCESS.
Do I have to generate some new files in /etc/pki/..? Please help.

redis-server is filling the swap file (2 GB) up to 100%. The system kills the process (redis-server) then. How can I prevent this? No clue in redis.log but maybe redis.conf needs to be adjusted? Any suggestions?
Cheers, filz51

MySQL / Recommendations from MySQLTuner
« on: February 20, 2020, 12:49:09 PM »
Hi, here is the output from MySQLTuner
General recommendations:
    MySQL started within last 24 hours - recommendations may be inaccurate
    Reduce or eliminate unclosed connections and network issues
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Set thread_cache_size to 4 as a starting value
    Performance should be activated for better diagnostics
    Consider installing Sys schema from
    Read this before changing innodb_log_file_size and/or innodb_log_files_in_group:
Variables to adjust:
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_limit (> 1M, or use smaller result sets)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    thread_cache_size (start at 4)
    performance_schema = ON enable PFS
    innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
    innodb_buffer_pool_instances (=1)

How do I deal with that? I added the recommendations to adjust variables to /etc/my.cnf just below the line
!includedir /etc/my.cnf.d
Code: [Select]
    query_cache_size = 0
    query_cache_type = 0
    query_cache_limit = 3M
    tmp_table_size = 32M
    max_heap_table_size = 32M
    thread_cache_size = 4
    performance_schema = ON enable PFS
    innodb_log_file_size should be =16M
    innodb_buffer_pool_instances =1

Restarting MySQL mariadb.service resulted in database connection errors. is a server reboot necessary or is the syntax not correct?

Updates / Postfix Mailserver not starting
« on: February 19, 2020, 02:36:18 PM »
I made latest updates by yum and rebooted the server. after reboot Postfix Mailserver can't start.
--> postfix.service failed

 postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mit 2020-02-19 15:22:09 CET; 14s ago
  Process: 10641 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 10635 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 10632 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)

Feb 19 15:22:07  postfix[10641]: Postfix is running with backwards-compatible default settings
Feb 19 15:22:07  postfix[10641]: See for details
Feb 19 15:22:07  postfix[10641]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 19 15:22:07  postfix[10641]: /usr/libexec/postfix/post-install: Error: /etc/postfix/postfix-files is not a file.
Feb 19 15:22:07  postfix/postfix-script[10659]: fatal: unable to create missing queue directories
Feb 19 15:22:08  postfix/postfix-script[10660]: fatal: Postfix integrity check failed!
Feb 19 15:22:09  systemd[1]: postfix.service: control process exited, code=exited status=1
Feb 19 15:22:09  systemd[1]: Failed to start Postfix Mail Transport Agent.
Feb 19 15:22:09  systemd[1]: Unit postfix.service entered failed state.
Feb 19 15:22:09  systemd[1]: postfix.service failed.

How can I solve this?

How to / change LOCALE
« on: February 09, 2020, 02:34:14 PM »

# localectl returns the value I want: de_CH.utf-8.
But #locale does not, it's all en_US.utf-8. How can I change that?
Output #locale:

Thanks for help

Backup / User-Backup: initialized by cronjob?
« on: May 16, 2019, 06:53:43 AM »
Is the creation of user backups a cronjob and if so, WHAT TIME does it initialize?
Or does CWP mention changes and is backing them up in real time?
Please help me to understand it.
Blue skies, Filz51

Apache / Syntax error: #httpd -M
« on: April 10, 2019, 06:36:01 PM »
Hi Guys

I have no clue if I misconfigured something but when I  run #httpd -M
I get: AH00526: Syntax error on line 67 of /etc/httpd/conf.d/mod_expires.conf:
<FilesMatch> directive requires additional arguments
I didn't change that file at all. How can I solve this to run the command?

CWP version: | Apache/2.4.37 | PHP version: 7.2.16

Pages: [1]