This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
guides:webserver:part3 [2019/10/04 12:47] admin |
guides:webserver:part3 [2021/05/25 17:49] (current) admin [Create the first program] |
||
---|---|---|---|
Line 10: | Line 10: | ||
<code bash> | <code bash> | ||
- | sudo chown ubuntu:ubuntu /var/www/html/ | + | sudo chown -R ubuntu:ubuntu /var/www/html/ |
cd /var/www/html/ | cd /var/www/html/ | ||
mv index.html old.html | mv index.html old.html | ||
Line 25: | Line 25: | ||
<code> | <code> | ||
echo "<?php echo 'Hello, world'; ?>" > test.php | echo "<?php echo 'Hello, world'; ?>" > test.php | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | echo "<?php echo 2+2; ?>" > test2.php | ||
</code> | </code> | ||