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
Servidor de Backup com Ubuntu Server 24.04 LTS, RAID e Duplicati (Dell PowerEdge T420)
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Dica para encontrar diversos jogos Indies criativos
Instalando Discord no Debian 13
Instalar driver Nvidia no Debian 13
Redimensionando, espelhando, convertendo e rotacionando imagens com script
Instalar Linux e grub em hd ssd externo [RESOLVIDO] (5)
Software livre - será que eu estou tão errado assim? (14)