sudo apt-get install apache2
After installation, open your web browser, type in
http://localhost/
If you can see a web page with "It works". Means you did that!
2. install PHP 7.4
我们可以直接安装php7和apache的php7的模块,如下:
apt-get install php7.4 libapache2-mod-php7.4
安装完需要重启
/etc/init.d/apache2 restart
apt-get install php7.4-fpm php7.4-mysql php7.4-gd php7.4-mbstring
php7.4-curl php7.4-json php7.4-xml php7.4-intl php7.4-odbc php7.4-cgi
No comments:
Post a Comment