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.
Pages: [1]
1
CentOS 7 Problems / No more access to CWP Dashboard - PolicyKit1,poolikit-error-quark
« on: January 09, 2022, 09:26:13 PM »
Somehow I can't access CWP anymore, I can only connect via a console in the browser. So I tried to update CWP first
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.
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>
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
What is this line telling me? I expected something else like "preloader started sucessfully".
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 / 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
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
5
Nginx / NGINX-Configs for Cloudflare Super Page Cache breaks sitemaps
« on: May 26, 2021, 12:21:05 PM »
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:
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
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
6
FTP / pure-ftp.service does not exist
« on: May 12, 2021, 09:29:17 AM »
Hi
FTP service doesn't start up.
Output from
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
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 serverLoaded: 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
7
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
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?
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?
8
CentOS 7 Problems / Links to admin panel by hostname don't work, only by IP
« on: February 27, 2021, 02:46:19 PM »
Hi
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.
Thanks
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.
Thanks
9
CentOS 7 Problems / Out of memory: Kill process or sacrifice child (redis-server)
« on: March 08, 2020, 06:37:22 PM »
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
Cheers, filz51
10
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 https://github.com/mysql/mysql-sys
Read this before changing innodb_log_file_size and/or innodb_log_files_in_group: http://bit.ly/2wgkDvS
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
Restarting MySQL mariadb.service resulted in database connection errors. is a server reboot necessary or is the syntax not correct?
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 https://github.com/mysql/mysql-sys
Read this before changing innodb_log_file_size and/or innodb_log_files_in_group: http://bit.ly/2wgkDvS
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]
[mysqld]
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?
11
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
Logs:
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 http://www.postfix.org/COMPATIBILITY_README.html 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?
--> postfix.service failed
Logs:
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 http://www.postfix.org/COMPATIBILITY_README.html 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?
12
How to / change LOCALE
« on: February 09, 2020, 02:34:14 PM »
Hi
# 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:
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8
Thanks for help
filz51
# 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:
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8
Thanks for help
filz51
13
Backup / User-Backup: initialized by cronjob?
« on: May 16, 2019, 06:53:43 AM »
Hi
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
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
14
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: 0.9.8.796 | Apache/2.4.37 | PHP version: 7.2.16
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: 0.9.8.796 | Apache/2.4.37 | PHP version: 7.2.16
Pages: [1]