Eu instalei o apache2 executando sudo apt-get install apache2
, mas parece que algo errado aconteceu. Abaixo está a saída. Por quê?
me@mycomputer:/usr/share/apache2$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
me@mycomputer:/usr/share/apache2$ sudo dpkg --listfiles apache2
/.
/usr
/usr/share
/usr/share/bug
/usr/share/bug/apache2
/usr/share/bug/apache2/control
/usr/share/doc
/usr/share/bug/apache2/script
/usr/share/doc/apache2
UPDATE
Executando sudo apt-get install --reinstall apache2
, a saída é:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
dovecot-core libdbd-sqlite3-perl dovecot-imapd dnsmasq
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 36 not upgraded.
Need to get 0 B/1,498 B of archives.
After this operation, 0 B of additional disk space will be used.
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
(Reading database ... 194506 files and directories currently installed.)
Preparing to replace apache2 2.2.22-1ubuntu1.10 (using .../apache2_2.2.22-1ubuntu1.10_amd64.deb) ...
Unpacking replacement apache2 ...
Setting up apache2 (2.2.22-1ubuntu1.10) ...
Executando sudo service apache2 status
, a saída é:
sh: 0: getcwd() failed: No such file or directory
Apache2 is running (pid 22408).
Parece que o apache2 está sendo executado, mas como listar o conteúdo do apache2?
Além disso, existem arquivos em / etc / apache2:
/etc/apache2$ ls
apache2.conf envvars magic mods-enabled sites-available
conf.d httpd.conf mods-available ports.conf sites-enabled
Por que não consigo listar todos eles?
UPDATE
Nenhuma ideia do porquê downvoted ??? Talvez essa pergunta seja simples demais para postar aqui ???