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.
1
CentOS Configuration / Xfs disk quota setup
« on: April 27, 2020, 04:31:25 PM »
I have a server at digitalocean.
I am trying to configure `disk quota setup`, but without success! because the instructions I found on the forum are confusing!
Server information:
Your disk status from the file /etc/fstab
Your Partition scheme, output of the command df -h
How should you proceed to check?
- /etc/fstab current:
change to?:
OR
change to?:
I ask this, because inside the /etc/fstab file, there is no /dev/mapper/centos_root-home.
This /dev/mapper/centos_root-home file doesn't exist either!
Could someone tell me the correct procedure for xfs disks?
I am trying to configure `disk quota setup`, but without success! because the instructions I found on the forum are confusing!
Server information:
Your disk status from the file /etc/fstab
Code: [Select]
#
# /etc/fstab
# Created by anaconda on Thu Aug 8 12:37:33 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=3ef2b806-efd7-4eef-aaa2-2584909365ff / xfs defaults 0 0
/swapfile swap swap sw 0 0
Your Partition scheme, output of the command df -h
Code: [Select]
Filesystem Size Used Avail Use% Mounted on
devtmpfs 896M 0 896M 0% /dev
tmpfs 920M 0 920M 0% /dev/shm
tmpfs 920M 105M 815M 12% /run
tmpfs 920M 0 920M 0% /sys/fs/cgroup
/dev/vda1 50G 34G 17G 67% /
tmpfs 184M 0 184M 0% /run/user/0
How should you proceed to check?
- /etc/fstab current:
Code: [Select]
UUID=3ef2b806-efd7-4eef-aaa2-2584909365ff / xfs defaults 0 0
change to?:
Code: [Select]
UUID=3ef2b806-efd7-4eef-aaa2-2584909365ff / xfs defaults,usrquota,grpquota 0 0
OR
Code: [Select]
/dev/mapper/centos_root-home / xfs defaults 0 0
change to?:
Code: [Select]
/dev/mapper/centos_root-home / xfs defaults,usrquota,grpquota 0 0
I ask this, because inside the /etc/fstab file, there is no /dev/mapper/centos_root-home.
This /dev/mapper/centos_root-home file doesn't exist either!
Could someone tell me the correct procedure for xfs disks?
2
CentOS-WebPanel Bugs / FTP does not work
« on: April 03, 2020, 09:13:15 AM »
Since the beginning of the installation, FTP does not work properly.
I always have to select this option:
But now I'm having problems, because my customers are questioning, they want to make a secure connection.
I try to connect using the quick option and look at the error:
How to fix this?
I've done all the configuration processes that exist on the site.
Thanks.
I always have to select this option:
Quote
IMG: https://prnt.sc/rs5ikk
But now I'm having problems, because my customers are questioning, they want to make a secure connection.
I try to connect using the quick option and look at the error:
Quote
IMG: https://prnt.sc/rs5hrl
How to fix this?
I've done all the configuration processes that exist on the site.
Quote
IMG: https://prnt.sc/rrugv3
Thanks.
3
E-Mail / CWP Delete deleted emails, automatically
« on: February 08, 2020, 03:39:56 PM »
We know that a big problem with full disk space is because the person deletes the emails, BUT DOES NOT CLEAN THE EXCLUDED BOX.
Is there any way to create a CRON Job where it deletes all deleted emails?
I just found this code below. But he deletes it from the inbox, and he has to manually add the domains.
Is there a way to automate this when creating the hosting?
Is there any way to create a CRON Job where it deletes all deleted emails?
I just found this code below. But he deletes it from the inbox, and he has to manually add the domains.
Is there a way to automate this when creating the hosting?
Code: [Select]
15 2 * * * /bin/find /home/account/mail/domain.com/user/new ! -mtime -30 -type f -exec rm {} \;
4
E-Mail / Schedule webmail trash cleaning
« on: November 09, 2019, 12:05:57 PM »
Schedule webmail trash cleaning.
Nowadays, the most used is imap. A lot of people delete emails, but they don't clean up the dumpsters.
Is it possible to program webmail so that every 6 months everything in the trash can be deleted?
Nowadays, the most used is imap. A lot of people delete emails, but they don't clean up the dumpsters.
Is it possible to program webmail so that every 6 months everything in the trash can be deleted?
5
DKIM / DKIM-Signature field added
« on: November 04, 2019, 04:43:21 PM »
I am having this error message:
I already accessed: CWP > Server Settings > Change Hostname
And yet it doesn't work.
How to delete and re-create for hostname?
Code: [Select]
Nov 4 12:49:09 srv1 postfix/pickup[19024]: B68B6E371D: uid=0 from=<root>
Nov 4 12:49:09 srv1 postfix/cleanup[22033]: B68B6E371D: message-id=<20191104154909.B68B6E371D@srv1.xxxxx.com.br>
Nov 4 12:49:09 srv1 opendkim[1011]: B68B6E371D: DKIM-Signature field added (s=default, d=srv1.xxxxx.com.br)
Nov 4 12:49:09 srv1 postfix/qmgr[14697]: B68B6E371D: from=<root@srv1.xxxxx.com.br>, size=1131, nrcpt=1 (queue active)
Nov 4 12:49:09 srv1 postfix/pipe[22044]: B68B6E371D: to=<sac@xxxxx.net>, relay=dovecot, delay=0.25, delays=0.15/0.06/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot service)
Nov 4 12:49:09 srv1 postfix/qmgr[14697]: B68B6E371D: removed
I already accessed: CWP > Server Settings > Change Hostname
And yet it doesn't work.
How to delete and re-create for hostname?
6
SSL / SSL does not work on hostname
« on: November 01, 2019, 11:30:28 PM »
My domain was published 1 week ago, but to this day does not recognize the domain SSL.
[Check CWP SSL] and [Check WebServers SSL] Is OK.

What to do?
[Check CWP SSL] and [Check WebServers SSL] Is OK.

What to do?
7
E-Mail / WHMCS does not send emails
« on: October 31, 2019, 09:14:05 PM »
I can't send emails from my web applications.
- WHMCS.
- PHPMailer
Among others that need to be sent via SMTP.
In outlook it works, I send and receive email.
But in WHMCS, and other scripts does not work SMTP.
- WHMCS.
- PHPMailer
Among others that need to be sent via SMTP.
In outlook it works, I send and receive email.
But in WHMCS, and other scripts does not work SMTP.
8
E-Mail / BoxTrapper
« on: October 31, 2019, 06:04:06 PM »
Is it possible to use BoxTrapper in email?
9
DNS / Primary Domain
« on: October 30, 2019, 10:41:34 PM »
I have a doubt.
The hostcia.com.br domain is the main domain, it has:
srv1.dom.com.br
ns1.dom.com.br
ns2.dom.com.br
Does this domain have to have an account created in CWP or not?
Currently, I created the SRV1, NS1 and NS2 entries right in the panel where I have the domain registered.
What should I do?
The hostcia.com.br domain is the main domain, it has:
srv1.dom.com.br
ns1.dom.com.br
ns2.dom.com.br
Does this domain have to have an account created in CWP or not?
Currently, I created the SRV1, NS1 and NS2 entries right in the panel where I have the domain registered.
What should I do?
10
E-Mail / Mail Queue
« on: October 29, 2019, 04:52:24 PM »
I just completed the installation and noticed this amount of emails from the server.
But I haven't received anything so far in my box. Is any configuration missing?
Image: https://prnt.sc/ppqy50
Thanks.
But I haven't received anything so far in my box. Is any configuration missing?
Image: https://prnt.sc/ppqy50
Thanks.
11
12
CentOS-WebPanel Bugs / Error editing package
« on: July 18, 2019, 12:07:01 AM »
Error editing package
Code: [Select]
Notice: Undefined index: update_users in /usr/local/cwpsrv/htdocs/resources/admin/modules/edit_package.php on line 0
13
PHP / PHP Upload does not send files.
« on: July 13, 2019, 01:56:42 PM »
I ran a cPanel test and the upload works, but the CWP server is not sending the file.
No error appears, shows all the upload procedure, it registers in the database, but the file does not send.
My code:
No error appears, shows all the upload procedure, it registers in the database, but the file does not send.
My code:
Code: [Select]
<?php
if ((isset($_POST["form"])) && ($_POST['form'] == "form1")) {
$ext = strtolower(substr($_FILES['arquivo']['name'],-4)); //Pegando extensão do arquivo
$arquivo = "file_".date('dmYhis') . $ext; //Definindo um novo nome para o arquivo
$dir = __DIR__.'/uploads/aulas/'; //Diretório para uploads
move_uploaded_file($_FILES['arquivo']['tmp_name'], $dir.$arquivo); //Fazer upload do arquivo
}
?>
<form id="form" method="post" autocomplete="off" enctype="multipart/form-data">
<div class="row">
<div class="col-xs-6">
<div class="form-group">
<label class="control-label">Arquivo (.zip .rar .pdf)</label>
<input name="arquivo" type="file" id="file-1" required />
</div>
</div>
<button type="submit" id="button" name="button" class="btn btn-success pull-right"><i class="icon-save bigger-110"></i> Salvar</button>
</form>
14
PHP / Create database, Email and Crontab uing php command
« on: July 12, 2019, 12:21:56 PM »
How to create using php command?
- Create SQL database;
- Upload a table;
- List, Create Delete Emails;
- Create a crontab.
- Create SQL database;
- Upload a table;
- List, Create Delete Emails;
- Create a crontab.
15
CentOS-WebPanel GUI / Does CWP have API?
« on: July 07, 2019, 11:16:30 AM »
I would like to be able to:
- Create SQL database;
- Upload a table;
- List, Create Delete Emails;
- Create a crontab.
- Create SQL database;
- Upload a table;
- List, Create Delete Emails;
- Create a crontab.