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