This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
guides:webserver:part3 [2019/10/04 12:46] admin created |
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> | ||
Line 31: | Line 35: | ||
Clicking on ''test.php'' should show your newly created "Hello, world" program | Clicking on ''test.php'' should show your newly created "Hello, world" program | ||
- | * [[Guides/Webserver/Part4|(next) Webserver Part 4: Editing files]] | + | * [[:Guides/Webserver/Part4|(next) Webserver Part 4: Editing files]] |