<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Install Hiawatha Web Server in Ubuntu	</title>
	<atom:link href="https://www.ubuntumint.com/install-hiawatha-webserver-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ubuntumint.com/install-hiawatha-webserver-ubuntu/</link>
	<description>UbuntuMint - Everything About Ubuntu Linux</description>
	<lastBuildDate>Sat, 27 Apr 2024 05:00:53 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.ubuntumint.com/install-hiawatha-webserver-ubuntu/#comment-39654</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Sat, 27 Apr 2024 05:00:53 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=3857#comment-39654</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.ubuntumint.com/install-hiawatha-webserver-ubuntu/#comment-37560&quot;&gt;Soso&lt;/a&gt;.

@soso,

Here are a few steps you can take to troubleshoot and resolve the issue:
&lt;ul&gt;
&lt;li&gt;Verify that the PHP and Perl CGI binaries (&lt;strong&gt;php-cgi&lt;/strong&gt; and &lt;strong&gt;perl&lt;/strong&gt;) are executable and located in the specified paths (&lt;strong&gt;/usr/bin/php-cgi&lt;/strong&gt; and &lt;strong&gt;/usr/bin/perl&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;Create a simple PHP script (e.g., &lt;strong&gt;test.php&lt;/strong&gt;) with &lt;code&gt;&lt;?php phpinfo(); ?&gt;&lt;/code&gt; in it and place it in your web root directory (&lt;strong&gt;/usr/local/var/www/hiawatha&lt;/strong&gt;) to test if PHP is executing correctly.&lt;/li&gt;
&lt;li&gt;Similarly, create a simple Perl CGI script (e.g., &lt;strong&gt;test.cgi&lt;/strong&gt;) with &lt;code&gt;#!/usr/bin/perl&lt;/code&gt; as the shebang line and print &lt;code&gt;&quot;Content-type: text/html\n\n&quot;; print &quot;Hello, Perl!&quot;&lt;/code&gt;; in it, and place it in the same directory to test Perl execution.&lt;/li&gt;
&lt;li&gt;After making any changes to the configuration files or scripts, restart the Hiawatha and PHP-FPM services to apply the changes.&lt;/li&gt;
&lt;/ul&gt;
Let me know if you need further assistance or if you encounter any other issues.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.ubuntumint.com/install-hiawatha-webserver-ubuntu/#comment-37560">Soso</a>.</p>
<p>@soso,</p>
<p>Here are a few steps you can take to troubleshoot and resolve the issue:</p>
<ul>
<li>Verify that the PHP and Perl CGI binaries (<strong>php-cgi</strong> and <strong>perl</strong>) are executable and located in the specified paths (<strong>/usr/bin/php-cgi</strong> and <strong>/usr/bin/perl</strong>).</li>
<li>Create a simple PHP script (e.g., <strong>test.php</strong>) with <code><?php phpinfo(); ?></code> in it and place it in your web root directory (<strong>/usr/local/var/www/hiawatha</strong>) to test if PHP is executing correctly.</li>
<li>Similarly, create a simple Perl CGI script (e.g., <strong>test.cgi</strong>) with <code>#!/usr/bin/perl</code> as the shebang line and print <code>"Content-type: text/html\n\n"; print "Hello, Perl!"</code>; in it, and place it in the same directory to test Perl execution.</li>
<li>After making any changes to the configuration files or scripts, restart the Hiawatha and PHP-FPM services to apply the changes.</li>
</ul>
<p>Let me know if you need further assistance or if you encounter any other issues.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Soso		</title>
		<link>https://www.ubuntumint.com/install-hiawatha-webserver-ubuntu/#comment-37560</link>

		<dc:creator><![CDATA[Soso]]></dc:creator>
		<pubDate>Wed, 13 Mar 2024 04:46:03 +0000</pubDate>
		<guid isPermaLink="false">https://www.ubuntumint.com/?p=3857#comment-37560</guid>

					<description><![CDATA[Hello,

My environment: Ubuntu 22.04.4 LTS / hiawatha-11.1 / php 8.1 (php-cgi/php-fpm)

Currently hiawatha is running and localhost page is displayed.

And command (php -v / systemctl status php8.1-fpm.service ...etc.) have been successful.

However, the php pages and perl cgi pages are downloaded instead of being displayed.

I already have been running hiawatha/php7 on Puppy (Fossapup64) and referenced the hiawatha.conf on Puppy.

The current hiawatha.conf is as follows.

Please give me some advice on how to run php/perl on the server?
&lt;pre&gt;
ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = @LOG_DIR@/system.log
GarbageLogfile = @LOG_DIR@/garbage.log

Binding {
	Port = 80
}

# Binding ID is for specifying Virtual host
Binding {
BindingId = CGI
Port = 8080
Interface = 192.168.1.213
MaxRequestSize = 128
TimeForRequest = 3,20
}


Hostname = 127.0.0.1
WebsiteRoot = @WEBROOT_DIR@
StartFile = index.html
AccessLogfile = @LOG_DIR@/access.log
ErrorLogfile = @LOG_DIR@/error.log

#add this stuff to get a perl script working (pplog)...
#QUISP has a binary executable CGI named &#039;quisp.bin&#039;...
MimetypeConfig = /etc/mime.types
CGIhandler = /usr/bin/perl:pl,cgi
CGIhandler = /usr/bin/php-cgi:php,html
CGIextension = pl,bin,cgi,php
ExecuteCGI = yes
#QUISP puts %0D, %0A (carriage-return, line-feed) chars in the url
#(v128), to allow chars below ascii 32 need this...
SecureURL = no

FastCGIserver {
    FastCGIid = PHP8.1
    ConnectTo = 127.0.0.1:9000
    ConnectTo = /run/php/php-fpm.sock
    Extension = php,html
    SessionTimeout = 30
}
VirtualHost {
	Hostname = localhost
	WebsiteRoot = /usr/local/var/www/hiawatha
	StartFile = index.php
	AccessLogfile = /var/log/hiawatha/access_log
	ErrorLogfile = /var/log/hiawatha/error_log
	TimeForCGI = 3600
    ShowIndex = yes
    ExecuteCGI = yes
    FollowSymlinks = yes
    NoExtensionAs = cgi
    EnablePathInfo = yes    
    UseLocalConfig = yes
}

VirtualHost {
	Hostname = 192.168.1.213
	WebsiteRoot = /usr/local/var/www/hiawatha
	StartFile = index.php
	AccessLogfile = /var/log/hiawatha/access_log
	ErrorLogfile = /var/log/hiawatha/error_log
	TimeForCGI = 3600
    ShowIndex = yes
    ExecuteCGI = yes
    FollowSymlinks = yes
    NoExtensionAs = cgi
    EnablePathInfo = yes
    UseLocalConfig = yes
}
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>My environment: Ubuntu 22.04.4 LTS / hiawatha-11.1 / php 8.1 (php-cgi/php-fpm)</p>
<p>Currently hiawatha is running and localhost page is displayed.</p>
<p>And command (php -v / systemctl status php8.1-fpm.service &#8230;etc.) have been successful.</p>
<p>However, the php pages and perl cgi pages are downloaded instead of being displayed.</p>
<p>I already have been running hiawatha/php7 on Puppy (Fossapup64) and referenced the hiawatha.conf on Puppy.</p>
<p>The current hiawatha.conf is as follows.</p>
<p>Please give me some advice on how to run php/perl on the server?</p>
<pre>
ServerId = webuser
ConnectionsTotal = 150
ConnectionsPerIP = 10
SystemLogfile = @LOG_DIR@/system.log
GarbageLogfile = @LOG_DIR@/garbage.log

Binding {
	Port = 80
}

# Binding ID is for specifying Virtual host
Binding {
BindingId = CGI
Port = 8080
Interface = 192.168.1.213
MaxRequestSize = 128
TimeForRequest = 3,20
}


Hostname = 127.0.0.1
WebsiteRoot = @WEBROOT_DIR@
StartFile = index.html
AccessLogfile = @LOG_DIR@/access.log
ErrorLogfile = @LOG_DIR@/error.log

#add this stuff to get a perl script working (pplog)...
#QUISP has a binary executable CGI named 'quisp.bin'...
MimetypeConfig = /etc/mime.types
CGIhandler = /usr/bin/perl:pl,cgi
CGIhandler = /usr/bin/php-cgi:php,html
CGIextension = pl,bin,cgi,php
ExecuteCGI = yes
#QUISP puts %0D, %0A (carriage-return, line-feed) chars in the url
#(v128), to allow chars below ascii 32 need this...
SecureURL = no

FastCGIserver {
    FastCGIid = PHP8.1
    ConnectTo = 127.0.0.1:9000
    ConnectTo = /run/php/php-fpm.sock
    Extension = php,html
    SessionTimeout = 30
}
VirtualHost {
	Hostname = localhost
	WebsiteRoot = /usr/local/var/www/hiawatha
	StartFile = index.php
	AccessLogfile = /var/log/hiawatha/access_log
	ErrorLogfile = /var/log/hiawatha/error_log
	TimeForCGI = 3600
    ShowIndex = yes
    ExecuteCGI = yes
    FollowSymlinks = yes
    NoExtensionAs = cgi
    EnablePathInfo = yes    
    UseLocalConfig = yes
}

VirtualHost {
	Hostname = 192.168.1.213
	WebsiteRoot = /usr/local/var/www/hiawatha
	StartFile = index.php
	AccessLogfile = /var/log/hiawatha/access_log
	ErrorLogfile = /var/log/hiawatha/error_log
	TimeForCGI = 3600
    ShowIndex = yes
    ExecuteCGI = yes
    FollowSymlinks = yes
    NoExtensionAs = cgi
    EnablePathInfo = yes
    UseLocalConfig = yes
}
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
