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.
1
Apache / Re: CustomLog bytes
« on: December 07, 2019, 07:02:14 PM »
I think they intend to add the feature of logging bytes in/out for individual domains for http/https at some point. This does require mod_logio which isn't enabled by default right now. At the moment it just fills a log file with the word "bytes." It's been the better part of a year they should either complete the feature or comment out the CustomLog. No sense in making garbage files that grow.
2
Backup / Re: Restore backup
« on: November 30, 2019, 10:11:08 PM »
All you should really have to do is "cp -a" the user's selected backup directory to their home directory "chown -R" it to the user then drop their current database(s) and attach the corresponding backup one(s).
3
CentOS-WebPanel Bugs / Re: Default page changed to index.html on all sites!
« on: November 25, 2019, 04:36:01 AM »
I had the same problem and resolution. Not too happy about it, esp after the surprise Nginx disabling.
4
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.
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.
5
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.
6
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.
7
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
8
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.
#> 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.
9
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.
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.
10
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"
[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"
11
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]
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]
12
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_lookupI 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.
13
Information / 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]
sh /scripts/user_backup [username]
14
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
15
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.
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.