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.
1351
Other / Re: Notice: Undefined index: login in /usr/local/cwpsrv/htdocs/admin/login.php(1) :
« on: September 10, 2014, 05:08:19 PM »
where do you get this error message ?
1352
E-Mail / Re: All email gone to spam
« on: September 10, 2014, 05:06:59 PM »
do you have rDNS set on your server ?
you can check rdns settings and A record match here
http://www.senderbase.org/
you can check rdns settings and A record match here
http://www.senderbase.org/
1353
CentOS Configuration / Re: How to setup user quotas ?
« on: September 10, 2014, 05:05:26 PM »
login to user panel and check quota usage
1354
Suggestions / Re: AWstats
« on: September 10, 2014, 05:04:29 PM »
not for now, in later version over v1.0
1355
CentOS-WebPanel GUI / Re: How to preview a website with the ipaddress
« on: September 10, 2014, 05:03:59 PM »
by default this is enabled
1356
CentOS-WebPanel GUI / Re: How to remove this texts
« on: September 10, 2014, 05:03:42 PM »
what kind of security issue ?
1357
CentOS-WebPanel GUI / How to fix Encryption error on login
« on: September 10, 2014, 03:43:27 PM »
If you get Encryption error on login using root then try following.
Login as root in shell/ssh
1. try setting new password for root user.
if this does not help then try
2. Check hashing (hashing needs to be md5 or )
if you get following "password hashing algorithm is descrypt" then you need to change hashing type.
then again set new root password
Supported Encryptions are:
MD5: "authconfig --passalgo=md5 --update"
SHA-256: "authconfig --passalgo=sha256 --update"
SHA-512: "authconfig --passalgo=sha512 --update"
Note, all users need to change their passwords in order to generate hashes using new encryption.
Login as root in shell/ssh
1. try setting new password for root user.
Code: [Select]
passwd
if this does not help then try
2. Check hashing (hashing needs to be md5 or )
Code: [Select]
authconfig --test | grep hashing
if you get following "password hashing algorithm is descrypt" then you need to change hashing type.
Code: [Select]
authconfig --passalgo=md5 --update
then again set new root password
Code: [Select]
passwd
Supported Encryptions are:
MD5: "authconfig --passalgo=md5 --update"
SHA-256: "authconfig --passalgo=sha256 --update"
SHA-512: "authconfig --passalgo=sha512 --update"
Note, all users need to change their passwords in order to generate hashes using new encryption.
1358
CentOS Configuration / How to setup user quotas ?
« on: September 09, 2014, 09:59:48 PM »
Let's say that your /home partition is in / mount point
install quota on your centos
Edit: /etc/fstab
replace "defaults" with "usrjquota=quota.user,jqfmt=vfsv0" for / mount point
Before (in some cases this can be different!):
If you have /home in /etc/fstab then you will need to edit line matching /home
replace "defaults" with "usrjquota=quota.user,jqfmt=vfsv0" for /home mount point
Before:
Now you need to add this into the CWP Configuration
How to check if quota works ?
Set a quota for all users by package from cwp
If you had previously added users then you will need to update the quota for them, you can do that by clicking on each account edit and then saving changes, or you can edit packages and save them for all users.
XFS Quota (only for XFS file system!!!)
edit file: /etc/fstab and add usrquota,grpquota example:
/dev/mapper/centos_root-home /home xfs defaults,usrquota,grpquota 0 0
before example
Activate quota as XFS for /home
in CWP.admin go to Left Menu -> Server Settings --> Disk Quota , and set
Quota Partition: /home
Quota Type: xfs
reboot the server
Next, activate quota for all accounts
in cwp.admin go to Left Menu -> Packages -> List Packages
edit all packages you have and select "Update Quota" to set the quota for all accounts using this package.
How to check if /home is mounted with quota
=============
XFS: In some cases, you would also need to modify grub conf if the above fails
If you see "noquota" in the xfs mount options for the / partition then you would need to modify file: /etc/default/grub
Find the line with the variable "GRUB_CMDLINE_LINUX" and at end of the line add: "rootflags=uquota,pquota"
Example:
Make backup and create grub config for boot
now reboot the server
after reboot run API to set quota for all users
Note: If you want emails and user home to be under the same quota then /var/vmail and /home need to be on the same partition.
install quota on your centos
Code: [Select]
yum install quota
Edit: /etc/fstab
Code: [Select]
vi /etc/fstab
replace "defaults" with "usrjquota=quota.user,jqfmt=vfsv0" for / mount point
Before (in some cases this can be different!):
Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647 / ext3 defaults 1 1
After Replace: Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647 / ext3 usrjquota=quota.user,jqfmt=vfsv0 1 1
Code: [Select]
mount -o remount /
quotacheck -avugm
quotaon -avug
If you have /home in /etc/fstab then you will need to edit line matching /home
replace "defaults" with "usrjquota=quota.user,jqfmt=vfsv0" for /home mount point
Before:
Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647 /home ext3 defaults 1 1
After Replace: Code: [Select]
UUID=ac567666-9385-4ef5-885c-80f61ec64647 /home ext3 usrjquota=quota.user,jqfmt=vfsv0 1 1
Code: [Select]
mount -o remount /home
quotacheck -avugm
quotaon -avug
Now you need to add this into the CWP Configuration
Code: [Select]
mkdir -p /usr/local/cwp/.conf/
echo "/home" > /usr/local/cwp/.conf/quota_part.conf
How to check if quota works ?
Code: [Select]
repquota -a
This will display you user limitsSet a quota for all users by package from cwp
Code: [Select]
/scripts/cwp_api account update_diskquota_all
If you had previously added users then you will need to update the quota for them, you can do that by clicking on each account edit and then saving changes, or you can edit packages and save them for all users.
XFS Quota (only for XFS file system!!!)
Code: [Select]
yum -y install quota quota-devel
edit file: /etc/fstab and add usrquota,grpquota example:
/dev/mapper/centos_root-home /home xfs defaults,usrquota,grpquota 0 0
before example
Code: [Select]
/dev/mapper/centos_root-home /home xfs defaults 0 0
aftere exampleCode: [Select]
/dev/mapper/centos_root-home /home xfs defaults,usrquota,grpquota 0 0
Activate quota as XFS for /home
in CWP.admin go to Left Menu -> Server Settings --> Disk Quota , and set
Quota Partition: /home
Quota Type: xfs
reboot the server
Next, activate quota for all accounts
in cwp.admin go to Left Menu -> Packages -> List Packages
edit all packages you have and select "Update Quota" to set the quota for all accounts using this package.
How to check if /home is mounted with quota
Code: [Select]
mount |grep home
if you have there listed usrquota,grpquota for /home then all should work fine.=============
XFS: In some cases, you would also need to modify grub conf if the above fails
Code: [Select]
# mount | grep ' / '
/dev/mapper/cl-root on / type xfs (rw,relatime,attr2,inode64,noquota)
If you see "noquota" in the xfs mount options for the / partition then you would need to modify file: /etc/default/grub
Find the line with the variable "GRUB_CMDLINE_LINUX" and at end of the line add: "rootflags=uquota,pquota"
Example:
Code: [Select]
GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet rootflags=uquota,pquota"
Make backup and create grub config for boot
Code: [Select]
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig
grub2-mkconfig -o /boot/grub2/grub.cfg
echo xfs > /usr/local/cwp/.conf/quota_type.conf
now reboot the server
Code: [Select]
reboot
after reboot run API to set quota for all users
Code: [Select]
/scripts/cwp_api account update_diskquota_all
Note: If you want emails and user home to be under the same quota then /var/vmail and /home need to be on the same partition.
1359
DNS / Re: Free DNS services
« on: September 09, 2014, 04:50:23 PM »
do you have set nameservers as requested ?
1360
FTP / Re: vsftpd default username and password
« on: September 09, 2014, 04:49:18 PM »
if you need to login as root then you need to use root credentials.
ftp connection will not work for root!
you can only use tools like file zilla and sftp connection using root credentials.
ftp connection will not work for root!
you can only use tools like file zilla and sftp connection using root credentials.
1361
Apache / Re: installation of railo 3+
« on: September 07, 2014, 01:38:50 PM »
you need to check railo documentation.
1362
FTP / Re: vsftpd default username and password
« on: September 05, 2014, 05:38:39 PM »
login details used for creating new user in CWP, same login like for user panel login.
1363
PHP / Re: error in php info
« on: September 05, 2014, 06:51:55 AM »
ignore that until new updated version
1364
E-Mail / Re: Location of Roundcube config file?
« on: September 05, 2014, 01:14:44 AM »
location of htdocs folder: /usr/local/apache/htdocs/
1365
PHP / Re: Fatal error: Call to undefined function imagecreatefromjpeg
« on: September 03, 2014, 03:29:57 PM »
you can contact support
http://centos-webpanel.com/contact
http://centos-webpanel.com/contact