Recent Posts

Pages: [1] 2 3 ... 10
1
CentOS Configuration / Re: Setup disk quota
« Last post by rcschaff on Today at 04:21:31 PM »
A little addition for XFS systems.  If adding quota's to fstab doesn't enable quota's, you may have to make a change to the grub bootloader, as the kernal won't load quotas by default.

1)  Verify quota's aren't on:      mount | grep ' / '
2)  If they are not on even after editing FSTAB, do the following.
a) Because "noquota" is a default kernel mounting option, we must change it in the kernel boot options.
Edit the file:
/etc/default/grub

b) Find the line with the variable "GRUB_CMDLINE_LINUX", that might look like this (it may not look exactly the same, don't worry):
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us rhgb quiet"

c) We're going to put a "rootflags=" variable at the end of the line
- And add uquota,pquota as the values
It might look something like this:
GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/swap vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos/root crashkernel=auto  vconsole.keymap=us rhgb quiet rootflags=uquota,pquota"

d) Now, based on that setup, we'll backup, then create a new grub.cfg file:
cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.orig
grub2-mkconfig -o /boot/grub2/grub.cfg

The path on some OSs has been changed to
/boot/efi/EFI/centos/grub.cfg

e) Lastly, we must reboot the box in order for the kernel to see these new options
reboot

f) We keep our fingers crossed that the box comes back, and login again.  Go back to step 0) to check the mounting options to ensure that "noquota" is gone, eg:
[root@es7-64 ~]# mount | grep ' / '
/dev/mapper/centos-root on / type xfs (rw,relatime,attr2,inode64,usrquota,prjquota)
[root@es7-64 ~]#

Once it's gone, we want to see usrquota,prjquota(or uquota,pquota, they're the same thing).
If you don't see, them, then add them to the / partition with the standard quota setup guide.

g)  Enable quota's in CWP
2
Installation / Error on MySQL Panel
« Last post by josue9243 on Today at 04:09:36 PM »
Hi, yesterday i was installed CentOS Web Panel and i get this error:
(I used the script mysql_pwd_reset, db_conn.php and .my.cnf is OK )

(I have centos-release-7-7.1908.0.el7.centos.x86_64, is really necessary centos 6?)

(http://prntscr.com/qt3iio)


3
Other / Re: Can I redirect the server's IP to a domain?
« Last post by rcschaff on Today at 04:04:05 PM »
you could use 301 redirects in the proper software config.

nginx:
server {
        listen [ip]:80;
        listen [ip]:443 ssl;
        server_name [ip];
        root /some/directory/to/server/files/but/not/used
        return 301 https://example.com$request_uri;
}
*** Alternatively, you can set one of your websites as listen [host]:443 default_server ssl;

Apache:
<VirtualHost [ip]:80>
    ServerName [ip]
    Redirect 301 / https://example.com/
</VirtualHost>
<VirtualHost [ip]:443>
    ServerName [ip]
    Redirect 301 / https://example.com/
</VirtualHost>

If you use Varnish, it get's complicated quickly
4
LMFTFY
1. Create email account in CWP cpanel or from WHM level
2. Login once to email with roundcube so the email folders will be created by dovecot
3. rsync emails from cpanel to cwp. In cwp mail are located at /var/vmail/domain/local_part
4. After rsync change owner of email folder with:  chown -R vmail.mail /var/vmail/domain/local_part

IMO, the location of user emails is fundamentally wrong in CWP. User files should all be stored within the users' own directory.
Note: mysql is also non-compliant (not a CWP issue) in that it stores user databases in /var/lib/mysql

Agreed. Emails should be stored within user's own directory like in cPanel.
5
CSF Firewall / cc_allow_filter
« Last post by pixelpadre on Today at 01:42:39 PM »
So it appears that this is not working.  There is a known bug with cc_allow_filter.  They claim that it was fixed in v14.01 but as far as I am concerned, it has not been fixed.

CWP will not update if I use cc_allow_filter.  I tried whitelisting and ignore the cwp servers ip addresses but that did not work.
6
CentOS 6 Problems / Re: SSL for Hostname.
« Last post by baransel on Today at 12:34:49 PM »
I have SSL for baransel.wtf from Symantec Encryption Everywhere, how am able to use this cert in cwp hostname?
7
CentOS 6 Problems / Re: SSL for Hostname.
« Last post by ejsolutions on Today at 12:17:37 PM »
You have to check if WEB server configured correctly.
Agree with that too, as trying the domain without panel subdomain fails. Rebuild the webserver, in Admin with just Apache -nothing fancy.
8
Installation / Re: Activation CWPPRO By SMS
« Last post by Igor S. on Today at 12:11:45 PM »
Open a ticket for billing department via https://support.centos-webpanel.com
Nobody here can help you with activation or something else.
9
Check shell in /etc/passwd and all user's limits.
10
CentOS 6 Problems / Re: SSL for Hostname.
« Last post by Igor S. on Today at 12:08:35 PM »
Hi, As I see your SSL does not work:

Code: [Select]
IgorS@login ~> curl -I https://panel.baransel.wtf
curl: (35) SSL connect error
IgorS@login ~>



You have to check if WEB server configured correctly.
Pages: [1] 2 3 ... 10