solved 90% Disk usage on new install

Dzynz
Dzynz
@dzynz
9 years ago
5 posts
I installed Jamroom on my server. Looking at my server's dashboard, I've only used about 12.5 GB. When I go to the Jamroom dashboard, it says I've used 1.6TB of 1.7TB (90%).
How is this possible? I've installed a few free modules and I have two members (both mine) just to test out aspects of the site, nothing too heavy other than a couple blog posts.

On another topic - for my general knowledge - is it possible to give users permission to create pages or sites on their own with control over look and feel without it being a blog? Like microsites, or chapters...however you want to look at it. So far, it looks like the only permissions involve banning/adding other users, which is not what I'm looking for in permission levels.
updated by @dzynz: 09/27/16 07:44:09AM
michael
@michael
9 years ago
7,799 posts
'Disk Usage' section of the Dashboard gets its information from this function:
/modules/jrCore/lib/util.php (around line 2900 ish) jrCore_get_disk_usage()

Which in turn uses the PHP function disk_total_space()
http://php.net/manual/en/function.disk-total-space.php

and disk_free_space()
http://php.net/manual/en/function.diskfreespace.php

So if the numbers are wrong, you'll need to check why your server is reporting them wrongly.

See what they return when used outside of jamroom and see if you get the same results.
paul
@paul
9 years ago
4,335 posts
A fresh install of Jamroom and a few additional modules should be in the mega-bytes, not giga-bytes (between 20 and 30MB iirc) so yeah, what Michael said, I suspect your server is getting things wrong.


--
Paul Asher - JR Developer and System Import Specialist
Dzynz
Dzynz
@dzynz
9 years ago
5 posts
I'm using a shared server. The only thing that makes sense is Jamroom is reading the entire server, and not simply my portion of it?
brian
@brian
9 years ago
10,149 posts
Dzynz:
I'm using a shared server. The only thing that makes sense is Jamroom is reading the entire server, and not simply my portion of it?

Yep - that's it - PHP has no way of only showing the disk usage for your account (it's not aware of that), so you can ignore the disk space on your site. If you don't want to see it, just click on the panel in the dashboard and you can select a different panel to show there.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 06/26/16 07:15:38AM
Dzynz
Dzynz
@dzynz
9 years ago
5 posts
That's a big help. Thank you!

Tags