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

Pages: [1] 2 3
CSF Firewall / ADD IP in email Excessive resource usage
« on: April 06, 2021, 10:31:37 AM »
I have a system, where several people access it.

Yesterday I started receiving emails (lfd on server: Excessive resource usage).

Code: [Select]
Time: Tue Apr 6 03:00:08 2021 -0300
Account: XXXXX
Resource: Process Time
Exceeded: 31331 > 1800 (seconds)
Executable: /usr/local/bin/php-cgi
Command Line: /usr/local/bin/php-cgi /home/XXXXX/public_html/painel/panel.php
PID: 23728 (Parent PID:14690)
Killed: No

But in the emails you don't have the person's IP.

It is possible to include the IP in this email I receive, or other data such as the Title of the page, as it has the name of the user logged in.


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

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

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?

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.



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?

Code: [Select]
15 2 * * * /bin/find /home/account/mail/ ! -mtime -30 -type f -exec rm {} \;

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?

DKIM / DKIM-Signature field added
« on: November 04, 2019, 04:43:21 PM »
I am having this error message:

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=<>
Nov  4 12:49:09 srv1 opendkim[1011]: B68B6E371D: DKIM-Signature field added (s=default,
Nov  4 12:49:09 srv1 postfix/qmgr[14697]: B68B6E371D: from=<>, size=1131, nrcpt=1 (queue active)
Nov  4 12:49:09 srv1 postfix/pipe[22044]: B68B6E371D: to=<>, 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?

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?

E-Mail / WHMCS does not send emails
« on: October 31, 2019, 09:14:05 PM »
I can't send emails from my web applications.

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

E-Mail / BoxTrapper
« on: October 31, 2019, 06:04:06 PM »
Is it possible to use BoxTrapper in email?

DNS / Primary Domain
« on: October 30, 2019, 10:41:34 PM »
I have a doubt.

The domain is the main domain, it has:

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?

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?



CWP API / Folder V1
« on: July 30, 2019, 02:09:32 AM »
Where is this path located on the server?

> http://my-ip:2304/v1/

Which way to locate this folder V1?

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

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:

Code: [Select]
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 />

      <button type="submit" id="button" name="button" class="btn btn-success pull-right"><i class="icon-save bigger-110"></i> Salvar</button>

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.

Pages: [1] 2 3