New answers tagged

0

I've resolved this and the underlying problem was the password for the backend mariadb/mysql. Wasn't at all clear from the logs which reported... PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /usr/share/webapps/wordpress/wp-includes/wp-db.php:1591 However, I started stripping things back and after checking ...


1

You are right, meddling like this should not be necessary. A quick grep shows that $use_mysqli is set in line 621 in wp-db.php: // Use ext/mysqli if it exists unless WP_USE_EXT_MYSQL is defined as true if ( function_exists( 'mysqli_connect' ) ) { $this->use_mysqli = true; if ( defined( '...


0

Have resolved this by adding a driver that you get from the ODBC connectors. $uid = "myuid"; $pwd = "mypassw"; $databaseName = "mydb"; $driver="{ODBC Driver 13 for SQL Server}"; $connectionInfo = array("Driver"=> $driver,"UID"=>$uid,"PWD"=>$pwd,"Database"=>$databaseName); In my case using PHP7.1.7 (x86) and SQL Server 2017. Make sure you download ...


0

Without a lot more details it is very hard to recommend a migration or an in-place upgrade. But getting a list of installed packages (to install them on another system) is easy: The apt tool on Ubuntu 14.04 and above makes this very easy. apt list --installed Alternatively, simply use dpkg -l Using this list you can reinstall you packages on a new ...


0

For me, the problem was that the mod was not enabled in apache2. Clean Debian install, apache2 and php7 I had first to disable mpm_event mod that was enabled by default, i don't know why. By the way, mpm is a very clean way to use PHP, you should consider it instead of the apache2 mod ;) But well, to work quick : # a2dismod mpm_event # a2enmod php7.0 # ...


0

This configuration has worked for me. I will however appreciate if this answer can be improved by someone who is more knowledgeable with Nginx configurations. location ^~ /simon/apps/phalconapp { alias /var/www/stg.example.org/simon/apps/phalconapp; index index.php index.html; try_files $uri $uri/ @rewrite; location ~ \.php$ { ...


0

I solved myself for this error do this In the wp-config.php file, include (or change) this line from define(‘DB_HOST’, ‘localhost’); to define(‘DB_HOST’, ‘127.0.0.1’);


1

Well, the default user is postgres and no password of a new installation. So in the user box put this and clear the password box. Click. done. If you used pgAdmin4 and entered a password on first login that is the password you using for the user postgres. Now in phppgadmin type postgres as user name and that password in the password box. Click. Done. Thank ...


0

First question: the php-fpm processes need memory for the php interpreter itself; the 50Mb limit limits the amount of RAM the script can consume, in addition to what the interpreter needs no matter what. Second question: your processes probably shared quite a bit of memory (definitely all code pages that were loaded from the same binary/library).


0

Lets first take this minimal working example: server { listen 80; server_name test.sc; root /usr/share/nginx/html; index index.html index.htm index.php; location /phpinfo { alias /usr/share/phppgadmin/; index phpinfo.php; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; ...


0

What OS you are on at all? What I'm doing on all my webservers with all the web applications I serve, is: I create seperate pools for each individual web applications. I limit the amount of memory they can absorb in php.ini (memory_limit = 2048M ) I've modified all the pools so that NginX user, the one running the web server is actually running the PHP pool ...


0

This save my life (from https://www.php.net/manual/en/curl.installation.php) Upgrading to php 7.1.6 on Apache 2.4 32bit version Windows 7 x64 this curl implementation works: C:/(path to php folder)/php.ini enable extension=php_curl.dll libeay32.dll, ssleay32.dll, libssh2.dll find directly in php7 folder add this to Apache/...


Top 50 recent answers are included