
ede_linux
(usa Ubuntu)
Enviado em 16/12/2014 - 08:20h
Olá, Olá,
Estou a configurar o servidor apache2 e alterei o valor de DocumentRoot de /var/www/html para /vagrant/data/laravel/public. Os ficheiros que sofreram alteração foram:
->/etc/apache2/apache2.conf -> <Directory /vagrant/data/laravel/public>
->/etc/apache2/sites-available/000-default.conf -> DocumentRoot /vagrant/data/laravel/public
->etc/apache2/sites-available/default-ssl.conf -> DocumentRoot /vagrant/data/laravel/public
Se colocar um arquivo .html em /vagrant/data/laravel/public ele corre sem problemas!
Mas se colocar um .php ele baixa o php com o nome de "transferir".
Para além disso de correr o comando service apache2 restart ele dá o seguinte erro:
AH00558: apache2_ Could not reliably determine the server´s fully qualified domain
name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this
message.
A versão do linux é esta:
http://prntscr.com/5hc20a Esta versão é em terminal, não têm ambiente de trabalho!
Porque que isto acontece?
Obrigado pela ajuda!