Dysphoria
Member
Hi guys, I might need your help on this.
I am trying to setup a demo installation with XenForo 2.0 with nginx and php7.0-fpm.
Server is working fine, I have another site hosted in parallel and phpinfo() is finde too.
But when I try to call the address of the untouched installation, I get HTTP 500 response.
Logs say the following.
What is the issue? Do I have to install some php plugin for mysql? Or what is it about the non existing mysql_init() function.
Funny thing is, when I tested it local inside docker everything worked fine. But native on Ubuntu 16.04 it does not.
Just in case, I copy paste my nginx config too.
What do you think?
I am trying to setup a demo installation with XenForo 2.0 with nginx and php7.0-fpm.
Server is working fine, I have another site hosted in parallel and phpinfo() is finde too.
But when I try to call the address of the untouched installation, I get HTTP 500 response.
Logs say the following.
Bash:
PHP Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /var/xenforo/www/src/XF/Db/Mysqli/Adapter.php:152
Stack trace:
#0 /var/xenforo/www/src/XF/Db/Mysqli/Adapter.php(28): XF\Db\Mysqli\Adapter->makeConnection(Array)
#1 /var/xenforo/www/src/XF/Error.php(46): XF\Db\Mysqli\Adapter->getConnection()
#2 /var/xenforo/www/src/XF/Install/App.php(48): XF\Error->hasPendingUpgrade()
#3 /var/xenforo/www/src/XF/Container.php(159): XF\Install\App->XF\Install\{closure}(Object(XF\Error), Object(XF\Container))
#4 /var/xenforo/www/src/XF/Container.php(28): XF\Container->XF\{closure}(Object(XF\Container))
#5 /var/xenforo/www/src/XF/App.php(2258): XF\Container->offsetGet('error')
#6 /var/xenforo/www/src/XF/App.php(1942): XF\App->error()
#7 /var/xenforo/www/src/XF.php(184): XF\App->logException(Object(ErrorException))
#8 [internal function]: XF::handleFatalError()
#9 {main}
thrown in /var/xenforo/www/src/XF/Db/Mysqli/Adapter.php on line 152
What is the issue? Do I have to install some php plugin for mysql? Or what is it about the non existing mysql_init() function.
Funny thing is, when I tested it local inside docker everything worked fine. But native on Ubuntu 16.04 it does not.
Just in case, I copy paste my nginx config too.
NGINX:
server {
listen 80;
listen [::]:80;
server_name demo.xenforo.xxxxx.de
auth_basic "Private demo area";
auth_basic_user_file ./htpasswd/cofo_private;
root /var/xenforo/www;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
location ~ /(internal_data|library|src) {
internal;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
location ~ /\.ht {
deny all;
}
}
What do you think?