Instale o phpmyadmin no nginx

1

Eu tento instalar o phpmyadmin para trabalhar com o nginx na minha caixa archilnux, mas parece que tenho algum problema. Os passos abaixo são exatamente o que eu fiz:

sudo pacman -S phpmyadmin

Então eu crio um link simbólico para usar exatamente como o wiki :

sudo ln -s /usr/share/webapps/phpMyAdmin /srv/http/<domain>/public_html/phpmyadmin

retorno de curvas:

curl -I http://localhost/phpmyadmin
HTTP/1.1 301 Moved Permanently
Server: nginx/1.0.5
Date: Tue, 16 Aug 2011 16:57:54 GMT
Content-Type: text/html
Content-Length: 184
Location: http://localhost/phpmyadmin/
Connection: keep-alive

O que recebo quando tento acessar por meio do chromium:

Server error
The website encountered an error while retrieving http://localhost/phpmyadmin/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this webpage later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Registro de erros:

2011/08/17 02:42:48 [error] 31015#0: *1 FastCGI sent in stderr: "PHP Warning:  require_once(): open_basedir restriction in effect. File(/usr/share/webapps/phpMyAdmin/libraries/common.inc.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/) in /usr/share/webapps/phpMyAdmin/index.php on line 33
PHP Warning:  require_once(/usr/share/webapps/phpMyAdmin/libraries/common.inc.php): failed to open stream: Operation not permitted in /usr/share/webapps/phpMyAdmin/index.php on line 33
PHP Fatal error:  require_once(): Failed opening required './libraries/common.inc.php' (include_path='.:/usr/share/pear') in /usr/share/webapps/phpMyAdmin/index.php on line 33" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /phpmyadmin/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

Espero que alguém possa me ajudar com esse problema:)

Isso é resolvido com: add / usr / share / webapps para open_basedir em php.ini:)

    
por nXqd 16.08.2011 / 20:33

1 resposta

1

Então, acho que está bem claro,

2011/08/17 02:42:48 [error] 31015#0: *1 FastCGI sent in stderr: "PHP Warning: require_once(): open_basedir restriction in effect. File(/usr/share/webapps/phpMyAdmin/libraries/common.inc.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/) in /usr/share/webapps/phpMyAdmin/index.php on line 33

De acordo com o comentário de Martin F - verifique suas configurações do php-fpm ou php.ini para ter certeza de que ele pode executar coisas nesse caminho.

    
por 16.08.2011 / 21:39

Tags