Enviado em 11/09/2018 - 13:05h
Olá, sou programador web e para desenvolver meus produtos tenho localmente no meu notebook de trabalho um servidor web.Configuração:
- OS: Linux Mint 19 Tara (Ubuntu 18.04 LTS bionic)
- Apache 2.4.29
- PostgreSQL 10.5
apt-get install postgresql-10 apache2 php7.2 php7.2-mysql php7.2-pgsql libpq-dev php-pear php7.2-xsl php7.2-xdebug php7.2-gd php7.2-curl
<VirtualHost *:80>
ServerName teste.dev
ServerAlias www.teste.dev
ServerAdmin mt@mfmello.com
DocumentRoot /var/www/teste
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
<Directory "/var/www/teste">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
total 20K
drwxr-xr-x 3 root root 4,0K set 11 12:22 .
drwxr-xr-x 13 root root 4,0K set 6 00:54 ..
drwxr-xr-x 2 root root 4,0K set 6 00:55 html
lrwxrwxrwx 1 root root 33 set 11 12:22 teste -> /home/mateus/Trabalhos/teste
total 20K
drwxr-x--- 2 mateus www-data 4,0K set 11 12:24 .
drwxrwx--- 9 mateus www-data 4,0K set 11 12:20 ..
-rw-r----- 1 mateus www-data 19 set 11 12:26 index.php
<?php
die('Olá');
127.0.0.1 localhost
127.0.1.1 mateus-pc
127.0.0.1 teste.dev
127.0.0.1 www.teste.dev
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
total 8,0K
drwxr-xr-x 2 root root 4,0K set 11 12:23 .
drwxr-xr-x 8 root root 4,0K set 6 09:56 ..
lrwxrwxrwx 1 root root 33 set 11 12:23 teste.dev.conf -> ../sites-available/teste.dev.conf
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando e usando o Dconf Editor, o "regedit" para Linux
Como instalar o navegador TOR no seu Linux
Instalando Zoom Client no Ubuntu 24.04 LTS
Encriptografa... as particoes com LUKS, o que poderia dar errado? (0)
Qual a relevancia dos valores de bogomips com os Mhz e Ghz[DUVIDA] (2)