<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://opensource.glasgow.social/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://opensource.glasgow.social/feed.php">
        <title>Open Source Glasgow guides:webserver</title>
        <description></description>
        <link>https://opensource.glasgow.social/</link>
        <image rdf:resource="https://opensource.glasgow.social/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-11T07:12:53+0100</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://opensource.glasgow.social/guides/webserver/part1?rev=1656937853&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/guides/webserver/part2?rev=1656936580&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/guides/webserver/part3?rev=1621964942&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/guides/webserver/part4?rev=1627407440&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/guides/webserver/part5?rev=1570193378&amp;do=diff"/>
                <rdf:li rdf:resource="https://opensource.glasgow.social/guides/webserver/part6?rev=1570193517&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://opensource.glasgow.social/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Open Source Glasgow</title>
        <link>https://opensource.glasgow.social/</link>
        <url>https://opensource.glasgow.social/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://opensource.glasgow.social/guides/webserver/part1?rev=1656937853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-07-04T13:30:53+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>guides:webserver:part1</title>
        <link>https://opensource.glasgow.social/guides/webserver/part1?rev=1656937853&amp;do=diff</link>
        <description>Guides: Web server: Part 1

	*  Back to Guides: Webserver

Setting up your Amazon EC2 instance

Visit Amazon Web Services and create an account &lt;https://aws.amazon.com/&gt; You will have to put credit card details in, but you won't be charged for your first year if you select a product in the free tier (the free tier has an adequate server for what we'll need, just don't create a second one).</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/guides/webserver/part2?rev=1656936580&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-07-04T13:09:40+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>guides:webserver:part2</title>
        <link>https://opensource.glasgow.social/guides/webserver/part2?rev=1656936580&amp;do=diff</link>
        <description>Guides: Web server: Part 2

	*  Back to Guides: Webserver
	*  Back to Guides: Webserver Part 1

Installing Web/DB/PHP

	*  Now we'll install the web server (Apache), the database (MySQL) and PHP:


sudo apt update
sudo apt install apache2 php php-mysql mysql-server


	*  Connect to the database as the root (admin) user:</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/guides/webserver/part3?rev=1621964942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-05-25T18:49:02+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>guides:webserver:part3</title>
        <link>https://opensource.glasgow.social/guides/webserver/part3?rev=1621964942&amp;do=diff</link>
        <description>Guides: Web server: Part 3

	*  Back to Guides: Webserver
	*  Back to Guides: Webserver Part 2

Hello World

Setting permissions

First, we need to give our current user (ubuntu) permission to edit files on the webserver, then we change to the web directory and move the old index.html file out of the way:</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/guides/webserver/part4?rev=1627407440&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-07-27T18:37:20+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>guides:webserver:part4</title>
        <link>https://opensource.glasgow.social/guides/webserver/part4?rev=1627407440&amp;do=diff</link>
        <description>Guides: Web server: Part 4

	*  Back to Guides: Webserver
	*  Back to Guides: Webserver Part 3

Editing Files

How to edit files on a remote server (i.e. on your Amazon EC2 instance):

Windows

SSHFS

	*  Install SSHFS-Win
		*  The first steps include installing WinFsp
		*  Install the SSHFS-Win Manager


Notepad++

Download Notepad++ from</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/guides/webserver/part5?rev=1570193378&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-04T13:49:38+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>guides:webserver:part5</title>
        <link>https://opensource.glasgow.social/guides/webserver/part5?rev=1570193378&amp;do=diff</link>
        <description>Guides: Web server: Part 5

	*  Back to Guides: Webserver
	*  Back to Guides: Webserver Part 4

Creating a basic HTML form

Create a new file on your server called form.php and enter this code.  Visit it in your browser and see the result.


&lt;form method='post' action=''&gt;
&lt;input type='text' name='search_keyword'&gt;
&lt;input type='submit' name='search_button' value='Search'&gt;
&lt;/form&gt;</description>
    </item>
    <item rdf:about="https://opensource.glasgow.social/guides/webserver/part6?rev=1570193517&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-10-04T13:51:57+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>guides:webserver:part6</title>
        <link>https://opensource.glasgow.social/guides/webserver/part6?rev=1570193517&amp;do=diff</link>
        <description>Guides: Web server: Part 6

	*  Back to Guides: Webserver
	*  Back to Guides: Webserver Part 5

What To Do Next

Got your server all set up and you're able to create files and view them in your browser?

No Visit the How to set up a webserver page and work through the list (or ask someone and we'll help you through it)

Yes Great!  Let's look at what we could do next.</description>
    </item>
</rdf:RDF>
