OCS Problema na instalacao.

Iniciado por RazorBlack, 09 de Setembro de 2011, 13:42

tópico anterior - próximo tópico

RazorBlack

Ola pessoal!

Meu objetivo é montar um sistema de gerenciamento de inventario de um sistema de computação utilizando o OCS + GLPI rodando em cima do UBUNTU.

Possuo os seguintes recursos:

Notebook CORE I3-350M - 3 GB RAM DDR3 1333mhz
PHP - APACHE - MYSQL já instalados.

efetuei a instalacao através do tutorial abaixo:
http://cooperati.com.br/2011/04/28/inventario-de-maquinas-com-ocs/

Estou com problemas na instalacao do ocsreports.
Ontem ao tentar acessar a pagina de instalação(http://127.0.0.01/ocsreports/instal.php) eu recebia a seguinte mensagem:

Forbidden
You don't have permission to access /ocsreports/install.php on this server.
Apache/2.2.17 (Ubuntu) Server at 127.0.0.1 Port 80

Tentei mudar as permissoes do arquivo ocsreports.conf dando permissao com "Allow from all" mas nao obtive sucesso.

E hj ao tentar acessar a pagina http://127.0.0.1/ocsreports/instal.php eu recebo uma mensagem de pagina nao encontrada ou a pagina simplesmente aparece em branco.

Ja tentei reiniciar o apache e o mysql porém nao obtive sucesso.

zekkerj

Olá Razorblack,

Mostre o conteúdo do arquivo /var/log/apache2/error_log referente a esse erro no acesso.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

RazorBlack

[Thu Sep 08 15:04:01 2011] [notice] Apache/2.2.17 (Ubuntu) configured -- resuming normal operations
[Thu Sep 08 15:04:02 2011] [notice] Graceful restart requested, doing restart
[Thu Sep 08 15:04:02 2011] [notice] Apache/2.2.17 (Ubuntu) configured -- resuming normal operations
[Thu Sep 08 15:31:15 2011] [notice] Graceful restart requested, doing restart
[Thu Sep 08 15:31:15 2011] [notice] Apache/2.2.17 (Ubuntu) mod_ssl/2.2.17 OpenSSL/0.9.8o configured -- resuming normal operations
[Thu Sep 08 16:30:08 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Thu Sep 08 20:19:49 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Sep 08 20:44:47 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Thu Sep 08 20:45:53 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Sep 08 20:46:42 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 00:38:36 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 01:20:00 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 01:20:02 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 01:23:51 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 01:23:51 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 01:25:52 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 01:25:52 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 01:26:43 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 01:26:44 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 01:27:31 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:27:31 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:30:34 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:30:49 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 01:31:57 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:31:57 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:39:37 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:39:37 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:39:40 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:39:40 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:39:44 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:39:44 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:42:12 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:42:12 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:42:12 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:42:49 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 01:42:49 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:42:49 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Fri Sep 09 01:57:18 2011] [error] [client 127.0.0.1] client denied by server configuration: /usr/share/ocsinventory-server/ocsreports/install.php
[Fri Sep 09 02:43:31 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 13:18:32 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 13:19:16 2011] [error] [client 127.0.0.1] File does not exist: /var/www/ocs
[Fri Sep 09 13:19:21 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:23:25 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 13:23:27 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 13:23:40 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:23:48 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:23:50 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:26:10 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 13:26:12 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 13:26:22 2011] [error] [client 127.0.0.1] File does not exist: /var/www/ocs
[Fri Sep 09 13:26:26 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:31:59 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:32:06 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:32:16 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 13:46:30 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 15:05:17 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 15:05:56 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 15:07:25 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0
[Fri Sep 09 16:41:06 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 19:03:23 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 19:13:29 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 19:14:40 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 19:44:42 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Fri Sep 09 20:21:21 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Fri Sep 09 20:34:46 2011] [notice] caught SIGTERM, shutting down
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/ming.ini on line 1 in Unknown on line 0
[Sat Sep 10 00:30:47 2011] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.2 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8o mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sat Sep 10 00:33:22 2011] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Sat Sep 10 00:33:28 2011] [error] [client 127.0.0.1] PHP Fatal error:  Allowed memory size of 262144 bytes exhausted (tried to allocate 261900 bytes) in Unknown on line 0

zekkerj

Tem dois erros bem significativos no seu PHP... o primeiro é fácil, um comentário com "#" no arquivo de configuração, quando agora só se aceita o comentário com ";".

Já o segundo é mais complicado, relativo à configuração de memória do PHP. Merece uma olhada com muito carinho...
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

RazorBlack

zekkerj

Sabe como faço para resolver o problema relacionado a memória do php?

zekkerj

PHP não é o meu forte. Quando eu passo por uma situação como essa, copio a linha do erro e jogo no Google.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D

RazorBlack

Ok amigo!

De qualquer forma, muito grato!

Rui_Guimaraes

Alguns tutoriais falam que temos que aumentar os parâmetros no PHP no Apache, tenta ai:

Alterar php.ini [/etc/php5/apache2/php.ini]
# vi /etc/php5/apache2/php.ini
post_max_size = 88M
upload_max_filesize = 22M


Rui_Guimaraes

Depois tem que reiniciar o apache.

- reiniciar o apache
# /etc/init.d/apache2 restart