Questions tagged as 'ubuntu'

1
answer

Extract private key from file with extension .DER

I need to extract the private key from a .DER file, however analyzing the openssl_pkey_get_private I have identified that it is necessary to pass as a parameter a file with the .PEM extension. I tried to see the contents of th...
asked by 03.07.2018 / 13:53
1
answer

PHP Mailer or postfix redirecting to gmail?

I have a Ubuntu server (LAMP) and I need to send emails via PHP, however using my account in gmail, I do not want to have an email server of my own. I need to set one of two ways below to do this: 1 - Install postfix to redirect to my gmail...
asked by 15.09.2014 / 07:52
1
answer

CakePhp via Shell returns error: class HelloShell could not be loaded

I configured and installed everything with CakePhp for use via the command line in ubuntu. I created and saved the following: class HelloShell extends AppShell { public function main() { $this->out('Hello world.'); } } What is their...
asked by 09.02.2014 / 11:22
1
answer

Error saving directory image with PHP

I made a page that administers a website that is responsible for including new lawyers in a 'bootstrap carousel'. On my machine it works perfectly, but on the server it is impossible to save the image that is loaded. I will explain: The image...
asked by 21.09.2017 / 21:00
1
answer

Pointers in college

I am studying pointers and this is code used as an example that is in the material given by the faculty. I have been replicating this code in my machine and the output is different from the one presented in the material. Code: #include <std...
asked by 29.10.2017 / 00:08
2
answers

Error copying files between servers [closed]

I am copying files via rsync between two linux servers, the command I am using is: rsync -Cravzpt --remove-source-files --exclude 'script.sh' --exclude 'index.php' /var/www/html/bkpserver/tarefario [email protected]:/var/www/html/ But wh...
asked by 19.07.2017 / 23:01
1
answer

Install PCNTL on Ubuntu 16.04 PHP7

I have a GPS application that your manual is written for PHP 5, but I would like to use PHP 7. I was able to install with no problem, but when I have to install PCNTL I can not. In PHP 5 the procedure is as follows: apt-get instal...
asked by 09.06.2017 / 03:38
3
answers

Crontab Linux run PHP script at a frequency of less than 1 minute

Please run the crontab to run every 1 second, you should run a .php script on the Debian Linux server. root / usr / bin / php5 -q /var/www/cloudns.php When running manual, it performs on a good, plus adding to there in cro...
asked by 15.03.2017 / 03:20
3
answers

Update Python on LE 4.0 (Ubuntu 10)

Hello I need to use SimpleHttpServer and only have it for Python 2.6.6 and above and LE 4.0 is Python 2.6.5. As it does not have software center (at least I did not find) I tried this code in the terminal but it gave several errors: sudo...
asked by 11.09.2016 / 13:13
2
answers

Error in using aliases and read in ShellScript

I'm trying to create a command in the .bashrc of ubuntu, however I'm having a problem, I'm trying to create a folder with the variable entered at the time of calling the alias, but this is giving an error. When I open the terminal it already ask...
asked by 20.02.2016 / 17:14