Skip to main content

Tutorial: How to configure Xampp / Apache to serve Ring language files

Ring Language is a new programming language that brings good new features to the table.
Simple, Very easy to read, Object Oriented, Smart garbage collector that puts the memory under the programmer control.
you can use it for mobile or web or software development...
See "Hello, World!" 

know more about ring from here -> Why Ring?

Now lets go back to our tutorial.....

How to configure  Xampp / Apache to serve Ring language files

-Download Ring from here: Ring 1.0 for Windows
-Download Ring's Web Library form here: WebLib 1.0 (CGI Library)
-Download Xampp from here: Xampp

-After installing, go to the installation directory then open this folder> xampp\apache\conf\
-Open this file with your favorite editor "httpd.conf"

-Search for the lines: (CTRL+F)

  <Directory />       
    AllowOverride none  
    Require all denied 
Change it to this :

<Directory />
    Options FollowSymLinks
    Options +ExecCGI
    AllowOverride none
    Require all denied

-Make sure that this line in the configuration file and not commented with "#"

 LoadModule cgi_module modules/  

-Search for this line 
    AddHandler cgi-script .cgi .pl .asp 

add this to the line ".ring" to be like :
 AddHandler cgi-script .cgi .pl .asp  .ring

and now press start

Congratulations :)

put your site in htdocs folder xampp\htdocs\[your website folder]
and put the weblib.ring & datalib.ring inside your website folder
and inside the .ring file put in the first line

#![the path to ring directory]\bin\ring.exe -cgi


Popular posts from this blog

Tutorial: How to Setup Flutter in Windows and to be ready for building awesome mobile apps in easy 4 steps.

Every day we see frameworks born to just make our life easier, faster and more efficient.
I was always looking for a framework to build a native-like mobile application using just one code, it makes things go faster and easier and cost effective for business owners & entrepreneurs who develop new ideas,

I have found many cross-platform frameworks and I have used many of them like Xamarin and lately Ionic after I have found that it works with my favorite scripting languages (JS/TypeScript).
To be honest, I have never found any native-like performance in any of those.

Yesterday I have read that Google's Flutter is now Beta, which means for me it is a market-ready framework,

Flutter is Google’s mobile app SDK for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source. [Flutter's Website]

After I have tried the samples and flutter's ga…