#1 2014-12-10 06:14:40

HyperGlide
Member
2014-12-10
11

[resolved] Error - GD library is missing

Hello when I try to upload an image I see "GD library is missing"

I have searched and tried to fix but have not had much success.

Fresh installation of Piwigo on Debian 6.

No images on the site yet.

Piwigo version
Piwigo 2.7.2

Environment
Operating system: Linux
PHP: 5.4.35-0+deb7u2 (Show info) [2014-12-10 13:13:33]
MySQL: 5.5.40-0+wheezy1 [2014-12-10 05:13:33]
Graphics Library: External ImageMagick 6.7.7-10

Database
0 photos
0 albums including 0 physical and 0 virtual (0 associations)
0 tags (0 associations)
2 users
0 groups
0 comments
no rate

Last edited by HyperGlide (2014-12-10 06:15:52)

Offline

 

#2 2014-12-10 16:37:13

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Nginx Config File for --> /etc/nginx/sites-available/photo.domain.org

server {
        server_name photo.rotaryclubchengdu.org;
        access_log /srv/www/photo.domain.org/logs/access.log;
        error_log /srv/www/photo.domain.org/logs/error.log;
        root /srv/www/photo.domain.org/public_html;

        location / {
                index index.html index.htm;
        }

        location ~ \.php$ {
                try_files $uri =404;
                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/var/run/php-fastcgi/php-fastcgi.socket;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME /srv/www/photo.rotaryclubchengdu.org/public_html$fastcgi_script_name;
        }
}

Offline

 

#3 2014-12-10 16:38:44

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

config file for --> /etc/nginx/nginx.conf

user www-data;
worker_processes 4;
pid /var/run/nginx.pid;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    ##
    # Logging Settings
    ##

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # nginx-naxsi config
    ##
    # Uncomment it if you installed nginx-naxsi
    ##

    #include /etc/nginx/naxsi_core.rules;

    ##
    # nginx-passenger config
    ##
    # Uncomment it if you installed nginx-passenger
    ##
   
    #passenger_root /usr;
    #passenger_ruby /usr/bin/ruby;

    ##
    # Virtual Host Configs
    ##

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;
}


#mail {
#    # See sample authentication script at:
#    # http://wiki.nginx.org/ImapAuthenticateW … ePhpScript
#
#    # auth_http localhost/auth.php;
#    # pop3_capabilities "TOP" "USER";
#    # imap_capabilities "IMAP4rev1" "UIDPLUS";
#
#    server {
#        listen     localhost:110;
#        protocol   pop3;
#        proxy      on;
#    }
#
#    server {
#        listen     localhost:143;
#        protocol   imap;
#        proxy      on;
#    }
#}

Offline

 

#4 2014-12-11 08:45:57

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13877

Re: [resolved] Error - GD library is missing

Hi HyperGlide,

apt-get install php5-gd

If it doesn't work, then I will try to see if another nginx configuration wouldn't work any better.

Offline

 

#5 2014-12-11 08:47:51

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Hi @Pig.

Thanks for the reply. I have tried that and php-gd is installed. I also removed, purged and reinstalled.

Thank you again.

Cheers,
HG

Last edited by HyperGlide (2014-12-11 09:04:41)

Offline

 

#6 2014-12-11 09:04:25

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Can you please help with an alternate nginx config.

Thank you

Offline

 

#7 2014-12-11 15:48:52

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13877

Re: [resolved] Error - GD library is missing

With nginx, I don't use php-fastcgi but php-fpm. Here is an example of server (virtualhost):

Code:

server {
  server_name my-piwigo-domain.com;
  root /path/to/piwigo/;

  location @rewrite {
    rewrite ^/picture((/|$).*)$ /picture.php$1 last;
    rewrite ^/index((/|$).*)$ /index.php$1 last;
    rewrite ^/map((/|$).*)$ /map.php$1 last;
    rewrite ^/i((/|$).*)$ /i.php$1 last;
  }

  location / {
    index index.php;
    try_files $uri $uri/ @rewrite;
  }

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

Of course, I have installed php-fpm :

Code:

# apt-get install php5-fpm

Offline

 

#8 2014-12-11 16:05:54

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Thank you for the reply.

Site does not load now at all. Get an "No input file specified." error.

php5-fpm is installed.

Error in the Nginx Log was:

2014/12/11 23:00:26 [error] 24124#0: *3 FastCGI sent in stderr: "Unable to open primary script: /srv/www/photo.domain.org/admin.php (No such file or directory)" while reading response header from upstream, client: xx.17.199.8, server: photo.domain.org, request: "GET /admin.php?page=photos_add HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "photo.domain.org", referrer: "http://photo.domain.org/identification.php?redirect=%252Fadmin.php%253Fpage%253Dphotos_add"

2014/12/11 23:04:11 [error] 24124#0: *6 directory index of "/srv/www/photo.domain.org/" is forbidden, client: xx.17.199.8, server: photo.domainu.org, request: "GET / HTTP/1.1", host: "photo.domain.org"

Offline

 

#9 2014-12-18 07:40:36

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Just pining back to see if any thoughts on how best to get our server up and running.

Offline

 

#10 2014-12-18 08:40:45

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13877

Re: [resolved] Error - GD library is missing

Hi HyperGlide,

HyperGlide wrote:

"Unable to open primary script: /srv/www/photo.domain.org/admin.php (No such file or directory)"

Sorry to ask such an obvious question: does /srv/www/photo.domain.org/admin.php exists? is it readable by www-data?

Offline

 

#11 2014-12-18 08:47:21

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Hi plg - Please ask anything.

No - /srv/www/photo.domain.org/admin.php - does not exists.

There is a

/srv/www/photo.domain.org/public_html/admin.php

Permissions are:
-rwxrwxrwx  1 www-data www-data 3.0K Dec 10 01:00 about.php
-rwxrwxrwx  1 www-data www-data 5.7K Dec 10 01:00 action.php
drwxrwxrwx  4 www-data www-data 4.0K Dec 10 01:00 admin
-rwxrwxrwx  1 www-data www-data  11K Dec 10 01:00 admin.php
-rwxrwxrwx  1 www-data www-data  17K Dec 10 01:00 comments.php
drwxr-xr-x  4 www-data www-data 4.0K Dec 10 01:00 _data
drwxrwxrwx  2 www-data www-data 4.0K Dec 10 01:00 doc
-rwxrwxrwx  1 www-data www-data 6.6K Dec 10 01:00 feed.php
drwxrwxrwx  2 www-data www-data 4.0K Dec 10 01:00 galleries
-rwxrwxrwx  1 www-data www-data 4.4K Dec 10 01:00 identification.php
drwxrwxrwx  9 www-data www-data 4.0K Dec 10 01:00 include
-rwxrwxrwx  1 www-data www-data  12K Dec 10 01:00 index.php
drwxrwxrwx  3 www-data www-data 4.0K Dec 10 01:00 install
-rwxrwxrwx  1 www-data www-data  16K Dec 10 01:00 install.php
-rwxrwxrwx  1 www-data www-data  17K Dec 10 01:00 i.php
drwxrwxrwx 71 www-data www-data 4.0K Dec 10 01:00 language
drwxrwxrwx  5 www-data www-data 4.0K Dec 10 01:00 local
-rwxrwxrwx  1 www-data www-data 3.9K Dec 10 01:00 nbm.php
-rwxrwxrwx  1 www-data www-data 4.4K Dec 10 01:00 notification.php
-rwxrwxrwx  1 www-data www-data  12K Dec 10 01:00 password.php
-rwxrwxrwx  1 www-data www-data  28K Dec 10 01:00 picture.php
drwxrwxrwx 10 www-data www-data 4.0K Dec 10 16:21 plugins
-rwxrwxrwx  1 www-data www-data 3.2K Dec 10 01:00 popuphelp.php
-rwxrwxrwx  1 www-data www-data  12K Dec 10 01:00 profile.php
-rwxrwxrwx  1 www-data www-data 2.7K Dec 10 01:00 qsearch.php
-rwxrwxrwx  1 www-data www-data 3.1K Dec 10 01:00 random.php
-rwxrwxrwx  1 www-data www-data 4.6K Dec 10 01:00 register.php
-rwxrwxrwx  1 www-data www-data 8.2K Dec 10 01:00 search.php
-rwxrwxrwx  1 www-data www-data 7.3K Dec 10 01:00 search_rules.php
-rwxrwxrwx  1 www-data www-data 6.4K Dec 10 01:00 tags.php
drwxrwxrwx  4 www-data www-data 4.0K Dec 10 01:00 template-extension
drwxrwxrwx  8 www-data www-data 4.0K Dec 10 01:00 themes
drwxrwxrwx  3 www-data www-data 4.0K Dec 10 01:00 tools
-rwxrwxrwx  1 www-data www-data 4.3K Dec 10 01:00 upgrade_feed.php
-rwxrwxrwx  1 www-data www-data  16K Dec 10 01:00 upgrade.php
-rwxrwxrwx  1 www-data www-data  38K Dec 10 01:00 ws.php

Last edited by HyperGlide (2014-12-18 08:47:40)

Offline

 

#12 2014-12-18 09:10:34

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

I moved the content out of the public_html and working. I think this issue can be closed. Will report back shortly.

Offline

 

#13 2014-12-18 16:06:04

HyperGlide
Member
2014-12-10
11

Re: [resolved] Error - GD library is missing

Resolved.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact