Python Forum
path-issues in installing a wordpress - wrong pipe-path - like a testscript says
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
path-issues in installing a wordpress - wrong pipe-path - like a testscript says
#1
hello dear Pythonists hello dear Pythonexperts


well - today i have no python-question. i have some issues in installing a wordpress - and i hope you can help me...


meanwhile i have tried to install wp on a rootserver that is administrated by my friend i have got issues while trying to establish a db connection.

then i tried to run a test-teh connection script which gives back the following results

Quote: Warning: mysqli_connect(): (HY000/2002): No such file or directory in
/sites/www.mysite.de/testconnection.php on line 2
Warning: mysqli_error() expects exactly 1 parameter,
0 given in /sites/www.mysite.de/testconnection.php on line 4
Could not connect:

well - what does this script-results say - do i have issues and errors in the path of the pipe!?

do i have to do corrections here

Quote: * For information on other constants that can be used for debugging,
* visit the Codex.
*
* @link https://codex.wordpress.org/Debugging_in_WordPress
*/
define( 'WP_DEBUG', false );

/* That's all, stop editing! Happy publishing. */

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}

/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );

update - update - i have gathered some more insights :
i have gathered some more infos and insights due to some more tests.


see the following data: - the outcome of a testscript:

Warning: mysqli_connect(): (HY000/2002): No such file or directory in /sites/www.mysite.de/tests.php on line 3
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /sites/www.mysite.de/tests.php on line 4 could not connect
see the script:


<?php
if(function_exists('mysqli_connect')){
if(!($link = mysqli_connect('localhost','user','passwd','my_db'))){
die('could not connect: ' . mysqli_error($link));
}
} else {
die("don't have mysqli");
}
echo 'connect successfully';
mysqli_close($link);
some ideas:

the paths seem to be a problem - in the config
by the way: the character-code is 1252 ANSI L

any idea and help - i look forward to hear from you

regards
Wordpress - super toolkits a. http://wpgear.org/ :: und b. https://github.com/miziomon/awesome-wordpress :: Awesome WordPress: A curated list of amazingly awesome WordPress resources and awesome python things https://github.com/vinta/awesome-python
Reply
#2
why not try to install it from the hosting cpanel...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WORDPRESS DISADVANTAGES Anshsachdeva 7 5,098 Mar-05-2021, 03:57 PM
Last Post: Naheed
  Web Hosting Discount for Wordpress, Magento, PHP based applications johncamp 3 3,206 Apr-07-2020, 02:54 PM
Last Post: snippsat
  Python path not detected even it run in cmd. rorjet 3 3,098 Jun-22-2018, 09:10 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020