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

Pages: [1] 2 3 ... 11
1
PHP / Re: How to compile PHP with support for webp in gd?
« on: June 23, 2019, 05:43:16 AM »
Hey ring,

I know this isnt the answer but I am using the ShortPixel Adaptive Image plugin on all my wordpress sites and they are being served as webp. AppSumo had a great deal for them recently and I purchased a couple of codes for it but when I checked today, the deal had expired. I believe they have a free version but not sure if you would be able to auto use their CDN.
Funny, that's exactly why I'm asking for webp support. I bought this great deal from AppSumo as well, and although I've marked in its settings to use webp, I'm still getting JPGs. I thought it had to do with my setup.
But coming to think about it, as they're being served from their CDN, why would I still get JPGs? Weird...


But anyway, I host other sites for my clients, and I would like to support WebP for them.

2
PHP / Re: How to compile PHP with support for webp in gd?
« on: June 22, 2019, 06:44:27 PM »
This one kills me... Why can't we get instructions on how to compile PHP with WEBP support?!

3
PHP / Re: How to compile PHP with support for webp in gd?
« on: June 17, 2019, 08:31:24 PM »
So? Can't anyone figure this out? Please?!

4
PHP / Re: How to compile PHP with support for webp in gd?
« on: June 10, 2019, 07:07:36 PM »
here is solution
1 install libwebp
2 edit php config build file /usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/7.1.ini  or use any php version
3 add in bottom
Code: [Select]
[webp]
default=1
option="--with-webp-dir=/usr/lib64/"
4 rebuild php

Thank you, but unfortunately, it's not working (already compiled twice).




5
PHP / Re: How to compile PHP with support for webp in gd?
« on: June 06, 2019, 02:31:07 AM »
Guys,


I'm hosting Wordpress sites, and recently there are plugins like "Webp express" that can convert standard images (like jpg, png) to webp format for better loading times.


When installing webp express plugin, I'm shown none of the possibilites to convert the images are available, as can be seen here:
https://pasteboard.co/Ii5Nbkt.jpg


I've tried the same plugin on another server I have, running on ispconfig (which I consider as much more primitive comparing to CWP), and there it supports gd out of the box.


So yeah... I'm looking for a way to add --with-webp to the php compiler (it's possible to add such options in php selector, but I don't think it influences php-fpm which I'm using).


Here's a reference to PHP's manual:
https://www.php.net/manual/en/function.imagewebp.php

6
PHP / Re: How to compile PHP with support for webp in gd?
« on: June 05, 2019, 05:40:53 PM »
I really need to know how to have webp support with gd extension. please!

7
CSF Firewall / Re: UDP out port 67
« on: June 04, 2019, 05:53:51 PM »
Hi, you can block the port if you do not use DHCP
I have no idea if I do. :)

8
CSF Firewall / Re: UDP out port 67
« on: June 03, 2019, 08:34:46 PM »
https://www.speedguide.net/port.php?port=67
Thanks. Actually I saw that already, but unfortunately, couldn't determined what's the conclusion - should it be blocked or not?

9
PHP / How to compile PHP with support for webp in gd?
« on: June 03, 2019, 08:18:26 PM »
I'v already installed it using:
Code: [Select]
yum install libwebp-develBut how can I compile php-fpm with it?

10
CSF Firewall / UDP out port 67
« on: June 03, 2019, 05:38:57 AM »
Checking /var/log/messages, I've found the following notification about blocking UDP port 67 out.
I actually went to CSF's configuration and allowed this port and the message was gone.

After 5 minutes I thought I might have risking my system without properly checking (though sounds like my server is the one which is blocked from sending data out), so I've removed the port from CSF, but would appreciate if anyone has any idea what this might be.


Code: [Select]
Jun  3 08:11:32 cwp dhclient[3102]: DHCPREQUEST on eth0 to 172.31.1.1 port 67 (xid=0x216d4be)
Jun  3 08:11:35 cwp kernel: Firewall: *UDP_OUT Blocked* IN= OUT=eth0 SRC=159.69.16.218 DST=172.31.1.1 LEN=328 TOS=0x00 PREC=0x00 TTL=64 ID=12990 DF PROTO=UDP SPT=68 DPT=67 LEN=308 UID=0 GID=0
Jun  3 08:11:35 cwp dhclient[3102]: send_packet: Operation not permitted
Jun  3 08:11:35 cwp dhclient[3102]: dhclient.c:2697: Failed to send 300 byte long packet over fallback interface.

11
PHP / Re: error while compiling php-fpm v5.3.3
« on: June 01, 2019, 11:22:45 PM »
Ok, I've used the "reset options" link on the right side of v5.3, and it removed v5.3 so I could use that screen again.
I'm currently compiling v5.3.29 this time and I'll hope it'll finish this time.

12
PHP / error while compiling php-fpm v5.3.3
« on: June 01, 2019, 10:58:03 PM »
I was trying to compile php v5.3.3 (the oldest currently available on CWP) under php-fpm menu, in order to host an old site of mine.
Using the trail command after it took too long, I found this error:

Code: [Select]

[root@cwp ~]# tail -f /var/log/php-selector-rebuild.log
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
exe:/opt/alt/php-fpm53/usr/sbin/php-fpm
Redirecting to /bin/systemctl restart httpd.service


Build Completed
###################




Error:Can't add notification!


Any idea what's the issue?


Also, ever since, whenever I get into php-fpm menu again, I get this in the bottom:
Code: [Select]
Task already running in the background, please wait a few minutes and then check again!!!How can I remove that?

13
Nginx / Re: Nginx failed and can't be restarted
« on: May 30, 2019, 09:16:47 PM »
A. I assume you meant "Server Settings" and not "CWP Settings".
B. What that connection to SSL, and why is hostname related to SSL creating or my issue?

14
CentOS 7 Problems / Re: pro for PHP Upgrade?
« on: May 29, 2019, 09:28:25 AM »
hi

I would like to upgrade the PHP version to 7.2, although I did rebuild many times. still 5.6.x

Need CWPpro?
You'll have to rebuild your WebServers Main Conf (under WebServer Settings menu) with the preferred PHP version.

15
Nginx / Nginx failed and can't be restarted
« on: May 29, 2019, 03:55:49 AM »
This morning I woke up to see my server's nginx failed and couldn't restart (CWP tried to restart it every 15 minutes).

This is my error.log for nginx:
Code: [Select]
2019/05/29 04:00:02 [emerg] 13297#13297: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:15:03 [emerg] 14094#14094: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:30:02 [emerg] 14820#14820: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 04:45:02 [emerg] 15579#15579: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:00:02 [emerg] 16292#16292: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:15:02 [emerg] 17021#17021: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:30:02 [emerg] 17778#17778: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 05:45:02 [emerg] 18567#18567: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:00:02 [emerg] 19346#19346: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:06:23 [emerg] 20056#20056: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:08:23 [emerg] 4086#4086: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:09:12 [emerg] 4022#4022: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:09:37 [emerg] 4691#4691: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:15:02 [emerg] 6426#6426: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:20:41 [emerg] 7303#7303: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:20:53 [emerg] 7517#7517: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:21:14 [emerg] 7882#7882: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 06:30:02 [emerg] 10127#10127: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17
2019/05/29 03:40:43 [emerg] 3837#3837: the size 20971520 of shared memory zone "SSL" conflicts with already declared size 10485760 in /etc/nginx/conf.d/cwp.hostname.com_ssl.conf:17

So I went into /etc/nginx/conf.d/cwp.hostname.com_ssl.conf and found the following on line 17:
Code: [Select]
ssl_session_cache   shared:SSL:20m;
So according to the error, i changed it to (from 20m to 10m):

Code: [Select]
ssl_session_cache   shared:SSL:10m;


Any idea why did this happened suddenly? And what does this line actually mean (I understand it's some kind of cache size for SSL). Can it be that some update of CWP made this overnight?
Oh, and where is this "already declared size" stored?




Pages: [1] 2 3 ... 11