VMware虚拟机#2-安装WEB 服务器,数据库,PHP,Linux命令, 安装虚拟机 Linux Ubuntu 18, 安装配置服务器 Apache, PHP,MySQL

VMware虚拟机#2-
安装WEB 服务器,数据库,PHP,Linux命令
欢迎订阅:https://www.youtube.com/channel/UCI9UQIXiP-BYqnFnup-QlTA?sub_confirmation=1

安装虚拟机 Linux Ubuntu 18,
安装配置服务器 Apache, PHP,MySQL

====================

VMware虛擬機#2-
安裝WEB 服務器,數據庫,PHP,Linux命令
歡迎訂閱:https://www.youtube.com/channel/UCI9UQIXiP-BYqnFnup-QlTA?sub_confirmation=1

安裝虛擬機 Linux Ubuntu 18,
安裝配置服務器 Apache, PHP,MySQL

============================

全部相关的 UBUNTU LINUX 命令

12 which appache
13 which php

14 sudo apt install apache2

15 sudo ufw app list

16 sudo ufw app info “Apache Full”
17 sudo ufw allow in “Apache Full”

18 ip addr show eth0 | grep inet | awk ‘{ print $2; }’ | sed ‘s//.*$//’

19 sudo apt install curl

20 curl http://localhost
21 curl http://google.com

22 sudo apt install mysql-server

23 sudo mysql_secure_installation

30 sudo mysql

31 mysql -u root -p

32 sudo apt install php libapache2-mod-php php-mysql

33 sudo nano /etc/apache2/mods-enabled/dir.conf

35 ps -A | grep apach

36 sudo systemctl restart apache2

37 sudo systemctl status apache2

38 apt search php- | less

42 apt show php-cli

43 sudo apt install php-cli

44 cd /var/www
46 cd html/

49 sudo apt install vim

50 vim test1.php

53 sudo chown -R wang ./*

60 sudo add-apt-repository ppa:ondrej/php

61 sudo apt update

62 sudo apt install php7.3

63 php -v

64 sudo apt install composer

65 composer -v

66 which composer

67 which php

70 which apache2

71 which mysql

74 mysql –version

76 composer create-project drupal/recommended-project ./drupalone

77 php –ini

78 sudo apt-get install php7.3-xml
80 sudo rm -rf ./drupalone/
82 sudo apt-get install php7.3-gd
83 sudo apt-get install php7.3-intl
84 sudo apt-get install php7.3-xsl
87 sudo apt-get install php-mbstring php7.3-mbstring

89 composer create-project drupal/recommended-project ./drupalone

92 cd drupalone/

94 composer install

96 ll web/

99 composer create-project drupal/drupal:9.0-dev ./drupaltwo // NOT WORK
100* composer create-project drupal/drupal:9 ./drupaltw // NOT WORK

103 wget https://ftp.drupal.org/files/projects/drupal-9.0.x-dev.tar.gz
104 tar -zxvf drupal-9.0.x-dev.tar.gz

106 cd drupal-9.0.x-dev/

108 composer install
109 sudo apt-get install php7.3-curl

110 composer install

112 php core/scripts/drupal quick-start –help

114 sudo chown -R $USER:$USER ./drupal-9.0.x-dev

116 sudo nano /etc/apache2/sites-available/d9.test.conf
117 sudo a2ensite d9.test.conf
118 sudo systemctl reload apache2
119 sudo apache2ctl configtest
120 sudo a2dissite 000-default.conf
121 sudo systemctl reload apache2
122 sudo apache2ctl configtest
123 sudo systemctl restart apache2

125 sudo vim /etc/hosts
126 sudo systemctl restart apache2

136 sudo nano /etc/apache2/sites-available/d8.test.conf
137 sudo a2ensite d8.test.conf

138 sudo vim /etc/hosts

139 sudo systemctl restart apache2

Post Author: hatefull