We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Site slow and fast | Forum

Outperformer 3000
Outperformer 3000 Oct 22 '20

Hi mates, I hope everybody is healthy and good.

Maybe you can help me: I wondering about my oxwall site. It's loading slow, often, but not always. Something it goes very fast, but then if I want navigate to another section it takes very long, but then suddenly it load the site completely fast. So, I thought it is because of php. My host has 7.2, 7.3, 7.4 and a additional turbo function, but if I set the turbo, some features not working correctly (like ban a user). I try all three versions, but I have the problems with all three versions.

Does anyone have an idea to speed up the sites like here on this oxwall site ... Thank you! 

Outperformer 3000
Outperformer 3000 Oct 22 '20

I noticed it only recently, but maybe it's been a long time, i've only ever looked in briefly as admin. Site is 4 years old.

That's my .htaccess:

AddType application/x-httpd-php73 .php
Options +FollowSymLinks
RewriteEngine On

AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
  ForceType text/javascript
<FilesMatch "\.(css.gz|css.gzip)$">
  ForceType text/css

RedirectMatch /index$ https://mysite.de
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php

# disable the server signature
ServerSignature Off

# Enable compression
<IfModule mod_deflate.c>
  <FilesMatch "\.(js|css|php|eot|ttf|otf|svg)$">
    SetOutputFilter DEFLATE

# Control ETags which is thought that bring better performance
<IfModule mod_headers.c>
    Header unset ETag
FileETag None

<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary Accept-Encoding

<IfModule mod_expires.c>

    # Enable expirations
    ExpiresActive On

    # Default directive
    ExpiresDefault "access plus 1 month"

    # My favicon
    ExpiresByType image/x-icon "access plus 1 year”

    # Images
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"

    # CSS
    ExpiresByType text/css "access 1 month”

    # Javascript
    ExpiresByType application/javascript "access plus 1 year"


Thank you.

The Forum post is edited by Outperformer 3000 Oct 22 '20
Outperformer 3000
Outperformer 3000 Oct 23 '20
Hi Chris, Thank you for your help. But it didn't work better with this htaccess. Do you have another suggestion?
Patricia Zorrilla Leader
Patricia Zorrilla Oct 23 '20

I think that if sometimes it works fast and sometimes slow, it is not that it is something wrongly configured, because in this case it would always go at the same speed.

You have to think about things that can affect you.

* Simultaneous access of many users to your website, you have to look at how many users are connected when it goes slow and when it goes fast.

* If the server is shared between several websites, it may at times not have enough data throughput, enough memory or enough processing capacity. 

Outperformer 3000
Outperformer 3000 Oct 23 '20
Yes, it's funny. I have another oxwall site on same host, with same settings and that site loads normal. Thank you, Chris and Patricia.
Outperformer 3000
Outperformer 3000 Oct 23 '20
No, not using cloudflare. The problem is, the host only make avaivable 7.2, 7.3 and 7.4. They have deleted 5.6. You could still use it for a transitional period, for an extra charge. But not anymore.
Outperformer 3000
Outperformer 3000 Oct 23 '20

But I do not understand, why my other site works like a charm with PHP 7.2 ...?

What can I do now? Do I have to make a new installation?

Outperformer 3000
Outperformer 3000 Oct 24 '20
Both are on 7.2. How can I make a clean new installation without data loss?
dave Leader
dave Oct 24 '20

Hi,  nice job Chris_W and Patricia in helping out, i think you covered most of it Chris_W :)

The only thing else i can think of is that you said that both sites are with the same host, but are they on the same server as well.  If not, the other server may be a better server or configed slightly different.  Alot of hosts use servers until they are so broken they just replace them so that might be a possiblity as well.

Maybe ask your host if you can move your site to a different server.

dave Leader
dave Oct 24 '20

Dont forget to also copy over your old password salt also from the old config file. If you dont then your logins wont work.

Also you could just restore the core files and not have to do a whole new install.   Also remember if you do a whole new install  you will need to reinstall all your plugins.  Before you fire up the site after the install be sure you do this or your files wont match the db for the plugins and it will blow up.

The Forum post is edited by dave Oct 24 '20
dave Leader
dave Oct 24 '20

here is just the core files..

  corefilesonly.zip (10155Kb)
dave Leader
dave Oct 24 '20
+1 Chris_W
Outperformer 3000
Outperformer 3000 Oct 24 '20
Okay, no success with reinstall the corefiles. I will contact my host. Thank you all.
sahil Nov 12 '20
If you have  images So compress them and check your speed issues with gtmetrix. it also can  be a reason 
Outperformer 3000
Outperformer 3000 Feb 15 '21

Well, thank you for all your help.

The reason was simple, my host offers simple webspace for websites. And there was my site. Now I rent a c-server and sites runs like a charm. I guess, because of more bandwidth(?)