Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 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 at 5:37

1 Answer 1

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.