Instale o servidor da lâmpada usando o tasksel

1

Recentemente, comecei a trabalhar no Ubuntu para o desenvolvimento web.

Inicialmente eu instalei o servidor Zend no meu Ubuntu 12.04.3 LTS. Mas depois decidi ir com "lamp-server", então eu instalei o servidor Zend rodando

/usr/local/zend/bin/uninstall.sh

como mostrado no link

Agora eu quero instalar o servidor da lâmpada usando o tasksel executando o seguinte comando

sudo tasksel install lamp-server

mas estou com problemas para instalá-lo. Eu recebo a página de erro quando vou ao localhost em um navegador.

Qualquer ajuda será apreciada.

EDITOS DE DISCUSSÃO EM COMENTÁRIOS

EDIT 1

Depois de executar sudo apt-get install lamp-server^ , recebo esta mensagem:

sudo apt-get install lamp-server^
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'apache2-utils' for task 'lamp-server'
Note, selecting 'libwrap0' for task 'lamp-server'
Note, selecting 'libnet-daemon-perl' for task 'lamp-server'
Note, selecting 'libclass-isa-perl' for task 'lamp-server'
Note, selecting 'libaprutil1-dbd-sqlite3' for task 'lamp-server'
Note, selecting 'libswitch-perl' for task 'lamp-server'
Note, selecting 'perl' for task 'lamp-server'
Note, selecting 'libcap2' for task 'lamp-server'
Note, selecting 'libhtml-template-perl' for task 'lamp-server'
Note, selecting 'libdbi-perl' for task 'lamp-server'
Note, selecting 'apache2.2-bin' for task 'lamp-server'
Note, selecting 'mysql-client-core-5.5' for task 'lamp-server'
Note, selecting 'libdbd-mysql-perl' for task 'lamp-server'
Note, selecting 'mysql-server-5.5' for task 'lamp-server'
Note, selecting 'libapr1' for task 'lamp-server'
Note, selecting 'mysql-common' for task 'lamp-server'
Note, selecting 'mysql-client-5.5' for task 'lamp-server'
Note, selecting 'libaprutil1-ldap' for task 'lamp-server'
Note, selecting 'apache2-mpm-prefork' for task 'lamp-server'
Note, selecting 'libplrpc-perl' for task 'lamp-server'
Note, selecting 'tcpd' for task 'lamp-server'
Note, selecting 'apache2' for task 'lamp-server'
Note, selecting 'mysql-server-core-5.5' for task 'lamp-server'
Note, selecting 'apache2.2-common' for task 'lamp-server'
Note, selecting 'mysql-server' for task 'lamp-server'
Note, selecting 'ssl-cert' for task 'lamp-server'
Note, selecting 'perl-modules' for task 'lamp-server'
Note, selecting 'libmysqlclient18' for task 'lamp-server'
Note, selecting 'php5-mysql' for task 'lamp-server'
Note, selecting 'php5-cli' for task 'lamp-server'
Note, selecting 'libapache2-mod-php5' for task 'lamp-server'
Note, selecting 'libaprutil1' for task 'lamp-server'
Note, selecting 'php5-common' for task 'lamp-server'
libapr1 is already the newest version.
libaprutil1 is already the newest version.
libaprutil1-dbd-sqlite3 is already the newest version.
libaprutil1-ldap is already the newest version.
libcap2 is already the newest version.
libclass-isa-perl is already the newest version.
libdbd-mysql-perl is already the newest version.
libdbi-perl is already the newest version.
libhtml-template-perl is already the newest version.
libnet-daemon-perl is already the newest version.
libplrpc-perl is already the newest version.
libswitch-perl is already the newest version.
libwrap0 is already the newest version.
tcpd is already the newest version.
apache2-mpm-prefork is already the newest version.
apache2-utils is already the newest version.
apache2.2-bin is already the newest version.
apache2.2-common is already the newest version.
libapache2-mod-php5 is already the newest version.
libmysqlclient18 is already the newest version.
mysql-client-5.5 is already the newest version.
mysql-client-core-5.5 is already the newest version.
mysql-common is already the newest version.
mysql-server-5.5 is already the newest version.
mysql-server-core-5.5 is already the newest version.
perl is already the newest version.
perl-modules is already the newest version.
php5-cli is already the newest version.
php5-common is already the newest version.
php5-mysql is already the newest version.
ssl-cert is already the newest version.
The following NEW packages will be installed:
  apache2 mysql-server
0 upgraded, 2 newly installed, 0 to remove and 348 not upgraded.
Need to get 0 B/13.0 kB of archives.
After this operation, 146 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Selecting previously unselected package apache2.
(Reading database ... 182247 files and directories currently installed.)
Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1.5_i386.deb) ...
Selecting previously unselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.5.37-0ubuntu0.12.04.1_all.deb) ...
Setting up apache2 (2.2.22-1ubuntu1.5) ...

EDIT 2 Parece lamp-server foi instalado corretamente, mas quando vou para localhost recebo este erro "Não é possível conectar o Firefox não pode estabelecer uma conexão com o servidor no localhost."

Eu tentei reiniciar o apache2 usando sudo service apache2 restart apenas para enfrentar esse erro:

  

Erro de sintaxe na linha 239 do /etc/apache2/apache2.conf: Não foi possível abrir o arquivo de configuração /etc/phpmyadmin/apache.conf: Nenhum arquivo ou diretório   Ação 'configtest' falhou.   O log de erros do Apache pode ter mais informações.   ... falhe!

    
por user11 26.04.2014 / 07:58

2 respostas

0

Desinstale o apache2 e reinstale-o novamente. Parece que há um problema com seus arquivos de configuração do apache2. Execute os comandos abaixo:

sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
sudo apt-get autoremove

Para confirmar que foi removido, execute: which apache2 ele deve retornar uma linha em branco ou executar sudo service apache2 start ele deve retornar 'apache2: serviço não reconhecido'

Agora, para reinstalar novamente, execute:

sudo apt-get install apache2

O localhost agora deve estar funcionando.

    
por Parto 26.04.2014 / 09:32
1

Você precisa executar a instalação nesta sequência:

  1. sudo apt-get update
  2. sudo apt-get install tasksel
  3. sudo tasksel install lamp-server
por user418819 10.06.2015 / 21:05