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

Pages: [1]
1
PHP / Upgrade imagick module?
« on: April 20, 2020, 04:13:48 PM »
Can you tell me how to upgrade imagick module to php 7.2 because webp format is not supported right now.
Thanks.

2
Installation / .webp format supported?
« on: April 20, 2020, 03:55:16 PM »
Can you tell me how can i install .webp format in webcentos panel with? I use php 7.2 and apache + nginx.

3
Apache / htaccess blocking a non-existent files/directories?
« on: March 15, 2020, 01:08:48 PM »
Hello, do you have idea how can i block that with .htaccess?

I mean https://site.com/?51515bb or https://site.com/?62626cc

?51515bb
?62626cc

Like this; http://forum.centos-webpanel.com/?62626cc

Thanks.

4
CentOS 7 Problems / How can i make that with ssh from video?
« on: December 10, 2019, 06:10:32 PM »
Hello.
I need to add ssh details in php file but i dont know how.

Whether I have to do something in particular or just write the details of the login to the file. This is what is described in the video towards the end.
Please help.

https://www.youtube.com/watch?v=hbBX_k4smdA

5
PHP / Re: How can i open 2 ports for php sockets?
« on: December 09, 2019, 08:33:59 PM »
I think you only need to open ports, you need to check the script documentation.

When i add ports, i have error with enabled firewall.

Status: You have an unresolved error when starting csf:
Error: FASTSTART: (TCP_OUT IPv4) [ -A OUTPUT ! -o lo -p tcp -m conntrack --ctstate NEW --dport 4002 -j ACCEPT] [iptables-restore v1.4.21: invalid port/service `24434001' specified]. Try restarting csf with FASTSTART disabled, at line 5527 in /usr/sbin/csf

You need to restart csf successfully to remove this warning, or delete /etc/csf/csf.error

6
PHP / Re: How can i open 2 ports for php sockets?
« on: December 09, 2019, 08:09:09 PM »
Go to Security > Firewall Manager > Configuration > Main Configuration.

It will open file editor, then scroll down to
# Allow incoming TCP ports
and
# Allow outgoing TCP ports

Add ports you need to open, click save changes and restart firewall.

Do I need to do anything special to make the script work with ws:// or is it just what it described?

The script description just says to open 2 sockets, nothing more and I don't know how to do it.

7
PHP / How can i open 2 ports for php sockets?
« on: December 09, 2019, 05:58:05 PM »
Hello, i need to open 2 ports for ws:// connection like 4001 and 4002 for php sockets to one script.
Can you explain me how can i open that 2 ports for running sockets?
I have VPS and use apache only on centos webpanel.
Thank you.

Code: [Select]
// Real-time Dashboard WebSocket server. (Sample URL: website.com:4001/dashboard)
define('DASHBOARD_PROTOCOL', 'ws'); // ws for insecure connection and wss for a secured connection.
define('DASHBOARD_KEY_PATH', 'config/server.pem'); // Path to the PEM file when your using a secured connection.
define('DASHBOARD_HOST', SITE_DOMAIN.SITE_TLD); // Server host.
define('DASHBOARD_PORT', ''); // Server port.
define('DASHBOARD_APP', '/dashboard'); // Application name.
define('DASHBOARD_MAX_CLIENTS', 1000); // Maximal amount of connected clients.
define('DASHBOARD_MAX_CONNECTIONS_IP', 5); // Maximal amount of connections per minute.
define('DASHBOARD_MAX_REQUEST_PM', 300);

Pages: [1]