Viewing 9 replies - 1 through 9 (of 9 total)
  • Hey AllEinKlang ,

    Checkout this section on the FAQs I believe it may help with this issue:
    -> Browse to: http://lifeinthegrid.com/duplicator-faq
    -> Find section: “2. Installer=> Pre-Install”

    There is a section that deals specifically with that error…

    Hope that helps!

    Thread Starter AllEinKlang HHK

    (@alleinklang-hhk)

    Hi Cory,
    the proglem obove is solved now. The error was: missing htaccess for running correktly with php5. Now the duplicator-installler surface appears in the browser. Requirements-pass ist green. Host, user, name appear correktlx and are checked again – the same the password – but – after clicking the button test connection it says twice – by server and database – failed. The installer-log.txt on the server is empty.

    Perhaps you have a suggestion here too. Thanks

    HHK – germany

    Hey AllEinKlang ,

    Checkout this section on the FAQs I believe it may help with this issue:
    -> Browse to: http://lifeinthegrid.com/duplicator-faq
    -> Find section: “3. Troubleshoot=> Database Issues”

    As far a connection help that is the best advice I can give, you will probably need to talk with your host or server admin as well..

    Hope that helps!

    Thread Starter AllEinKlang HHK

    (@alleinklang-hhk)

    Hi Cory,

    I called my provider and he cecked everything. He checked everythin and he forund this informationen:

    This is an English version for the Duplicator’s problem with the Socket connection Mysql

    Problem Description:

    You created your duplicator copy everything works, once on the new server your service provider has provided you with a host like: localhost :/ tmp/mysql5.sock
    well you will be going soon realize that duplication will not happen unfortunately.

    Indeed to connect to the database must

    Server
    User
    DB name
    Socket
    Port

    We do not usually see these two parameters simply because they are used generally in their default values: socket (/ tmp / mysql.sock) and port (3306).

    Now if your service provider for security conditions gave a different socket and / or port you will lose any utility of the sublime Duplicator.

    Solution:

    SEO Expert thought of you, in fact simply we will modify installer.php file

    It is easy (relatively)
    So first declare two variables with your information:

    -I take the example of 1and1 that I used:

    the host: localhost :/ tmp/mysql5.sock
    So the variable socket will be like this $ socket = ‘/ tmp/mysql5.sock;
    For the port in my case was therefore $ 3316 Port = 3316; (put the correct value in this variable)

    Now that you declare your variables in the installer.php
    You will find all connections to the database and add the parameters $Socket $Port

    Then you replace all the « @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’], $_POST[‘dbpass’], $_POST[‘dbname’]);»
    With « @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’], $_POST[‘dbpass’], $_POST[‘dbname’], $Port, $Socket ); »
    And « @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’], $_POST[‘dbpass’]); »
    With « @mysqli_connect($_POST[‘dbhost’], $_POST[‘dbuser’], $_POST[‘dbpass’], NULL, $Port, $Socket); »

    You’re almost done, all that remains is to add these values to ​​wordpress wp-config.php.
    Always in installer.php we should find the line that replaces the values ​​of wp-config.php, normally it’s in line 600

    « $replace = array(« ‘DB_NAME’, » . ‘\ » . $_POST[‘dbname’] . ‘\ »,

    « ‘DB_USER’, » . ‘\ » . $_POST[‘dbuser’] . ‘\ »,

    « ‘DB_PASSWORD’, » . ‘\ » . $_POST[‘dbpass’] . ‘\ »,

    « ‘DB_HOST’, » . ‘\ » . $_POST[‘dbhost’] . ‘\ »); »

    We will create variable named $ HostSocket = « localhost :/ tmp/mysql5.sock »
    And we will put it in place of the variable $ _POST [‘dbhost’]
    It will look like this

    «$replace = array(« ‘DB_NAME’, « . ‘\ ».$_POST[‘dbname’].’\ »,

    « ‘DB_USER’, « . ‘\ ».$_POST[‘dbuser’].’\ »,

    « ‘DB_PASSWORD’, » . ‘\ ».$_POST[‘dbpass’].’\ »,

    « ‘DB_HOST’, « . ‘\ ».$HostSocket.’\ »); »

    You finish
    You just have to follow in the steps proposed by installer.php

    Please if you have any questions about this or remarks contact us at [email protected]

    Is this the only way to solve this connektion problem?

    Thanks for your work and your anser.

    HHK – germany

    Hey AllEinKlang,

    Wow… seems like they have a really complex setup. I have worked with 100’s of hosts and never had an issue that complex… Also note that within the host name you can pass the port number:

    ‘localhost:999’

    Not sure if that will work, but you could give it a try…

    Cheers~

    Thread Starter AllEinKlang HHK

    (@alleinklang-hhk)

    Thanks Cory for your work,

    in my cace – lokal host – with an htaccess and an ini the connection and the installation ran now, but with mistakes. On this server with an local host – there is no other offportunity – because there are still existing a few sites that were built under php4.

    Well – ist there an other opportunity to built clone site with a subdomain to test new versions and updates for woocommerce shop before activation on the main site?

    Perhaps you have another idea for me. This thread ist solved with this note.

    Thank you from germany.

    HHK

    Hey AllEinKlang,

    Off the top of my head I don’t know of anything. There are a few other plugins that do backup like xcloner or backupbuddy (which is commercial). You might give them a try…

    Cheers~

    Thread Starter AllEinKlang HHK

    (@alleinklang-hhk)

    Thanks Cory,

    and the best for you.

    HHK

    No problem! Cheers~

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘error after’ is closed to new replies.