Procházet zdrojové kódy

small changes

master
Fabien Toune před 3 roky
rodič
revize
f05668511d
1 změnil soubory, kde provedl 6 přidání a 5 odebrání
  1. +6
    -5
      init_server.sh

+ 6
- 5
init_server.sh Zobrazit soubor

@@ -1,19 +1,20 @@
#!/bin/bash
sudo apt update
sudo apt upgrade -y
sudo apt install apache2 php
sudo apt install -y apache2 php
sudo chown -R ubuntu:ubuntu /var/www/html
rm /var/www/html/index.html
echo "
<!DOCTYPE html>
<html lang="fr">
<html lang='fr'>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>PHP Info</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>
" > /var/www/html/index.php
" > /var/www/html/index.php
# Ou bien cp index.php /var/www/html

Načítá se…
Zrušit
Uložit