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

Pages: [1] 2
1
PHP / php 5.6.40 - FPM inactive ( dead )
« on: March 16, 2019, 12:17:47 AM »
Hello
I'm using php 5.6.40. I have to do this because the theme is not working with php 7.

http://prntscr.com/myj5w1

Click "status".

but it doesn't work.
inactive (dead) I'm getting a warning. I dont know exactly. fpm not working with php5.640?

I'm using pro panel ..

2
SSL / SSL problem after moving the site
« on: November 19, 2018, 08:30:18 PM »
Hello
I installed a free ssl via CWP on my website. then I moved to another cwp presentation again. I've added it to the cloud. but everything looks normal, but the site does not open.

ERR_CONNECTION_REFUSED
I get an error. there is also such an error on intodns.com.

"Recursive Queries"
I have an idea what should I do?

3
Varnish / Is there a default.vcl that is good for lowering the load?
« on: March 16, 2018, 07:22:58 PM »
Is there a default.vcl that is good for lowering the load?

do you have, or do you have any suggestion?
I did a lot of experimentation. but no good results were found.

==================================================
There are 282 online. load 15 !

http://prntscr.com/is6ve0

There was no such problem in front of varnish. now nginx is on the front. how do I get it back?

4
MySQL / Mysql CPU Load Problem
« on: February 21, 2018, 12:09:45 PM »
there are a total of 10k hits. but sometimes MySQL is doing CPU Load. what could be the problem? and cwp has recently started to update very often. Could it be related to this?

http://prntscr.com/ihrws6
__________________________________
Apache version: Apache/2.4.29
PHP version: 5.6.33
MySQL version: 10.1.31-MariaDB
FTP version: 1.0.30

5
CentOS 6 Problems / admin panel - 502 Bad Gateway error
« on: February 20, 2018, 09:25:32 AM »
There was no problem at night. but when I wake up I see that there is an error. I can not enter the admin pane.

http://prntscr.com/ih8hw0

how can i solve it?

6
Hello
I restarted the services. then this error came to fruition.

Starting nginx: nginx: [emerg] bind() to 163.1xx.xxx.xxx:80 failed (98: Address

sudo fuser -k 80/tcp

I am correcting with. then varnish gives an error.

how do I solve this problem?

7
MySQL / /var/lib/mysql = du -sh = 175G / I want to clear them
« on: January 21, 2018, 07:57:10 PM »
Hello
cd var/lib/mysql

http://prntscr.com/i3lu4l

I want to clean these files securely. how can I do that ? and I do not want to keep the log. can you help me ?
MySQL version: 10.1.30-MariaDB
centos 6
Apache version: Apache/2.4.29
PHP version: 5.6.31
thanks

8
MySQL / to publish all of the texts?
« on: October 07, 2017, 12:49:17 AM »
Hello
MySQL version: 10.1.26-MariaDB

I want to publish all the articles in the draft with phpMyAdmin. What is the sql query? does anyone knows ?
thanks

9
Varnish / Wordpress robust default.vcl ? do you have any?
« on: September 22, 2017, 11:35:18 AM »
Hi, I'm using apache + nginx proxy + varnish. but varnish is not enough. Do you have a default default.vcl file that will reduce the load? Or who can write for a fee? payment method paxum.

note: varnish 4 vcl..

10
PHP / Phpmyadmin "502 Bad Gateway" Error
« on: July 24, 2017, 07:03:06 PM »
Hello, I cannot enter phpMyAdmin, it happened on its own.
centos 6.9: Apache/2.4.27 + nginx proxy + varnish

http://prntscr.com/fzqr4p
what should I do

11
Varnish / Varnish 4 Vcl and member registration problem!
« on: July 16, 2017, 05:34:21 PM »
Hello, There is such a varnish file, but the member entry is not possible. I did a lot of experimentation, but I failed. What do I need to add? What do I need to help out? And the theme editing does not work ..
Systems:
Apache+nginx proxy+varnish= Wordpress
_________________________________________________________________________________________________________

# Marker to tell the VCL compiler that this VCL has been adapted to the
# new 4.0 format.
vcl 4.0;

# Default backend definition. Set this to point to your content server.
backend default {
   .host = "xxx.xxx.xxx.xxx";
   .port = "82";
   .connect_timeout = 600s;
   .first_byte_timeout = 600s;
   .between_bytes_timeout = 600s;
   .max_connections = 800;
}

backend example {
.host = "xxx.xxx.xxx.xxx.";
.port = "82";
}

import std;
include "xforward.vcl";
#include "bigfiles.vcl";
#include "mobile_cache.vcl";
#include "mobile_pass.vcl";
include "static.vcl";

sub vcl_recv {
    # Happens before we check if we have this in cache already.
    # Typically you clean up the request here, removing cookies you don't need,
    # rewriting the request, etc.
   
    if (req.http.host ~ "mysite.org") {
        set req.backend_hint = example;
    } elseif (req.http.host ~ "mysite.org") {
        set req.backend_hint = default;
    }
                 
        # ---------------------- WORDPRESS SPECIFIC CONFIG -------------------- #
   # Did not cache the RSS feed
   if (req.url ~ "/feed") {
   return (pass);
   }
        # Did not cache the wp-prn login
        if (req.url ~ "/wp-admin") {
        return (pass);
        }
        # Cron Bot
        if (req.url ~ "/bot") {
        return (pass);
        }
   # Blitz hack
   if (req.url ~ "/mu-.*") {
   return (pass);
   }
   # Did not cache the admin and login pages
   if (req.url ~ "/wp-(login|admin)"|| req.url ~ "preview=true" || req.url ~ "xmlrpc.php") {
   return (pass);
   }
   
   # First remove the Google Analytics added parameters, useless for our backend
   if(req.url ~ "(\?|&)(utm_source|utm_medium|utm_campaign|gclid|cx|ie|cof|siteurl)=") {
      set req.url = regsuball(req.url, "&(utm_source|utm_medium|utm_campaign|gclid|cx|ie|cof|siteurl)=([A-z0-9_\-\.%25]+)", "");
      set req.url = regsuball(req.url, "\?(utm_source|utm_medium|utm_campaign|gclid|cx|ie|cof|siteurl)=([A-z0-9_\-\.%25]+)", "?");
      set req.url = regsub(req.url, "\?&", "?");
      set req.url = regsub(req.url, "\?$", "");
   }
   # Remove the "has_js" cookie
   set req.http.Cookie = regsuball(req.http.Cookie, "has_js=[^;]+(; )?", "");
   # Remove any Google Analytics based cookies
   set req.http.Cookie = regsuball(req.http.Cookie, "__utm.=[^;]+(; )?", "");
   # Remove the Quant Capital cookies (added by some plugin, all __qca)
   set req.http.Cookie = regsuball(req.http.Cookie, "__qc.=[^;]+(; )?", "");
   # Remove the wp-settings-1 cookie
   set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-1=[^;]+(; )?", "");
   # Remove the wp-settings-time-1 cookie
   set req.http.Cookie = regsuball(req.http.Cookie, "wp-settings-time-1=[^;]+(; )?", "");
   # Remove the wp test cookie
   set req.http.Cookie = regsuball(req.http.Cookie, "wordpress_test_cookie=[^;]+(; )?", "");
   # remove cookies for comments cookie to make caching better.
   set req.http.cookie = regsub(req.http.cookie, "dcd9527364a17bb2ae97db0ead3110ed=[^;]+(; )?", "");
   
   # remove ?ver=xxxxx strings from urls so css and js files are cached.
   set req.url = regsub(req.url, "\?ver=.*$", "");
   # Remove "replytocom" from requests to make caching better.
   set req.url = regsub(req.url, "\?replytocom=.*$", "");
   # Strip hash, server doesn't need it.
   set req.url = regsub(req.url, "\#.*$", "");
   # Strip trailing ?
   #set req.url = regsub(req.url, "\?$", "");

   # Are there cookies left with only spaces or that are empty?
   if (req.http.cookie ~ "^ *$") {
   unset req.http.cookie;
   }   
   # Drop any cookies sent to WordPress.
   if (!(req.url ~ "wp-(login|admin)")) {
                       unset req.http.cookie;
        }
        # Cache the following files extensions
   if (req.url ~ "\.(css|js|png|gif|jp(e)?g|swf|ico)") {
   unset req.http.cookie;
   }
   
   # Normalize Accept-Encoding header and compression
   # https://www.varnish-cache.org/docs/3.0/tutorial/vary.html
   if (req.http.Accept-Encoding) {
   # Do no compress compressed files...
   if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") {
   unset req.http.Accept-Encoding;
   } elsif (req.http.Accept-Encoding ~ "gzip") {
   set req.http.Accept-Encoding = "gzip";
   } elsif (req.http.Accept-Encoding ~ "deflate") {
   set req.http.Accept-Encoding = "deflate";
   } else {
   unset req.http.Accept-Encoding;
   }
   }
   
   # Check the cookies for wordpress-specific items
   if (req.http.Cookie ~ "wordpress_" || req.http.Cookie ~ "comment_") {
   return (pass);
   }
   if (!req.http.cookie) {
   unset req.http.cookie;
   }
   # ---------------------- /WORDPRESS SPECIFIC CONFIG -------------------- #
   
   # No cache for big video files
   if (req.url ~ "\.(avi|mp4)") {
      return (pass);
   }   
   
   # Do not cache HTTP authentication and HTTP Cookie
   if (req.http.Authorization || req.http.Cookie) {
   # Not cacheable by default
   return (pass);
   }
   # Cache all others requests
   #return (hash);                     
}

sub vcl_backend_response {
    # Happens after we have read the response headers from the backend.
    #
    # Here you clean the response headers, removing silly Set-Cookie headers
    # and other mistakes your backend does.
   
    # Drop any cookies WordPress tries to send back to the client.
    if (!(bereq.url ~ "wp-(login|admin)")) {
                unset beresp.http.set-cookie;
            }
           
}

sub vcl_deliver {
    # Happens when we have all the pieces we need, and are about to send the
    # response to the client.
    #
    # You can do accounting or modifying the final object here.
   
   if (obj.hits > 0) {
   set resp.http.X-Cache = "cached";
   } else {
   set resp.http.x-Cache = "uncached";
   }

   # Remove some headers
   unset resp.http.X-Powered-By;
   unset resp.http.X-Varnish;
   unset resp.http.Via;
   unset resp.http.Age;
   unset resp.http.Link;
   unset resp.http.Server;
   return (deliver);
}

sub vcl_pipe {
   # Note that only the first request to the backend will have
   # X-Forwarded-For set. If you use X-Forwarded-For and want to
   # have it set for all requests, make sure to have:
   # set bereq.http.connection = "close";
   # here. It is not set by default as it might break some broken web
   # applications, like IIS with NTLM authentication.
   #set bereq.http.Connection = "Close";
   return (pipe);
}

# The data on which the hashing will take place
sub vcl_hash {
   hash_data(req.url);
   if (req.http.host) {
       hash_data(req.http.host);
    } else {
       hash_data(server.ip);
    }
   # hash cookies for requests that have them
    if (req.http.Cookie) {
       hash_data(req.http.Cookie);
    }
 }

sub vcl_hit {
        return (deliver);
}
sub vcl_miss {
        return (fetch);
}
sub vcl_init {
        return (ok);
}
sub vcl_fini {
        return (ok);
}


12
Hello
This error came out on its own.

Stopping Varnish Cache: [FAILED]
Starting Varnish Cache: Error: Could not get socket :80: Address already in use
(-? gives usage)
[FAILED]
[FAILED]

But varnish is working. How to overcome this problem?

13
LiteSpeed / My sites are not open
« on: May 25, 2017, 10:24:17 PM »
I want to try Litespeed, if the load is good, I will continue. But my sites are not open. What kind of settings do I need to adjust?

http://prntscr.com/fc53ax

There is php 7.1.5 on the server ..
thanks.

14
Apache / httpd restart = rpaf_mod and suphp_module error!
« on: May 14, 2017, 01:56:21 AM »
Hello
After the "service httpd restart" command, apache gives such an error.

http://prntscr.com/f7kh5y

I was using php 7.0.13. Then I switched to 5.6.30. And these faults began to come out. What could be the problem, how can I fix it?

15
Installation / Varnish is not installed
« on: May 06, 2017, 01:08:50 PM »
Hello,

Apache version: Apache/2.4.25
PHP version: 7.1.4
MySQL version: 5.5.54
FTP version: 1.0.36

http://prntscr.com/f4s211

[root@server /]# service varnish restart
varnish: unrecognized service
[root@server /]#

This is the situation. But there is no varnish file in the middle. What could be the problem?

Pages: [1] 2