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

Pages: [1]
1
PHP Selector / Re: PHP-FPM Not Working (503 Service Unavailable)
« on: July 15, 2021, 07:02:15 AM »
It worked beautifully! Thanks!
But the question remains: Where is the user's conf file after updating the webserver model????


Go to cwp dashboard, then click Webserver Settings->WebServers Conf Editor, Select PHP-FPM menu then click on "/opt/alt/php-fpmxx/usr/etc/php-fpm.d/users/"

Now, click on "Add New Conf File" here you will create filename of your user name account, eg username.conf.

Then try using these code into the file:

[account_username]
listen = /opt/alt/php-fpm74/usr/var/sockets/account_username.sock
listen.allowed_clients = 127.0.0.1

;listen.owner = "account_username"
listen.group = "nobody"
listen.mode = 0660
user = "account_username"
group = "account_username"

;request_slowlog_timeout = 15s
;slowlog = /opt/alt/php-fpm74/usr/var/log/php-fpm-slowlog-account_username.log

pm = ondemand
pm.max_children = 4
pm.max_requests = 4000
pm.process_idle_timeout = 15s

;listen.backlog = -1
;request_terminate_timeout = 0s
rlimit_files = 131072
rlimit_core = unlimited
catch_workers_output = yes

env[HOSTNAME] = $HOSTNAME
env[TMP] = /home/account_username/tmp
env[TMPDIR] = /home/account_username/tmp
env[TEMP] = /home/account_username/tmp
env[PATH] = /usr/local/bin:/usr/bin:/bin

Change red word and php-fpm version with yours, after finish restart phpfpm : service php-fpm74 restart

2
SSL / Rebuilding your SSL certificates on Terminal
« on: April 16, 2017, 09:10:48 PM »

Code: [Select]
openssl req -new -days 365 -x509 -nodes -out /etc/pki/tls/certs/localhost.crt -keyout /etc/pki/tls/private/localhost.key
More information:
https://www.stevejenkins.com/blog/2010/08/renewing-a-self-signed-ssl-certificate-on-fedoracentos/

3
Best solution in my case. Centos7:

- Verify if module is loaded in your httpd.conf file:
/index.php?module=file_editor&file=/usr/local/apache/conf/httpd.conf

- Place the following in it:
Quote
# mod_deflate configuration
<IfModule mod_deflate.c>
 
# Restrict compression to these MIME types
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/css
 
# Level of compression (Highest 9 - Lowest 1)
DeflateCompressionLevel 9
 
# Netscape 4.x has some problems.
BrowserMatch ^Mozilla/4 gzip-only-text/html
 
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
 
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
 
</IfModule>


4
FTP / Re: Can't login on filezilla
« on: March 23, 2017, 06:43:53 PM »
No way!  :-\
I follow the instructions but the problems continue....

http://prnt.sc/eniwj4

Hi,
I think there is a problem with your server doesn't support TLS.
Try to install old version FileZilla, like FileZilla 3.7.3 or older : http://www.oldapps.com/filezilla.php?old_filezilla=12757
Let me know if it's work.


Not work! :-(
After New Fresh install on Centos7 minimal, it works!

5
FTP / Re: Can't login on filezilla
« on: March 23, 2017, 02:17:34 PM »
No way!  :-\
I follow the instructions but the problems continue....

http://prnt.sc/eniwj4

6
FTP / Re: Can't login on filezilla
« on: March 21, 2017, 08:02:01 PM »
The same in fresh install!

500 This security scheme is not implemented...

How to fix this?!
Thx for now.

7
2 Identical Servers. The Config:
CPU Model: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
CPU Details: 8 Core (2400 MHz)
CentOS release 6.8
Apache version: Apache/2.2.31
PHP version: 5.6.28
MySQL version: 10.1.19-MariaDB

To Do:
Server 01: Apache & Mysql Root
Server 02: Email & Mysql for Website

It's possible?!
Can you help me?
Thx for now! Sorry for bad english!

8
CentOS 6 Problems / Re: How to Optimize Wordpress hosting in CWP
« on: November 20, 2016, 08:56:28 PM »
Heartbeat Wordpress API is a bad guy!
The WordPress Heartbeat API simulates a pulse and is responsible for revision tracking, session management, and more. The pulse is around 98 Bytes in size, but it can cause performance issues in certain situations. Google for more!

I resolve the high memory using Heartbeat Control Plugin:
https://wordpress.org/plugins/heartbeat-control/

\o

9
PHP / Re: Lib JPEG Support php-gd
« on: November 17, 2016, 10:25:56 PM »
m3th3lesh, work!
Thx, man!

Just REcompile and add this

--with-jpeg-dir \
--enable-gd-native-ttf \
--with-freetype-dir \

10
PHP / Re: Problem with GD
« on: October 26, 2016, 09:57:04 PM »
Just REcompile and add this

--with-jpeg-dir
--enable-gd-native-ttf
--with-freetype-dir

screenshot : http://i.imgur.com/kKcMpxM.png

Work for me!
Apache version: Apache/2.2.31
PHP version: 5.6.14

Thx!

11
PHP / Re: php-cgi high memory usage on 8GB server. Why?
« on: October 25, 2016, 04:36:44 PM »
Migrate to MariaDB 10.1.18.
Working so fine!

Thx for all!

12
PHP / Re: php-cgi high memory usage on 8GB server. Why?
« on: October 23, 2016, 10:09:48 PM »
UPDATED!

Apache version: Apache/2.2.27
PHP version: 5.6.14
MySQL version: 5.5.52

php-cgi 100% 1.92 GB myserver (41)

My server works only with "UNDER ATTACK" mode activated in CloudFlare.  :(

14
PHP / php-cgi high memory usage on 8GB server. Why?
« on: October 21, 2016, 02:15:31 PM »
What is the best setup for my server?

Operating System: CentOS release 6.8 (Final) x64
CPU Model: Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz
CPU Speed: 8x 2400 MHz
PHP Version 5.4.45

php.ini:
memory_limit = 256M

Thx for your help, experts!

Pages: [1]