Questions tagged as 'apache2'

2
answers

Restrict folder and files with .htaccess

I have the following directory: examples file.php file2.php helpers file3.php secret .htaccess index.html file.json .gitignore index.php README.md My .htaccess file contains the following: RewriteEngine On # Pro...
asked by 22.02.2017 / 15:21
1
answer

why PHP Script does not run, but if it runs "phpinfo ();"?

I am working with a LAMP architecture, with apache2 server, php7.0 and MYSql, in ubuntu 16.04, and managed to configure the route for my development, in this case, that goes from /var/www/ to /var/www/html/midesarrollo , to prove it...
asked by 06.04.2018 / 02:34
1
answer

Database .NET Core Reverse Proxy

Currently, for entertainment, I am setting up a .NET Core server on a raspberry pi 3 with raspbian. So far I have not had many problems and I have a kestrel + apache server with reverse proxy. My problem comes when I want to add a database. I...
asked by 13.03.2018 / 18:18
0
answers

Is it possible to configure Apache to deploy ssl and not ssl sites?

The question I have is how to configure an Apache server to deploy several sites, some with ssl certificate and others without ssl certificate. Let's say I have the following sites: dominio1.com, dominio2.com and dominio3.com. The situation w...
asked by 16.03.2018 / 17:45
1
answer

PHP Warning: date (): It is not safe to rely on the system's timezone settings

Greeting This error comes to me in my EC2 instance of Centos.    PHP Warning: date (): It is not safe to rely on the system's timezone   settings.       You are required to use the date.timezone setting or the   date_default_timezone_se...
asked by 11.04.2018 / 17:10
1
answer

Appropriate use of .htaccess

I have a server with a web application developed in laravel, I am trying to configure the .htaccess file so that, if a URL is entered with index.php , it disappears. I am currently using these lines: RewriteCond %{THE_REQUEST} ^.*/ind...
asked by 29.06.2017 / 18:15
1
answer

file_get_contents () permission denied failed to open stream

I have, if I'm right, 4 hours (and followed) looking around the Stackoverflow forum (so they do not tell me to take a look at the tour), as well as multiple threads in other forums such as DigitalOcean, the solution to the famous problem of perm...
asked by 22.04.2018 / 04:08
0
answers

Problem to access the Apache server from a local network, with domain name and SSL

I have an Apache server configured in Ubuntu 16 on a machine with a fixed ip 192.168.1.130. In the default configuration, it is possible to access this server from other machines (of the same network) without problems. As I am working with socke...
asked by 04.12.2018 / 14:23
1
answer

Apache shows me the php code instead of executing it

Good I come with this question that I have tried to find solution but I can not find it I have little experience in linux and I am learning, the version where I have everything installed is ubuntu 16 I am using vagrant creat...
asked by 05.12.2018 / 01:25
1
answer

change the DocumentRoot in lamp (php, mysql and apache)?

Try changing to ubuntu in my LAMP the DocumentRoot in httpd.config , with this data: "/home/pepe/Escritorio/htdocs" , restart the web server and nothing. Do you know someone I'm missing? Thanks Greetings     
asked by 29.08.2018 / 16:11