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
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.

2
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.

3
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

4
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.

5
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.

6
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"

7
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]

8
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.

9
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]


10
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

11
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.

12
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]

13
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.

14
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?

15
Maybe I'm missing something but how do you create the tar.gz file? I can't find a way to make it in cwp and there's very little guidance on how to create it. Could you give an example of how one would create the tar.gz file either from a backup or the home directory?

Pages: [1] 2 3 ... 6