Announcement

#1 2019-04-25 12:41:03

buddy123
Member
2019-04-25
1

Not able to get piwigo up and running

Hi all,
I have already a freebsd machine with nginx as reverse proxy and ssl termination, with several other PHP apps.
Running php 7.1 and mysql 5.7

I downloaded the piwigo 2.9.5.zip, extracted it to its location and added the file permissions as it should have (www:www on my system)
I created the following config for nginx:

```
server {
  listen 443 ssl;
  server_name photos.<mydomain>;
  ssl_certificate           /certs/fullchain.pem;
  ssl_certificate_key       /certs/privkey.pem;
 
  index index.php;
  # Things for better security
  ssl_session_cache shared:SSL:10m;
  ssl_protocols TLSv1.1 TLSv1.2;
  ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
  ssl_prefer_server_ciphers on;
  ssl_dhparam /etc/ssl/certs/dhparam.pem;

  proxy_buffering off;
  client_max_body_size 16G;
  fastcgi_buffers 64 4K;

  root /usr/local/www/piwigo/;

  location / {
        index index.php;

        rewrite ^/index((/|$).*)$ /index.php?$1 permanent;
        rewrite ^/picture((/|$).*)$ /picture.php?$1 permanent;

        try_files $uri $uri/ =404;
  }

  location ~ ^(?<script_name>.+?\.php)(?<path_info>/.*)?$ {
        fastcgi_pass unix:/var/run/php-fpm.sock;
        fastcgi_param PATH_INFO $path_info;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
  }

  access_log /var/log/nginx/piwigo-access.log;
  error_log /var/log/nginx/piwigo-error.log;
}

```

I encounter the following when navigating to it:

```
Piwigo encountered a non recoverable error
PHP extension "mysqli" is not loaded
```

However, I do have mysql driver installed already. Not sure how to progress from here.
Isnt there just a composer script to install dependencies?
How do you recommend me continue from here?

Offline

 

#2 2019-04-25 17:35:26

flop25
Piwigo Team
2006-07-06
6965

Re: Not able to get piwigo up and running

Piwigo is made to be installed and run on any basic web hosting
so no composer or whatsoever
"PHP extension "mysqli" is not loaded" so the solution is pretty straightforward no?
are you sure the extension is running with Php? like when you do a phpinfo is it written mysqli?
you will need some basic php modules like mbstring, json etc


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact