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

Pages: [1]
1
CentOS 6 Problems / How to run nginx as the main webserver
« on: May 13, 2016, 06:13:30 AM »
Hello!

We need to set let the nginx is the main webserver (not proxy), and only for some domain names it will be as the proxy.

Is it possible to do that via cwpadmin panel?

TY!

2
CentOS 6 Problems / Re: svcMonitor
« on: April 22, 2016, 07:49:53 PM »
ah:

0 program is running or service is OK
1 program is dead and /var/run pid file exists
2 program is dead and /var/lock lock file exists
3 program is not running
4 program or service status is unknown

svcMonitor is checking only - 1 program is dead and /var/run pid file exists

3
CentOS 6 Problems / svcMonitor
« on: April 22, 2016, 07:03:44 PM »

svcMonitor is not restarting services ...


[root@web:~]# service postfix status
master (pid  22024) is running...

[root@web:~]# service postfix stop
Shutting down postfix:                                     [  OK  ]

[root@web:~]# /usr/local/bin/svcMonitor

[root@web:~]# service postfix status
master is stopped


[root@web:~]# cat /usr/local/bin/svcMonitor
#!/bin/bash
export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
for i in `cat /usr/local/etc/services-monitor`
do
service $i status 1> /dev/null
  if [ $? -eq 1 ]
  then
    echo Restarted service $i on `hostname` at `date`
    service $i restart
  fi
done

[root@web:~]# cat /usr/local/etc/services-monitor
crond
httpd
mysqld
postfix
pure-ftpd
sshd

4
Backup / Re: [SOLVED]Remote Backup not working
« on: April 22, 2016, 06:28:45 PM »
[root@mail:~]# cat /usr/local/cwp/.conf/remote_backup.conf
REMOTE_HOST=xxx.xxx.xxx.xxx
REMOTE_USERNAME=root
REMOTE_PORT=22
REMOTE_ENABLED=1
REMOTE_TEMP=/tmp
REMOTE_CONNECTION=1

5
CentOS 6 Problems / Re: False "Quota is not installed"
« on: April 18, 2016, 09:23:48 PM »
yes, but -> my bad :)

[root@mail:~]# quotacheck -avugm
quotacheck: Cannot stat() mounted device /dev/root: No such file or directory
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

[root@mail:~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda         47G  3.0G   44G   7% /
tmpfs           998M  128K  998M   1% /dev/shm

[root@mail:~]# ln -s /dev/sda /dev/root

[root@mail:~]# quotacheck -avugm
quotacheck: Scanning /dev/root [/] done
quotacheck: Cannot stat old user quota file //quota.user: No such file or directory. Usage will not be substracted.
quotacheck: Old group file name could not been determined. Usage will not be substracted.
quotacheck: Checked 7607 directories and 96408 files
quotacheck: Old file not found.

[root@mail:~]# quotaon -avug
/dev/root [/]: user quotas turned on

[root@mail:~]#


must do that --->>> [root@mail:~]# ln -s /dev/sda /dev/root

thx ;)

6
CentOS 6 Problems / Re: False "Quota is not installed"
« on: April 18, 2016, 09:07:41 PM »
KVM

7
CentOS 6 Problems / Re: False "Quota is not installed"
« on: April 16, 2016, 12:48:55 PM »
I need quotas on the server
Quotas are enbled
But CWP says that quotas are not ebaled ...

8
CentOS 6 Problems / False "Quota is not installed"
« on: April 16, 2016, 03:32:12 AM »
Each time i log in, there is a false quota warning:

WARNING: Quota! Quota is not installed on your server and you will not be able to limit users disk space!
You can install Quota using instructions on the forum click here.

[sys]
Centos: 6.7
CWP: 0.9.8.12

[/etc/ftsab]
/dev/sda       /               ext4    noatime,errors=remount-ro,usrjquota=quota.user,jqfmt=vfsv0       0 1

[/usr/local/cwp/.conf/quota_part.conf]
/home

Screenshots:

http://i.imgur.com/lAUvhpk.png
http://i.imgur.com/Nr51aOx.png


Pages: [1]