Questions tagged as 'linux'

1
answer

I can not install PHP-FPM on Ubuntu

When I try to run the command sudo apt install php5.6-fpm , I'm getting the following message:    Some packages could not be installed. This may mean that   you asked for an impossible situation or, if you are using the   that some requ...
asked by 02.10.2017 / 14:39
1
answer

Webmail Linux Server

I'm developing a platform and I'll have some email accounts from this platform. As such, I would like to be able to use them via the web directly on the platform, such as www.webmail.example.com . The server I'm using is linux. Do you kno...
asked by 06.10.2017 / 20:06
2
answers

Script to check if directory is empty

I'm hitting my head to create this script. I need a script, it can be in bash or php itself, it should check if a directory has a file inside it, other than another directory. This directory I have to scan is in linux server that I have he...
asked by 11.01.2018 / 20:23
1
answer

mkdir with problem in permission of created folder [closed]

When I create the folder, it creates, but does not create with the correct permission, preventing it from creating the next folder, the chmod in the created folder comes 411. mkdir("../../UPLOADS/$albumName","0775", true); mkdir("../../...
asked by 12.01.2018 / 23:52
1
answer

Is there a root user in PHP?

The chroot() function needs the super user to work, is there a function that logs in as root?     
asked by 15.07.2017 / 21:44
2
answers

Git does not push the master branch

I was using .git normally in my project, yesterday I typed something wrong and git started to return an alert from the corrupted index file. Ok, I gave a git reset, I returned a commit and everything went back to normal. Well, I worked thi...
asked by 28.07.2017 / 15:04
1
answer

Installation CodeBlocks CentOS

I'm a beginner in programming, I just did a subject in college. I would like to install CodeBlocks on CentOS 7 (on a college machine) to edit a C program, but I'm having a hard time. I downloaded codeblocks-16.01.el6.i686.tar.xz (via Sourcefo...
asked by 05.07.2017 / 00:26
1
answer

When accessing with specific user it gives an ssh on another server [closed]

I have 2 Servers: Example: A and B. What I need: When I connect to the server A with a specific user it automatically makes a ssh on the B server, if possible already sending the login and password parameters and alr...
asked by 27.04.2017 / 21:43
1
answer

Questions with exercise in Shellscript

I would like some help to resolve these exercises: In the ex4.1.sh script, add the option to enter the word and filename directly from the command line like this: $ ./ex4.1.sh <palavra> <arquivo> In script ex4.1.sh the ou...
asked by 28.03.2017 / 15:03
2
answers

ERROR - Can not stat file / proc / 32641 / fd / 338 - What is the usefulness of the proc directory?

ERROR - Can not stat file / proc / 32641 / fd / 338 - How useful is the proc directory for the fuser? Is there an explanation in some linux manual? or in English ERROR - Can not stat file / proc / 32641 / fd / 338 - What is the us...
asked by 26.05.2017 / 23:16