# Problem with phpmyadmin

**URL:** <https://www.ruby-forum.com/t/problem-with-phpmyadmin/187657>\
**Category:** NGINX\
**Created:** [April 27, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/problem-with-phpmyadmin/187657 "2010-04-27T14:01:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedroche](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pedroche](https://www.ruby-forum.com/u/pedroche)\
**Post date:** [April 27, 2010, 2:01pm UTC](https://www.ruby-forum.com/t/problem-with-phpmyadmin/187657/1 "2010-04-27T14:01:01Z")

</div>

Hi all,

I have read all the topics in the forum related with problems  
nginx\<-\>phpmyadmin but I cannot fix this …

PHP works ok (phpinfo test working) but when access phpmyadmin I get the  
following error:

“Error: Cannot start session without errors please check errors given in  
your PHP and For webserver log file and configure your PHP installation  
properly.”

I have instaled phpmyadmin o

PHPMYADMIN.conf:

server {

```
    listen *:80;

    server_name www.testdomain.com;

    access_log /usr/local/nginx/logs/phpmyadmin.access_log;
    error_log /usr/local/nginx/logs/phpmyadmin.error_log;

    location / {
            root /var/www/html/PHPMYADMIN;
            index index.php;

            # if file exists return it right away
            if (-f $request_filename) {
                    break;
            }

            # otherwise rewrite the fucker
            if (!-e $request_filename) {
                    rewrite ^(.+)$ /index.php$1 last;
                    break;
            }

    }

    location ~ .php$
    {
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_param SCRIPT_FILENAME

```

/var/www/html/PHPMYADMIN$fastcgi\_script\_name;  
fastcgi\_param PATH\_INFO $fastcgi\_script\_name;  
include /usr/local/nginx/conf/fastcgi\_params;  
}

}

NGINX.conf:

user nginx;  
worker\_processes 6;

events {  
worker\_connections 1024;  
}

http {  
include mime.types;  
default\_type application/octet-stream;  
sendfile on;  
keepalive\_timeout 10 10;

# gzip on;

# gzip\_comp\_level 1;

# gzip\_proxied any;

# gzip\_types text/plain text/html text/css application/x-javascript

text/xml application/xml application/xml+rss text/javascript;

gzip on;  
gzip\_proxied any;  
gzip\_vary on;  
gzip\_disable “MSIE [1-6].”;  
gzip\_http\_version 1.1;  
gzip\_min\_length 10;  
gzip\_comp\_level 9;  
gzip\_types text/plain application/xhtml+xml text/xml application/xml  
application/xml+rss text/css application/x-javascript text/javascript;

```
    log_format main '$remote_addr - $remote_user [$time_local] '
              '"$request" $status $body_bytes_sent "$http_referer"

```

’  
‘"$http\_user\_agent" “$http\_x\_forwarded\_for”’;

```
    access_log /var/log/nginx_access.log main;

    error_log /var/log/nginx_error.log debug;

    include /usr/local/nginx/sites-enabled/*;

```

What’s wrong? Thank you in advance.

R.P.

---

<div class="post-metadata">

**Author:** ![pedroche](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pedroche](https://www.ruby-forum.com/u/pedroche)\
**Post date:** [April 27, 2010, 2:08pm UTC](https://www.ruby-forum.com/t/problem-with-phpmyadmin/187657/2 "2010-04-27T14:08:54Z")

</div>

On Tue, Apr 27, 2010 at 7:01 PM, Rafa P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> properly."

check php temporary/session directory availability and permission.  
Also make sure you have the required extensions.

–  
O\< ascii ribbon campaign - stop html mail - [www.asciiribbon.org](http://www.asciiribbon.org)

---

<div class="post-metadata">

**Author:** ![pedroche](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/45deac/32.png) [@pedroche](https://www.ruby-forum.com/u/pedroche)\
**Post date:** [April 27, 2010, 5:17pm UTC](https://www.ruby-forum.com/t/problem-with-phpmyadmin/187657/3 "2010-04-27T17:17:35Z")

</div>

Edho, that was one part of the problem, thank you.

However I cannot get logged in phpmyadmin… When I enter user and  
password the login page reloads again with no error message.

I have double checked that password is correct.

Edho P Arief wrote:

> On Tue, Apr 27, 2010 at 7:01 PM, Rafa P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > properly."
> 
> check php temporary/session directory availability and permission.  
> Also make sure you have the required extensions.
> 
> –  
> O\< ascii ribbon campaign - stop html mail - [www.asciiribbon.org](http://www.asciiribbon.org)
