Add gd2 support for UbuntuServer

Source: Internet
Author: User
Javastuserver can be integrated with LAMP by default, which is very convenient. After installation, it is a ready-made LAMP environment, but it has not been supported by gd2 for a long time on the Internet, all of them are manually installed with a full set of LAMP solutions, but there are a lot of packages installed one by one. I still don't know what conflicts will happen with the built-in LAMP of ubuntu when PHP is about to be installed, suddenly I found the answer in the official Ubuntu Forum. In fact, there is a command: sudoapt-getinstallp.

By default, Ubuntu Server can be integrated with LAMP, which is very convenient. After installation, it is a ready-made LAMP environment.

However, gd2 is not supported.

I searched the internet for half a day and installed a full set of LAMP solutions manually.

I had to install a lot of packages one by one, but I still don't know what conflicts will happen with the built-in LAMP of ubuntu.

When I was about to install PHP, I suddenly found the answer on the official Ubuntu Forum.

In fact, there is a command:

Sudo apt-get install php5-gd

How much time is wasted?

In addition, use this method to open apache rewrite:

Sudo a2enmod rewrite

Vi/etc/apache2/sites-enabled/000-default

Change All AllowOverride None to AllowOverride All.

Sudo apache2ctl restart

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.