Questions tagged as 'linux'

1
answer

restrict access htaccess

I have the following folder structure: Iwouldlikeanyexternaldirectaccessmadetofilesinthehelperandusefuldirectoriestobeforwardedtotheindex.htmlfilethatisintherootofthesite.Thatis,Iwanttheonlypagethatcanbeaccesseddirectly(byanapponasmartphone)...
asked by 21.01.2017 / 19:12
1
answer

Invalid argument in mmap

I want to write to the file "server.log" and when compiling the code, the result is "Invalid argument" in the function "mmap". void MMP(){ char* addr; int fd; struct stat sb; fd = open("server.log", O_WRONLY | O_CREAT, 0700);...
asked by 25.11.2016 / 01:11
0
answers

FIFO - Restore communication in C ++

I have a main program written in C ++. It triggers child programs using vfork () and execl (). The communication between them works perfectly using FIFO (the parent writes and the child reads). In the main program the sequence to establish th...
asked by 17.11.2016 / 14:05
1
answer

Release access to www with Apache2

I use the Elementary OS , and I have a Windows virtual machine , I want Windows to access the Apache2 I installed Linux, my local network is already configured, I can give ping to my Linux and vice versa. But when I access the IP...
asked by 28.10.2016 / 02:30
0
answers

How to change environment variable path from $ HOME to another?

The intention is to load with you all "created or downloaded" files, and mount it again on any LiveCD distro, leaving it as the default directory. Note that the key to this reasoning logic is to only save files created and come from the int...
asked by 21.10.2016 / 19:22
0
answers

Files are not changed on the server

We have the following problem, when uploading the files to a ubuntu 14.04 linux server, the changes made to the files have no effect on the server, only locally, we already checked the file on the server, it changes perfectly, but in the applica...
asked by 07.10.2016 / 21:24
0
answers

How to install apache 2.2.31 on fedora?

I need to maintain a site that only runs with this setting: Apache: 2.2.31 php: 5.4.45 mysql: 5.5.50 -cll I'm trying to setup in fedora23, I've already removed apt related to apache that was installed and tried to install again follow...
asked by 06.09.2016 / 19:59
1
answer

Error Umake Android [closed]

I have a problem, I installed package by package, but when I was using "umke android" or "Sudo umake android" , it returns these errors, google, but I have not found the solution yet. Error print: link Note: I did not copy the e...
asked by 28.07.2016 / 18:41
1
answer

"sh: 1: Syntax error: word unexpected (expecting") ")" when using dns function

#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <unistd.h> #include <string.h> void verbose() { printf("Ói eu aqui. \n"); exit(0); }//FECHA verbose void ajuda() { printf("Ajuda? Nem a...
asked by 11.08.2016 / 01:42
3
answers

syntax error near unexpected token 'fi' Linux

I had to try to make a code to automate steamcmd but I always got this error syntax error near unexpected token 'fi' , could someone help me? Code: STEAMCMDDOWN="https://steamcdn-a.akamihd.net/client/installer/steamcmd_linux.tar.gz" STEA...
asked by 15.07.2016 / 17:03