Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was working on localhost with resizing images and everything was great. Then I uploaded to my server and things got interesting. After searching around, looks like I have to enable php-gd on my server.

I tried running the line sudo apt-get install php5-gd using putty, and it didn't work. Any ideas why?

Also, after the install, I assume I will need to run the function sudo reboot right? Clearly I'm not an expert in this area. :P

share|improve this question

closed as off-topic by mdpc, kasperd, Ward, HBruijn, Michael Hampton Aug 28 '14 at 17:02

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – kasperd, Michael Hampton
  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – mdpc, Ward, HBruijn
If this question can be reworded to fit the rules in the help center, please edit the question.

What do you mean by "it didn't work"? What message did you get? If it installed successfuly and GD still doesn't work, you have to reboot Apache by executing sudo /etc/init.d/apache2 restart or sudo service apache2 restart. You shouldn't reboot the whole machine for that, just a particular service which is Apache in this case. – Luka Aug 25 '14 at 5:37
up vote 0 down vote accepted

Try restarting your Apache daemon by executing sudo /etc/init.d/apache2 restart or sudo service apache2 restart if the installation of php5-gd went well. If it didn't, then execute sudo apt-get update and finally sudo apt-get install php5-gd again.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.