apache2:

sudo apt-get install apache2 apache2-dev
service apache2 start

mysql:

sudo apt-get install mysql-server mysql-client
service mysql start

php7:

sudo apt-get install libjpeg-dev libpng12-dev  libcurl4-openssl-dev libmcrypt-dev mcrypt libcurl4-openssl-dev pkg-config
tar -xvf php-7.0.2.tar.gz
cd php-7.0.2
./configure  --prefix=/opt/php-7.0.2 --with-config-file-path=/opt/php-7.0.2/etc   --with-iconv-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/ --enable-xml --disable-rpath  --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization  --enable-mbregex   --enable-mbstring  --with-mcrypt   --enable-ftp --with-gd --enable-gd-native-ttf  --with-openssl -with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap  --without-pear  --with-gettext  --with-curl   --with-apxs2=/usr/bin/apxs --with-mysqli --with-pdo-mysql --enable-mbstring
add "<FilesMatch "\.ph(p[2-6]?|tml)$">    SetHandler application/x-httpd-php</FilesMatch>" to apache2.conf
service apache2 graceful

相关文章:

  • 2021-12-20
  • 2021-12-29
  • 2022-12-23
  • 2021-08-12
  • 2021-08-04
  • 2022-12-23
  • 2021-10-09
  • 2021-08-04
猜你喜欢
  • 2022-03-06
  • 2021-08-26
  • 2021-09-20
  • 2021-09-03
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
相关资源
相似解决方案