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.


Topics - 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 / 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

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