Hola,

x10hosting me parece un hosting gratuito muy interesante. He registrado una cuenta y he subido una web basada en el modelo de tienda de Prestashop v.1.4.0.17. La web parece funcionar correctamente pero si un usuario ya registrado pretende hacer login con su nombre y contraseņa (ambos correctos) aparece el siguiente mensaje:

The page you are looking for is temporarily unavailable. Please try again later

Si a continuacion se actualiza repetidamente la pagina en el navegador (Opera, Firefox...) al final tambien aparece el siguiente mensaje:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'xxxxxxxxx_user1x10'@'web1.vital.x10hosting.com' (using password: YES) in /home/xvisual/public_html/classes/MySQL.php on line 34
Link to database cannot be established.


[las xxxxxxxxx esconden parte de mi nombre de usuario de la base de datos]

En este mismo foro alguien obtenia el mismo mensaje de error, pero en los posts no hay solucion a este problema. He realizado busquedas en Internet y he recopilado alguna informacion, pero mis conocimientos de PHP y SQL son casi nulos y ademas el asunto parece estar relacionado con NGINX por lo que todo parece quedar fuera de mis posibilidades. A continuacion aporto informacion al respecto:


*** No existe problema para que un visitante cree una nueva cuenta de usuario. El mensaje de error aparece si intenta realizar un login en otra sesion con su user y pass correctos (si el user o el pass son incorrectos se muestra una pagina informativa normal).


*** En la pagina NGINX (http://www.archlinux.org/) se indica:

Error:
The page you are looking for is temporarily unavailable. Please try again later.

This is because the FastCGI server has not been started.



*** En la pagina http://stackexchange.com/ hay un post que dice:

If fastcgi is running I get "No input file specified." If the fastcgi is not up, I get "The page you are looking for is temporarily unavailable."

Alguien responde:

Please include the following line in fastcgi_params: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;


*** En la pagina https://bbs.archlinux.org/viewtopic.php?id=101750 hay un post sobre NGINX donde se dice:

With php in index.php I get: The page you are looking for is temporarily unavailable. Please try again later.
...
Check the contents of /var/log/nginx/error.log and /var/log/php-fpm.log.
...
I copied the config from ubuntu, adjust it and it's working:


user http;
worker_processes 1;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
# multi_accept on;
}

http {
# include /etc/nginx/mime.types;

access_log /var/log/nginx/access.log;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

server {
listen 80;
server_name localhost;
access_log /var/log/nginx/localhost.access.log;

## Default location
location / {
root /srv/http;
index index.php;
}

## Images and static content is treated different
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires 30d;
root /srv/http;
}

## Parse all .php file in the /srv/http directory
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/http$fastcgi_script_name;
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}

## Disable viewing .htaccess & .htpassword
location ~ /\.ht {
deny all;
}
}
upstream backend {
server 127.0.0.1:9000;
}

}

# mail {
# # See sample authentication script at:
# # http://wiki.nginx.org/NginxImapAuthe...pachePhpScript
#
# # auth_http localhost/auth.php;
# # pop3_capabilities "TOP" "USER";
# # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
# server {
# listen localhost:110;
# protocol pop3;
# proxy on;
# }
#
# server {
# listen localhost:143;
# protocol imap;
# proxy on;
# }
# }


---

Rogaria a los administradores de x10hosting que analicen si el problema esta relacionado con NGINX (u otro aspecto del servidor) o bien si corresponde unicamente al codigo de mis paginas. En cualquier caso agradeceria ayuda para resolver mi problema.

Atentamente

http://ventaonline.x10.bz