Questions tagged as 'linux'

0
answers

Change mysql root password in linux! [duplicate]

Good afternoon, guys! I'm new to the development world and I'm new to linux. I installed mysql client and server and then installed mysql-workbanch via xubuntu's program center. At no time has he asked me to set the password and I can not c...
asked by 04.10.2018 / 23:04
0
answers

PHP - Exec function, shell_exec, and system do not work correctly

Running the example documentation on the site itself works. Examples: echo exec('whoami'); $output = shell_exec('ls -l'); echo "<pre>$output</pre>"; My code does not differ so much from the examples described in the docume...
asked by 19.09.2018 / 22:12
0
answers

How to use cURL with proxy and POST method in linux terminal?

I would like to know if there is a possibility to create a POST request using a proxy via terminal. As far as I've come: curl -vd -D- -o/dev/null -x ip:porta website.com.br Always return me:    curl: (7) Failed connect to xx.xxx.xx.xx...
asked by 17.09.2018 / 05:49
1
answer

Why are apache subdomains sending to the default site?

Today I have a PHP system that uses an IP, so it looks like this: link I'm configuring subdomains to respond to requests and stay like this link link It turns out that the browser always goes to the main site, does not obey...
asked by 10.09.2018 / 15:53
0
answers

Error in socket module in Python

I'm trying to make a code that creates a TCP client: import socket target_host = 'www.google.com' target_port = 80 client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect((target_host, target_port)) client.send('GET / HTTP...
asked by 21.10.2018 / 04:37
1
answer

PHPMailer Linux Debian: EOF caught while checking if connected

Hello! I'm having a problem using PHPMailer to send an email through an external SMTP. When I try to run the code, it always shows the following error at the end:    SMTP - > NOTICE: EOF caught while checking if connectedThe following F...
asked by 05.09.2018 / 04:35
0
answers

PHPMailer: Error sending from Linux server [duplicate]

I configured an HTML page to send email with PHPMailer, and on my Windows 10 computer it sent it normally, but on the online server in Linux it returns the SMTP error: "SMTP connect () failed. link " I think it's a security or port variabl...
asked by 27.08.2018 / 21:59
0
answers

Linux Copy file giving replace in content

How could it be done for me to copy via a shell script a php file, but replacing the contents of a variable? Example: cat config-sample.php > config.php <?php $senha="[dados_a_ser_substituido]";?>     
asked by 17.08.2018 / 22:27
0
answers

While and if: Change the while and if checks for varieveis

I am creating a script for automating a process, however in the script I have to read a directory and insert the contents (filename) into a text file and while I read each line to process the files. The question is, do you have to do this same p...
asked by 21.08.2018 / 16:55
0
answers

NodeJS and PM2, do not arrow environment variables

Hello, Good evening, everyone, I have a problem with setting my environment variables. I have the following json running on PM2: module.exports = { "apps" : [{ "name" : "frontend-homologacao", "script" : "/var/www/html/site...
asked by 16.08.2018 / 01:56