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.


Messages - Darkroom

Pages: [1] 2 3 ... 6
1
Installation / Re: What should i do with this RAM usage?
« on: July 31, 2019, 03:54:49 AM »
ok first ssh onto the server console and type slabtop to look to see how much memory dentry is using.

Active / Total Objects (% used)    : 21729664 / 22216467 (97.8%)
 Active / Total Slabs (% used)      : 1123731 / 1123757 (100.0%)
 Active / Total Caches (% used)     : 102 / 185 (55.1%)
 Active / Total Size (% used)       : 4164789.59K / 4233279.36K (98.4%)
 Minimum / Average / Maximum Object : 0.02K / 0.19K / 4096.00K

  OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME                   
19754140 19754049  99%    0.19K 987707       20   3950828K dentry

1900764 1472678  77%    0.10K  51372      37    205488K buffer_head

254788 254745  99%    0.98K  63697        4    254788K ext4_inode_cache
 89621  88583  98%    0.06K   1519    59    6076K size-64
 81753  41708  51%    0.55K  11679        7     46716K radix_tree_node
 21056  20715  98%    0.03K    188   112     752K size-32
 14256  14236  99%    0.14K    528    27    2112K sysfs_dir_cache
 13053  10906  83%    0.20K    687    19    2748K vm_area_struct
 12782   9658  75%    0.05K    166    77     664K anon_vma_chain
 11720  11601  98%    0.19K    586    20    2344K size-192
  8321   8052  96%    0.07K    157    53     628K selinux_inode_security
  7370   5386  73%    0.05K    110    67     440K anon_vma
  5760   4352  75%    0.12K    192    30     768K size-128
  5325   3901  73%    0.25K    355    15    1420K filp

whoah! dentry, go home you're drunk!
To clear that do:

# service nginx stop
Stopping nginx:                                            [  OK  ]
# service mysqld stop
Stopping mysqld:                                           [  OK  ]
# sync && echo 2 > /proc/sys/vm/drop_caches
# service mysqld start
Starting mysqld:                                           [  OK  ]
# service nginx start
Starting nginx:                                            [  OK  ]

You don't want to run this with mysql active as it can corrupt databases but this command basically drops dentry cache. I shut down my web server too. If you use a different web server you should probably stop that too. Basically kill all the disk writes you can while this is running. I have 48GB of RAM and I'll run this around 35GB used and it takes a couple min. Ya might also want to adjust the swapiness of your system cause ideally servers shouldn't swap.

2
Backup / Re: Simple backup help
« on: April 09, 2018, 10:05:44 PM »
I've always assumed that any backup would be an rsync of the target directory regardless of remote or local.

3
Postfix / Re: Help me to fix this issue
« on: April 05, 2018, 02:32:13 AM »
your provider sets the rDNS you'd need to contact them to give the rDNS pointer a name.

4
Backup / Re: what command in terminal to create backup?
« on: March 31, 2018, 11:09:01 PM »
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

5
Backup / Re: backup is not working
« on: March 31, 2018, 11:08:27 PM »
If you're using CentOS 6 at some point the backup script updated to use a newer php and it didn't update the cron job that ran the backup script. Run:
#> cat /etc/cron.daily/cwp

If you see something like:
/usr/local/cwp/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

try running it, it'll probably error out and not execute. If this happens try changing it to:
/usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

and run it again if it works, update the cronjob.

6
CentOS 6 Problems / Re: high RAM consumption in idle mode CWP
« on: March 31, 2018, 11:01:14 PM »
Which version or CWP are you using? I'm using
CWP version: 0.9.8.398
and it's gotten much better. Seems to stem from a leaky version of nss that causes curl calls to query none existent files the results of those queries are stored in dentry cache IIRC.

try looking at slabtop from the command line. if the dentry cache is HUGE this is your problem. Long term solution is to make sure your yums are all up to date and you're running the most current version of CWP. Short term solution is:

service httpd stop
service mysqld stop
sync && echo 2 > /proc/sys/vm/drop_caches
service mysqld start
service httpd start

This will drop your dentry cache but you want to make sure no services are writing to disk when you run it because they'll stop mid write. Also just a warning, it can take a sec for it to run.

7
CentOS-WebPanel GUI / Re: User panel don't work - Users Cant login
« on: March 04, 2018, 06:23:34 PM »
If I use the "new" user login side it still doesn't let me in but I get these errors:

[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Warning:  session_start(): open(/tmp/session/sess_35da8u3358jftiscikavql9ld2, O_RDWR) failed: Permission denied (13) in /usr/local/cwpsrv/var/services/users/index.php on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Notice:  Undefined index: username in /usr/local/cwpsrv/var/services/users/index.php on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Notice:  Undefined index: username in /usr/local/cwpsrv/var/services/users/index.php on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Notice:  Undefined offset:1 in /usr/local/cwpsrv/var/services/users/index.php on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Warning:  strpos(): Empty needle in /usr/local/cwpsrv/var/services/users/index.php on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username child 13039 said into stderr: "NOTICE: PHP message: PHP Notice:  Undefined offset:1 in /usr/local/cwpsrv/var/services/users/index.php on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Warning:  Unknown: open(/tmp/session/sess_35da8u3358jftiscikavql9ld2, O_RDWR) failed: Permission denied (13) in Unknown on line 0"
[04-Mar-2018 13:14:22] WARNING: [pool username] child 13039 said into stderr: "NOTICE: PHP message: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/session) in Unknown on line 0"

8
CentOS-WebPanel GUI / Re: User panel don't work - Users Cant login
« on: March 04, 2018, 04:12:21 AM »
Same prob here.

CPU Model: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz
CPU Details: 8 Core (2500 MHz)
Distro Name: CentOS release 6.9 (Final)
Kernel Version: 2.6.32-696.20.1.el6.x86_64
Platform: x86_64 [Dedicated]

CWP info
CWP version: 0.9.8.351 [Get CWPpro]

9
Installation / Re: After install my server send mail in spam ...
« on: January 03, 2018, 02:49:38 AM »
If gmail and the like are marking it spa, make sure your hosting company has a reverse DNS entry setup for your server. It's not difficult but your colo company needs to do it for you. Most big mail services will spam anything without a reverse entry. https://en.wikipedia.org/wiki/Reverse_DNS_lookup
I make reverse dns for my main ip server. Is same problem. What need ask my company hosting? I am novice and not understand very good :(

Reverse DNS is set up by the owner of the IP block, not the domain.

10
Informations / Re: Executing an immediate backup?
« on: January 02, 2018, 04:12:59 AM »
or if you want to just back up just on user

sh /scripts/user_backup [username]


11
Installation / Re: After install my server send mail in spam ...
« on: January 02, 2018, 03:55:46 AM »
If gmail and the like are marking it spa, make sure your hosting company has a reverse DNS entry setup for your server. It's not difficult but your colo company needs to do it for you. Most big mail services will spam anything without a reverse entry. https://en.wikipedia.org/wiki/Reverse_DNS_lookup

12
CentOS 6 Problems / Re: How to create user on SSH - Centos Webpanel
« on: December 31, 2017, 08:38:25 PM »
well, you can always:

adduser [username]
passwd [username]

... but this does not add them to the panel, set up domain, website, etc, pretty much just gives them shell access.

13
Backup / bug in backup scripts for upgraded CWP 6 users
« on: December 07, 2017, 03:13:30 AM »
Soon, I just found out from restoring a daily backup that my backups had not been running since March 15th 2017. I went to the cron.daily/cwp script:

/usr/local/cwp/php54/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

This throw the error:

PHP Fatal error: 
The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php was encoded
with the PHP 5.6 ionCube Encoder and requires PHP 5.6 to be installed.
 in Unknown on line 0

switching it to:
usr/local/cwp/php71/bin/php -d max_execution_time=1000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_backup.php

fixed it. But discovering this has been most unpleasant. So if you have an older CWP system in production, check your backups.

Server:
CPU Model: Intel(R) Xeon(R) CPU L5420 @ 2.50GHz
CPU Details: 8 Core (2500 MHz)
Distro Name: CentOS release 6.9 (Final)
Kernel Version: 2.6.32-696.13.2.el6.x86_64
Platform: x86_64 [Dedicated]
CWP version: 0.9.8.273 [Get CWPpro]

14
Installation / Re: website file path
« on: November 26, 2017, 07:34:02 PM »
There is no automatic way to do this. Probably the easiest thing to do would be to create a new mount point in fstab and mount it to /home2 or something similar. Then after you create a new user, home on the command prompt as root and do something like:

mkdir /home2/username
chown -R username:username /home2/username
cp -a /home/username/public_html/* /home2/username/
rm -rf /home/username/public_html
ln -s /home/username/public_html /home2/username

I'd create a test account and try it before doing it with a real client/site first but you might also be able to migrate existing web directories to the second drive with that too.

15
Scripts / Re: StingRay's Dark Theme for CWP
« on: November 02, 2017, 02:14:49 AM »
one quick req... the "X" in the corner of popup windows like yum manager are almost invisible. can those be more prominent?

Pages: [1] 2 3 ... 6