Jump to content

[solved] PHP-GD Error


sudodo
 Share

Recommended Posts

Did you restart apache after running apt-get?

What about the php5-gd package?  Nevermind you are running PHP7. I thought GD was included with php these days by default. Any chance PHP was manually compiled, rather than installed via aptitude?

What does this return?

php -i | grep -i --color gd

 

  • Like 1
Link to comment
Share on other sites

 > Did you restart apache after running apt-get?

No, I've just run 

sudo systemctl restart apache2

though.

> What about the php5-gd package? 

I'm not sure - I'm running php7 so I'm not sure why I would want this package?

If I try and install this using `sudo apt-get install php5-gd` I get an error as
follows though

```
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-gd is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-gd' has no installation candidate
```

cheers
 

Link to comment
Share on other sites


adrian just read it ;) 

 

this command returns

```
geot@ubuntu-512mb-nyc3-01:/var/www/html$ php -i | grep -i --color gd
/etc/php/7.0/cli/conf.d/20-gd.ini,
gd
GD Support => enabled
GD headers Version => 2.1.1
GD library Version => 2.1.1
gd.jpeg_ignore_warning => 0 => 0
```

If there's any other info i can give to make this post more complete just say.

Otherwise this seems to be resolved now 

http://imgur.com/a/4vrPT
 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...