xasharma I guess that due to not using a queue and having a ton of extensions that you have some load issues. Can you try running DB queues to see if that helps? https://discuss.flarum.org/d/28151-database-queue-the-simplest-queue-even-for-shared-hosting/
Error while posting a POST
xasharma Something seriously wrong with your server's setup. The resources are way enough to host Flarum, and yet you struggle. This also goes beyond supporting Flarum as everything points to this not being related to Flarum. If you have trouble setting up the server, you might find someone you can hire to help you configure it in theServices tag.
Is the error message still the same ? If MySQL is denying connection, it's not a Flarum-specific issue.
If you are out of ideas you could try contacting your hosting support or if they have a community forum, maybe other users of that hosting experienced issues with MySQL as well.
If you really don't find anything, you should probably try provisioning a new server, either with the same host or with a different host and see if the issue appears there as well.
clarkwinkelmann Is the error message still the same ?
Yes, not always, i get this error 2-3 times a day and problems are still same.
xasharma It reproduces sometimes... I changed my hosting also to run the site fast .... but with 4 Cores and 6 GB RAM, it is still very slow, it takes around 40-60 seconds to register a user and takes around 20 - 40 seconds to post a discussion and takes 20 - 40 seconds to post a Post. And i have turned off the notifications for all users.
It uses only 40 - 60% of CPU and around 50-70% RAM on average
- Edited
clarkwinkelmann I use cpanel and @luceos helped me to migrate my site from old hosting to new one.
On cPanel, as we all know, the main site index is in the public_html directory, And on the home path (before public_html), I have my data folder named "flarum", in this folder the all data is stored.
Screenshot -
Screenshot of public_html data
Screenshot of the flarum directory -
Screenshot of the public directory under flarum directory - (but i checked the files both all are not working/not used and the main data is in public_html >> assests directory as shwon in the 2nd screenshot
May be there is an error
xasharma who’s your hosting provider
xasharma did the problem occur before or after migration? What’s the sites url?
Wellwisher did the problem occur before or after migration?
After, First I tried the normal flarum, and after the database migration it was very slow
Wellwisher What’s the sites url?
hacksnation
- Edited
My small brain says there's two things you can possibly look into:
- Make sure there are no firewall restrictions preventing the connection. E.g ModSecurity is known to cause issues.
ModSecurity is an Apache module which works as a web application firewall.
It blocks known exploits and provides protection from a range of attacks against web applications. However, sometimes, ModSecurity may incorrectly determine that a certain request is malicious, while it is actually legitimate. In such a situation we can white-list triggered mod_security rule on the server, so that you can bypass the block.
We have found and whitelisted a few triggered rules on the server. You can test your website updating once again now.
- There's a small chance an extension could be causing the issue too. Try disabling all modifications and see if your new members are able register at normal speed.
Wellwisher I tried no effect