Quantcast
Channel: EasyEngine Community Forum - Latest posts
Viewing all 12639 articles
Browse latest View live

Mapping function in nginx helper cause Rtmedia upload image not work

$
0
0

Hello,

the debug option in nginx helper cause upload image of Rtmedia not work: http://prntscr.com/iulv1g

this happens always both in Buddypress site activity page and user profile page.

wordpress.4.8, and 4.9.4, rtmedia 4.4.5, buddypress 2.9.3

Alex


Has anyone installed Webmin with easyengine?

$
0
0

I use Webmin on an number of my easy engine servers (Vultr and DO) - it’s quick and light and with good functionality. It’s improved a lot over the years.

I just followed the DO tutorial to install Webmin under nginx

Default Cache for non wp site

$
0
0

Hi,

I’d like to ask, how can I enable caching for non wp site? I understand that if it is a wordpress site, I could use a command like --wpredis or that kind of stuff… But let say, I want to use memcache for a non wordpress site, how can I do that?

I tried to wonder around on search by google but unable to find a suitable answer.

Cheers

Easy Engine Alternative: Trellis

$
0
0

I know I am really late to this topic. But easy engine is not the problem.

You should try tuning your NGINX. Are you using PHP7? Http2?

Easy Engine Alternative: Trellis

$
0
0

Yeah already did. Have come a long way since it was posted.

Right now, using latest Ngnix, PHP 7.2, MariaDB, HTTP2, Redis, Brotli for WP sites.

My problem was I was running a quite big server with just a few sites, applications, and storage use after I scaled up for certain projects.

RAM 144GB, CPU 72 Cores, 4TB NVME c5.18xlarge - AWS

Earlier used to have instance or server sizes upto 8GB, which worked really well when optimized and configured with right values.

So though Ngnix out of the box with EE is good for small instances; MySQL, php, Ngnix configurations doesn’t scale at all.

You have to manually test it in a hardcore way over time and alter the values to make your applications (for me WP and some other running apps, data research) here to make sure utilize all the spare resources; so nothing remains underutilized.

So at present, optimization and concurrency resulted in my server usage of more computes, such that it barely uses 10GB out of 144GB RAM.

Though with more depth trails and figuring out the values, I think I can achieve more performance from the server.

About Trellis; way back I used it on a 32GB server; fired up the same demo sites and some heavy virtual load and it seemed Trellis configured better than EE and performed far better.

So, in the end, its all about each individual use case scenario, the server they are using and how well they have squeezed the performance out of their server for their websites.

Right now what we EE enthusiasts want is to get upto date stuff with EE.

I asked some acquaintances to do a fork EE and work on updated stuff; however, they are busy with their own projects.

So its bit troublesome to find the right values for my server. I don’t have the time, and it’s better to learn things than to spend on something unless it’s about security.

How to enable http2 server push on nginx wordpress

$
0
0

Same here. Right now my sites are fast enoughl but the server response time is still high.

Easy Engine Alternative: Trellis

$
0
0

Wow, That’s an impressive server. I once took at a little 4 core arm server with 2GB of ram (On a network attached SSD) with 200mbs pipe. Shoved nginx in front of varnish (Needed NGINX to terminate SSL before passing the request to varnish). Hit it with 5000 users from load impact or a site there of and was INCREDIBLY impressed. The server did not stall or anything. The problem I had was the bandwidth to the server. I am a believer of squeezing as MUCH out of a server as possible.

I am with you when you say you don’t have the time to worry about tweaking and tuning. You want a more out of the box, ready to go solution.

I am tempted at trying Trellis. Although the setup looks intense.

Does trello automate Letsencrypt?

Serve HTTP2 out the box?

Can ee create phpBB site as it does with wordpress?

$
0
0

Hi, thank you tyrro for your prompt and valuable reply.

That configuration seems a bit different, but I tried to adjust that to my situation. After quite a few time’s crashes (yes, nginx just cannot load and a few times, 502 bad gateway alert), I realized it was more than I could figure out where the problem lies and the problem is on the main config file.

With ee, the default-ly generated conf is sth like this(suppose my domain name is forum.example.com, and I’ll put the phpbb scripts all under the doc root, that is, /var/www/forum.example.com/htdocs/ dir):

server {

    server_name forum.example.com   www.forum.example.com;

    access_log /var/log/nginx/forum.example.com.access.log rt_cache; 
    error_log /var/log/nginx/forum.example.com.error.log;

    root /var/www/forum.example.com/htdocs;  

    index index.php index.html index.htm;

    include common/php.conf;      
    
    include common/locations.conf;
    include /var/www/forum.example/conf/nginx/*.conf;
}

I then think the step six codes shall be inserted somewhere into the above blocks. I did it and after a few rounds, made the following thing.

server {
    listen 80;
    server_name forum.example.com   www.forum.example.com;
    root /var/www/forum.example.com/htdocs;
    index index.php index.html index.htm;

    access_log /var/log/nginx/forum.example.com.access.log rt_cache; 
    error_log /var/log/nginx/forum.example.com.error.log;  

    location / {
    try_files $uri $uri/ @rewriteapp;        
    }

    location /install/ {
    try_files $uri $uri/ @rewrite_installapp;
    }

    location ~ \.php(/|$) {
    fastcgi_split_path_info  ^(.+\.php)(/.+)$;
    fastcgi_index            index.php;
    #fastcgi_pass             127.0.0.1:9000
    fastcgi_pass             unix:/run/php5-fpm.sock;
    include                  fastcgi_params;
    fastcgi_param   PATH_INFO       $fastcgi_path_info;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param DOCUMENT_ROOT $realpath_root;
    try_files $uri $uri/ /install/app.php$is_args$args;
    }

    location @rewrite_installapp {
    rewrite ^(.*)$ /install/app.php/$1 last;
    }


    #include common/php.conf;      
    
    include common/locations.conf;

    include /var/www/forum.example.com/conf/nginx/*.conf;
}

Now, it could be found that I made two comment marks. One is that I commented the php.conf include line, because restarting nginx generated error msg pointing out sth wrong with that php.conf while ee’s original php.conf file says sth like do not modify. The other is the fastcgi_pass block. I turned it from TCP to CGI way and made it complied with conf.d/upsteam.conf file.

After restarting and rebooting, the installation dir still gave me a 502 bad gateway msg while visiting other non-php dir/files is ok.

I think one of the hard ways is that there are more than one conf to be taken aware of when they include one another.


Can ee create phpBB site as it does with wordpress?

$
0
0

Make sure you’re actually using sock and not TCP. Otherwise you will need to change

fastcgi_pass unix:/run/php5-fpm.sock;

to

fastcgi_pass php;

Can ee create phpBB site as it does with wordpress?

$
0
0

One other thing, to keep this custom rules from removal if you decide to upgrade to php7 for example, I’d move all custom rules code to a separate file, e.g. phpbb.conf and place it in this directory:

/var/www/example.com/conf/nginx

the following directive you have at the bottom:

include /var/www/example.com/conf/nginx/*.conf;

will pick up this code and add to your config file.

Can ee create phpBB site as it does with wordpress?

$
0
0

Thank you, tyrro!

I’ll take some time and re-play the steps again.

I think phpBB may consider a better installer as even if I tried nginx’s official precanned conf file, the installation still failed when I was last time doing the test installation. The server was ok then but the installation page didn’t display properly so that the btn couldn’t be clicked, sth. like a css error.

Can ee create phpBB site as it does with wordpress?

$
0
0

two things I just found.

I tried runcloud.io, with its scripts installer function. Runclould has an integrated and automatic phpBB installation service, but when I finished clicking and tried to view the install UI, the same surprising thing happened. I cannot install, either, just like what I have experienced before with nginx. Looks like, although it is not, that css files and js files are all missing.

I also tried Wordpress and MyBB. The interesting thing is both of these two php based app went smoothly without any problem. I don’t know why phpBB’s programmers haven’t noticed this issue. Very disappointed. I thought it was my problem. Now it seems the problem is phpBB’s.

Check logs for reason tail /var/log/ee/ee.log & Try Again!

$
0
0

Hello guys, I’m not getting on the digital ocean install anything with ee, with Debian 8.10 64x please help me buddy! I am doing the following script:

apt-get install sudo

apt-get update

wget -qO ee rt.cx/ee && sudo bash ee

ee update

ee site create example.com --wpredis

See the Error:

1

Rtmedia and buddypress double content

$
0
0

Hello good afternoon. I was working in my site and this time I realized that in my media page there is a double photo gallery that content in one page. I leave you some pictures here. Any way I can solve this issue? Thanks in advance

Want to use Reverse Proxy server for Nginx how can i?

$
0
0

I don’t want to use varnish cache, also apache as backend.

I need a reverse proxy for caching purpose to reduce backend process.

is FastCGI enough or extending FastCGI cache time and size works?

installing plugins like w3tc on all sites not suitable for me.

how can I use nginx as server & reverse proxy on the same machine?

is it possible?

also, I don’t have much idea about load balancers.

i know load balancers distribute load to another machine (is this machine are sperate servers)

is load balancing possible on the same stack?

I knew this points but confused

nginx already working as a reverse proxy to php-fpm-mysql.

full page caching with fast-cgi.


Webp Support

$
0
0

Hi,

My WP on a server with PHP7 Redis Cache and Let’s Encrypt setup (EE).

I am trying to implement webp on nginx but it seems none of the guides on the internet have worked for me. I have converted all my png and jpeg files, e.g. example.jpg and example.webp is both on uploads folder.

Is there anyway to do this or am I missing something like there is no support?

Webp Support

$
0
0

Try this:

location ~* ^/.+\.(png|jpg|jpeg)$ {  
  set $red Z;

  if ($http_accept ~* "webp")    {
    set $red A;
  }
  if (-f $request_filename.webp) {
    set $red "${red}B";
  }

  if ($red = "AB") {
      add_header Vary Accept;
      rewrite (.*) $1.webp redirect;
  }
}

There’s a lot of if and certainly it will be possible to rewrite the snippet on a more elegant way (with try_files or something).

Webp Support

$
0
0

Thank you portofacil.

I have added it to /etc/nginx/sites-enabled/example.com configuration but didn’t work.

Previously I have adapted this guide here: https://centminmod.com/webp/ and here: https://matteth.wordpress.com/2014/09/29/serving-webp-images-in-wordpress-with-nginx/, also some other similar ones.

I have double checked mime types on nginx and php info that they support webp.

I have Autoptimize plugin as well. After reloading nginx I purged all cache from Redis, Autoptimize, Nginx Helper.

Any other suggestion?

Webp Support

$
0
0

Paste the contents of your vhost file, please.

The snippet I provided is in use by 20+ sites of mine, and it works for me. Let me take a look at your vhost, in order to see if something rings the bell.

One touch, complete, offsite, set-it-and-forget-it backup solution

$
0
0

Hey i have 2 server one on Digital ocean and 1 on Google Cloud. Now i want to move all sites from GC to DO. But DO already has EE installed with sites running. Also i dont have S3 now. Can this be done?

Viewing all 12639 articles
Browse latest View live