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


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

3
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? 

4
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?

5
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]

6
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

7
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



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

9
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


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

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

12
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?

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

14
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


15
Updates / Re: BUG on CWP version: 0.9.8.1002
« on: August 31, 2020, 09:49:39 AM »
Same here. I've found errors in the config-files for Apache and Nginx (vHosts-configs). Rebuilding vHosts results in my case in linebreaks between the server IP and the ports. Correcting the config-files manually works, but it's stupid work.

e.g. automatically created vHost-config (Nginx) --> error
Code: [Select]
server {
listen 22.22.222.222:
80;

vs. manually corrected --> works
Code: [Select]
server {
listen 22.22.222.222:80;

Pages: [1] 2