From cec8163b76dc3cd3a2b51eb227fc5846fe4e4cee Mon Sep 17 00:00:00 2001 From: ahriman Date: Mon, 10 Dec 2018 13:15:16 -0500 Subject: changed links to reflect rewrites --- start.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'start.html') diff --git a/start.html b/start.html index af6efe6..b84cebb 100644 --- a/start.html +++ b/start.html @@ -1,7 +1,7 @@ - - + + - + Tilde Institute :: Quick-Start Guide @@ -15,7 +15,7 @@

This will be a quick-and-dirty guide to getting started with the BCHS stack. More information can be found at:

@@ -31,8 +31,8 @@

Keep in mind that if you don't use the previously listed kcgi/ksql/kwebapp libraries, you will need to work with HTTP's eccentricities manually. For an example, here's the Hello World code from the LearnBCHS site. And here it is running as compiled CGI here at the Tilde Institute.

Once you've written your software to be served via CGI, be sure to statically link the executables. Sure, there's a larger file size, but the benefits outweigh that in this case - there's no relying on what I may or may not have installed on the Tilde Institute's server. For example:

$ cc -static -g -W -Wall -o app.cgi app.c

-

When you've completed compilation, make sure to set permissions properly (755) and move it to the public_html folder in your home directory. httpd(8) is set to use index.html as the index file, however this can be changed to index.cgi or what-have-you by contacting ahriman via IRC.

-

~institute user xvetrd has written a more detailed example on kcgi than is provided on the library's site. It includes an example makefile as well. The KCGI Starter archive is available here. Simply curl -O https://tilde.institute/kcgi-start.tar.gz it to your home directory here on ~institute, untar, make, and make install to test the compilation. It installs to ~/public_html with the proper ownership and permissions. View the index.c source and the makefile to see what goes on under the hood! Feel free to adapt it your own projects!

+

When you've completed compilation, make sure to set permissions properly (755) and move it to the public folder in your home directory. httpd(8) is set to use index as the index file, however this can be changed to index.cgi or what-have-you by contacting ahriman via IRC.

+

~institute user xvetrd has written a more detailed example on kcgi than is provided on the library's site. It includes an example makefile as well. The KCGI Starter archive is available here. Simply curl -O https://tilde.institute/kcgi-start.tar.gz it to your home directory here on ~institute, untar, make, and make install to test the compilation. It installs to ~/public with the proper ownership and permissions. View the index.c source and the makefile to see what goes on under the hood! Feel free to adapt it your own projects!

-- cgit 1.4.1-2-gfad0