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
16
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]
<?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>

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

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

19
Time:     Wed Jun 19 14:00:26 2019 -0300

The following list of files have FAILED the md5sum comparison test. This means that the file has been changed in some way. This could be a result of an OS update or application upgrade. If the change is unexpected it should be investigated:

/usr/bin/cpupower: FAILED
/bin/cpupower: FAILED

20
Code: [Select]
Time:         Tue Jun 18 09:00:14 2019 -0300
Account:      rpc
Resource:     Process Time
Exceeded:     556997 > 1800 (seconds)
Executable:   /usr/sbin/rpcbind
Command Line: /sbin/rpcbind -w
PID:          2453 (Parent PID:2453)
Killed:       No

21
E-Mail / I can not send email using PHPMailer.
« on: June 16, 2019, 02:23:08 PM »
I can not send email using PHPMailer.


Code: [Select]

2019-06-16 14:21:00 Connection: opening to ssl://srv1.server.com.br:465, timeout=300, options=array()
2019-06-16 14:21:00 Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed [/home/userxxx/public_html/vendor/phpmailer/phpmailer/src/SMTP.php line 321]
2019-06-16 14:21:00 Connection failed. Error #2: stream_socket_client(): Failed to enable crypto [/home/userxxx/public_html/vendor/phpmailer/phpmailer/src/SMTP.php line 321]
2019-06-16 14:21:00 Connection failed. Error #2: stream_socket_client(): unable to connect to ssl://srv1.server.com.br:465 (Unknown error) [/home/webfreel/public_html/vendor/phpmailer/phpmailer/src/SMTP.php line 321]
2019-06-16 14:21:00 SMTP ERROR: Failed to connect to server: (0)
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Erro: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting


22
PHP Selector / Enable php_openssl.dll
« on: June 16, 2019, 02:19:30 PM »
How to enable "php_openssl.dll" for all php versions?

23
CentOS-WebPanel GUI / error.log in /public_html
« on: June 16, 2019, 01:15:18 PM »
I would like to enable the error.log inside each account, and it is viewed in the root /public_html or in each subdomain.

24
E-Mail / lfd on srv1.server.com.br: Suspicious File Alert
« on: June 13, 2019, 02:26:43 PM »
What would these warnings be? If it is a problem how to fix?

Code: [Select]
Time:   Thu Jun 13 09:35:29 2019 -0300
File:   /tmp/php-build/php-5.5.38/makerpm
Reason: Script, starts with #!
Owner:  centos:centos (1000:1000)
Action: No action taken


Code: [Select]
Time:   Thu Jun 13 09:35:29 2019 -0300
File:   /tmp/php-build/php-5.5.38/makedist
Reason: Script, starts with #!
Owner:  centos:centos (1000:1000)
Action: No action taken

What changes are these lines:

Code: [Select]
File:   /tmp/php-build/php-5.5.38/makerpm

File:   /tmp/php-build/php-5.5.38/makedist

File:   /tmp/php-build/php-5.5.38/config.sub

File:   /tmp/php-build/php-5.5.38/buildconf

File:   /tmp/php-build/php-5.5.38/configure

File:   /tmp/php-build/php-5.5.38/vcsclean

File:   /tmp/php-build/php-5.5.38/config.guess

File:   /tmp/php-build/php-5.5.38/ltmain.sh

File:   /tmp/php-build/php-5.5.38/genfiles

File:   /tmp/php-build/php-5.5.38/server-tests-config.php

25
I am getting multiple emails from the server all similar:

Code: [Select]
Time:         Thu Jun 13 11:00:24 2019 -0300
Account:      rpc
Resource:     Process Time
Exceeded:     49902 > 1800 (seconds)
Executable:   /usr/sbin/rpcbind
Command Line: /sbin/rpcbind -w
PID:          2453 (Parent PID:2453)
Killed:       No

Code: [Select]
Time:         Thu Jun 13 10:00:23 2019 -0300
Account:      rpc
Resource:     Process Time
Exceeded:     46300 > 1800 (seconds)
Executable:   /usr/sbin/rpcbind
Command Line: /sbin/rpcbind -w
PID:          2453 (Parent PID:2453)
Killed:       No

26
Apache / SubDomain
« on: June 12, 2019, 04:06:42 PM »
I created a subdomain, but I can not access through the url, so install ssl.

27
CentOS 7 Problems / cgi-fcgi
« on: June 12, 2019, 02:29:50 PM »
How enable cgi-fcgi in php selector

28
When creating new hosting, this error is appearing:


Code: [Select]
Warning: file_get_contents(/usr/local/cwpsrv/htdocs/resources/conf/slave_dns/slave_dns_active_conf.json): failed to open stream: No such file or directory in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

AutoSSL Issue Failed![Wed Jun 12 22:58:11 -03 2019] Creating domain key
[Wed Jun 12 22:58:11 -03 2019] The domain key is here: /root/.acme.sh/cwp_certs/mydomaim.com./mydomaim.com..key
[Wed Jun 12 22:58:11 -03 2019] Single domain='mydomaim.com.'
[Wed Jun 12 22:58:12 -03 2019] Getting domain auth token for each domain
[Wed Jun 12 22:58:12 -03 2019] Create new order error. Le_OrderFinalize not found. {
  "type": "urn:ietf:params:acme:error:rejectedIdentifier",
  "detail": "Error creating new order :: DNS name ends in a period",
  "status": 400
}
[Wed Jun 12 22:58:12 -03 2019] Please check log file for more details: /root/.acme.sh/acme.sh.log


OpenDKIM not installed!


29
E-Mail / DKIM Automatic
« on: June 12, 2019, 02:09:16 AM »
How to automatically leave DKIM as soon as new hosting is created?

30
SSL / SSL for Hostname
« on: June 12, 2019, 01:53:34 AM »
I need to put ssl on my hostname.

I saw a video of the CWP channel itself, but it seems that my version is not the same as the video, not the wik link.
Links: https://www.youtube.com/watch?v=Au0aE5ZqqvU / http://wiki.centos-webpanel.com/hostname-ssl-with-letsencrypt

Could you please tell me a step by step how to install SSL on hostname?

My domain is registered, and I just created the dns zone:
Image: https://prnt.sc/o0pc8i


How should I proceed?

Thank you.

Pages: 1 [2] 3