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.

Topics - gailclark80

Pages: 1 [2]
CentOS-WebPanel Bugs / Installing shared extensions error
« on: May 28, 2018, 08:07:28 AM »
I switch to PHP 7.026
I got below error, and the installing is stop

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/

I run sestatus

SELinux status:                 disabled

Anyone know how to fix it

Apache / Leverage browser caching
« on: May 13, 2018, 03:44:58 AM »
Before my VPS ran Apache Only, and I add blow codes in .htaccess, Google PageSpeed Insights said the "Leverage browser caching" working fine.
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$">
<IfModule mod_expires.c>
AddType application/font-woff2 .woff2
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/webp A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType application/font-woff2 A2592000
<IfModule mod_headers.c>
Header set Expires "max-age=2592000, public"
Header unset ETag
Header set Connection keep-alive
FileETag None
# END LBCWpFastestCache

Now I switch the server to Apache & Varnish Cache & Nginx Reverse Proxy, the previous codes has stopped work, so I search on google and add below codes, but PageSpeed Insights still said my website do not support "Leverage browser caching," how to do let my website support Leverage browser caching?

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 1 month"


FTP / can not login FTP
« on: January 24, 2018, 03:24:07 AM »
My FTP often have such a problem.

Response:   331 User ****** OK. Password required
Command:   PASS *********
Response:   230 OK. Current restricted directory is /
Status:   Server does not support non-ASCII characters.
Status:   Connected
Status:   Retrieving directory listing...
Command:   PWD
Response:   257 "/" is your current location
Command:   TYPE I
Response:   200 TYPE is now 8-bit binary
Command:   PASV
Response:   227 Entering Passive Mode (*******)
Command:   MLSD
Error:   Connection timed out
Error:   Failed to retrieve directory listing

Please tell me how to fix this problem?

Varnish / Install Varnish SSL error
« on: January 18, 2018, 08:49:10 AM »
Intall the vanish buy selected Apache & Varnish Cache & Nginx Reverse Proxy and click "Save & Rebuild Configuration", but the CWP show some error as below

Nginx ERROR Detected ! nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/pki/tls/private/www.***.com.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) nginx: configuration file /etc/nginx/nginx.conf test failed

i have use SSL checker verify my website, the SSL work fine.

any suggestion?

Apache / enable Gzip
« on: January 11, 2018, 03:06:33 AM »
I enable Gzip by this guide

#LoadModule deflate_module modules/ change to LoadModule deflate_module modules/

Open httpd.conf file using a text editor and place the following in it:

# 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

and then retart the apache server

Now i use Gizp checker tool, my website support Gizp, but when i use check speed of my website, google PageSpeed Insights show i need to enable Gzip compression, what's the problem?

I use, it is said my website does not support Gzip compression.

my Centos webpanel has install Varnish by select webservers->Apache & Varnish Cache & Nginx Reverse Proxy->Save& rebuild configuration

Pages: 1 [2]