Limesurvey 2 and 1and1 hosting

Plus d'informations
il y a 4 ans 9 mois #92001 par xamarshahx
xamarshahx a créé le sujet : Limesurvey 2 and 1and1 hosting
I was upgrading to the newest version of Limesurvey from 1.92 and it looks like the ComfortUpdate screwed something up. I was able to restore it, but I started a new installation in another folder. I uploaded all of the files to 1and1 and loaded the Installer.
It keeps stalling on the database settings. It keeps telling me: "Connection with database failed. Please check database location, user name and password and try again."

I tried even creating an additional MySQL database and get the same error. I also tried re-uploading all the files and I get this same error. Instead of an IP address or localhost, 1and1 uses this as the database server: localhost:/tmp/mysql5.sock
It has not been an issue on older installations.

Anyone have any solutions? Thanks.

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 9 mois #92004 par holch
holch a répondu au sujet : Limesurvey 2 and 1and1 hosting
Did you check whether your server offers PDO? LS2 needs pdo, while LS 1.9x didn't.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 9 mois #92818 par jme
jme a répondu au sujet : Limesurvey 2 and 1and1 hosting
I was having the same issue and after an hour of hacking around in the code I have found what you need to do.

Open application/controllers/InstallerController.php and around line 1108 in the _getDsn function you will find this:
$dsn = "mysql:host={$sDatabaseLocation};port={$sDatabasePort};dbname={$sDatabaseName};"

Change to this
$dsn = "mysql:unix_socket={$sDatabaseLocation};port={$sDatabasePort};dbname={$sDatabaseName};";

And the install will run as normal but in the host box instead of localhost put /tmp/mysql5.sock
Les utilisateur(s) suivant ont remercié: Ben_V

Connexion pour participer à la conversation.

Plus d'informations
il y a 4 ans 9 mois #92823 par holch
holch a répondu au sujet : Limesurvey 2 and 1and1 hosting
Hi jme!

Sounds good. Maybe you can provide this as a patch to the developers? Or if it can't be taken into the core, you could add this description to the installation guide.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!