Fórum Ubuntu Linux - PT
Suporte Técnico => Servidores => Tópico iniciado por: Arthur Bernardes em 28 de Julho de 2013, 23:50
-
Amigos, a fim de testes, decidi instalar o SMF em localhost, mas quando inicio a instalação por localhost/index.php, ele redireciona para install.php, e me reporta o seguinte erro.
A critical error has occurred.
This installer was unable to find the installer's language file or files. They should be found under:
/Themes/default/languages
In some cases, FTP clients do not properly upload files with this many folders. Please double check to make sure you have uploaded all the files in the distribution.
If that doesn't help, please make sure this install.php file is in the same place as the Themes folder.
If you continue to get this error message, feel free to look to us for support.
Já verifiquei na pasta /var/www, e index.php, install.php está na pasta juntamente com as outras.
agreement.txt index.php Packages ssi_examples.shtml install_2-0_mysql.sql readme.html SSI.php
attachments install_2-0_postgresql.sql Settings_bak.php subscriptions.php
avatars install_2-0_sqlite.sql Settings.php
cache install.php Smileys Themes
index.html license.txt Sources
news_readme.html ssi_examples.php
Agradeço a ajuda de todos.
-
Como você fez? Baixou do site e jogou em /var/www? O que há em Themes/default/languages? E as permissões?
-
Sim, baixei do site, pelo seguinte link: http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-4_install.zip (http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-4_install.zip)
Abri o descompactador de arquivos como "root", e joguei dentro de /var/www
O conteúdo de Themes/default/languages é.
Admin.english.php ManageSmileys.english.php
EmailTemplates.english.php Manual.english.php
Errors.english.php ModerationCenter.english.php
Help.english.php Modifications.english.php
index.english.php Modlog.english.php
index.php Packages.english.php
Install.english.php PersonalMessage.english.php
Login.english.php Post.english.php
ManageBoards.english.php Profile.english.php
ManageCalendar.english.php Reports.english.php
ManageMail.english.php Search.english.php
ManageMaintenance.english.php Settings.english.php
ManageMembers.english.php Stats.english.php
ManagePaid.english.php Themes.english.php
ManagePermissions.english.php Who.english.php
ManageScheduledTasks.english.php Wireless.english.php
ManageSettings.english.php
As permissões:
total 540
-rw-r--r-- 1 root root 37598 Jun 6 2011 Admin.english.php
-rw-r--r-- 1 root root 34754 Jun 6 2011 EmailTemplates.english.php
-rw-r--r-- 1 root root 33448 Jun 6 2011 Errors.english.php
-rw-r--r-- 1 root root 62504 Jun 6 2011 Help.english.php
-rw-r--r-- 1 root root 31287 Jan 17 2013 index.english.php
-rw-r--r-- 1 root root 217 Set 24 2010 index.php
-rw-r--r-- 1 root root 22597 Jun 6 2011 Install.english.php
-rw-r--r-- 1 root root 9742 Jun 6 2011 Login.english.php
-rw-r--r-- 1 root root 6102 Jun 6 2011 ManageBoards.english.php
-rw-r--r-- 1 root root 2291 Jun 6 2011 ManageCalendar.english.php
-rw-r--r-- 1 root root 1884 Jun 6 2011 ManageMail.english.php
-rw-r--r-- 1 root root 16797 Jun 6 2011 ManageMaintenance.english.php
-rw-r--r-- 1 root root 7650 Jun 6 2011 ManageMembers.english.php
-rw-r--r-- 1 root root 13277 Jun 6 2011 ManagePaid.english.php
-rw-r--r-- 1 root root 30012 Jun 7 2011 ManagePermissions.english.php
-rw-r--r-- 1 root root 3555 Jun 6 2011 ManageScheduledTasks.english.php
-rw-r--r-- 1 root root 27900 Jun 6 2011 ManageSettings.english.php
-rw-r--r-- 1 root root 5835 Jun 6 2011 ManageSmileys.english.php
-rw-r--r-- 1 root root 2829 Jun 11 2011 Manual.english.php
-rw-r--r-- 1 root root 8726 Jun 6 2011 ModerationCenter.english.php
-rw-r--r-- 1 root root 40 Jun 6 2011 Modifications.english.php
-rw-r--r-- 1 root root 5349 Jun 6 2011 Modlog.english.php
-rw-r--r-- 1 root root 17987 Jun 6 2011 Packages.english.php
-rw-r--r-- 1 root root 9813 Jun 6 2011 PersonalMessage.english.php
-rw-r--r-- 1 root root 9519 Jun 6 2011 Post.english.php
-rw-r--r-- 1 root root 30098 Jun 6 2011 Profile.english.php
-rw-r--r-- 1 root root 7872 Jun 6 2011 Reports.english.php
-rw-r--r-- 1 root root 9623 Jun 6 2011 Search.english.php
-rw-r--r-- 1 root root 245 Jun 6 2011 Settings.english.php
-rw-r--r-- 1 root root 1690 Jun 6 2011 Stats.english.php
-rw-r--r-- 1 root root 10436 Jun 6 2011 Themes.english.php
-rw-r--r-- 1 root root 10291 Jun 6 2011 Who.english.php
-rw-r--r-- 1 root root 1830 Jun 6 2011 Wireless.english.php
-rw-r--r-- 1 root root 3355 Set 24 2010 agreement.txt
drwx------ 2 root root 4096 Jul 28 23:43 attachments
drwx------ 4 root root 4096 Jul 28 23:43 avatars
drwx------ 2 root root 4096 Jul 28 23:43 cache
-rwxr--r-- 1 root root 931 Jul 15 17:18 index.html
-rw-r--r-- 1 root root 13981 Jan 17 2013 index.php
-rw-r--r-- 1 root root 64540 Jan 17 2011 install_2-0_mysql.sql
-rw-r--r-- 1 root root 131956 Jan 17 2011 install_2-0_postgresql.sql
-rw-r--r-- 1 root root 122074 Jan 17 2011 install_2-0_sqlite.sql
-rw-r--r-- 1 root root 90276 Jan 20 2013 install.php
-rw-r--r-- 1 root root 1490 Jun 4 2011 license.txt
-rw-r--r-- 1 root root 2569 Jan 20 2013 news_readme.html
drwx------ 3 root root 4096 Jul 28 23:43 Packages
-rw-r--r-- 1 root root 22204 Jun 9 2011 readme.html
-rw-r--r-- 1 root root 1962 Jun 4 2011 Settings_bak.php
-rw-r--r-- 1 root root 2863 Jun 4 2011 Settings.php
drwx------ 5 root root 4096 Jul 28 23:43 Smileys
drwx------ 2 root root 4096 Jul 28 23:43 Sources
-rw-r--r-- 1 root root 28560 Jun 6 2011 ssi_examples.php
-rw-r--r-- 1 root root 6070 Out 24 2010 ssi_examples.shtml
-rw-r--r-- 1 root root 74088 Jan 17 2013 SSI.php
-rw-r--r-- 1 root root 8604 Nov 29 2011 subscriptions.php
drwx------ 4 root root 4096 Jul 28 23:43 Themes
Muito obrigado pela atenção.
-
O apache (e por consequência o php), é executado por padrão - no Ubuntu - pelo usuário www-data, grupo www-data. Da maneira que estão as permissões, dono e grupo, não é possível rodar. O www-data (ou usuário/grupo que você escolher) tem que ter permissão de execução nos diretórios, e de leitura dos scripts. Se me lembro bem, o readme mostra isso também.
-
Obrigado pela ajuda, qualquer problema reporto aqui.
Abraços.
-
Não tá dando certo, estou precisando instalar a CMS Joomla no meu computador de trabalho, mas não consigo executar a instalação, por causa de um "Erro no servidor", suspeito que seja problema de permissão.
Veja como estão:
drwx------ 10 root root 4096 Ago 23 16:38 administrator
drwx------ 2 root root 4096 Ago 23 16:38 bin
drwx------ 2 root root 4096 Ago 23 16:38 cache
drwx------ 2 root root 4096 Ago 23 16:38 cli
drwx------ 14 root root 4096 Ago 23 16:38 components
-rw-rw-r-- 1 root www-data 296 Ago 23 14:07 dados.php
-rw-r--r-- 1 arthur arthur 3118 Jul 31 23:15 htaccess.txt
drwx------ 5 root root 4096 Ago 23 16:38 images
drwx------ 2 root root 4096 Ago 23 16:38 includes
-rw-rw-r-- 1 root www-data 4098 Ago 23 13:47 index.php
-rw-r--r-- 1 arthur arthur 1544 Jul 31 23:15 instalation.php
drwx------ 11 root root 4096 Ago 23 16:38 installation
-rw-r--r-- 1 arthur arthur 1907 Jul 31 23:16 joomla.xml
drwx------ 4 root root 4096 Ago 23 16:38 language
drwx------ 4 root root 4096 Ago 23 16:38 layouts
drwx------ 10 root root 4096 Ago 23 16:38 libraries
-rw-r--r-- 1 arthur arthur 17816 Jul 31 23:15 LICENSE.txt
drwx------ 2 root root 4096 Ago 23 16:38 logs
drwx------ 16 root root 4096 Ago 23 16:38 media
drwx------ 28 root root 4096 Ago 23 16:38 modules
drwx------ 13 root root 4096 Ago 23 16:38 plugins
-rw-r--r-- 1 arthur arthur 4358 Jul 31 23:15 README.txt
-rw-r--r-- 1 arthur arthur 865 Jul 31 23:15 robots.txt.dist
drwx------ 5 root root 4096 Ago 23 16:38 templates
drwx------ 2 root root 4096 Ago 23 16:38 tmp
-rw-r--r-- 1 arthur arthur 1715 Jul 31 23:15 web.config.txt
Nem o usuário root nem o grupo www-data tem permissão rwx nos arquivos contidos na pasta /var/www, já tentei de todas as formas aplicar a permissão, cheguei a abrir o Nautilus como root e alterar as permissões, mas depois de 2 segundos, elas voltam ao zero de novo!
Por padrão, ela está assim.
- http://s5.postimg.org/xlth0r49z/Propriedades_de_www_como_super_usu_rio_004.jpg (http://s5.postimg.org/xlth0r49z/Propriedades_de_www_como_super_usu_rio_004.jpg)
Mas quando altero, para deixar assim.
- http://s5.postimg.org/tdyos02uf/Propriedades_de_www_como_super_usu_rio_005.jpg (http://s5.postimg.org/tdyos02uf/Propriedades_de_www_como_super_usu_rio_005.jpg)
Dá dois segundos e ela volta ao padrão da primeira imagem.
O que posso fazer para contornar esse problema?
Obrigado desde já.
-
Apenas uma pergunta que pode parecer boba mas o LAMP está instalado e configurado corretamente nessa máquina?
T+
-
Dentro da pasta /var/www, execute o comando:
chown www-data:www-data * -R
e tente novamente executar a instalação.
-
Sim, e funcionando bem.
Carrega os .php normalmente.
A página index.php abre sem nenhum problema.
Mas o instalation.php não abre, no meu notebook consigo alterar a permissão e instalar normalmente, no desktop não.
Segui os mesmos passos para instalar o LAMP em ambos.
Obrigado pela ajuda Certo (ops!!, quer dizer Creto ;D).
=====================
Felix (Feliz), sua dica deu certo de primeira, acho que foi o inverso dos comandos que fiz.
Eu executei.
chown -R root:www-data *
Obrigado amigão, deu certo.