Running Server-Side Javascript (SSJS) on Ubuntu

Automated disclaimer: This post was written more than 15 years ago and I may not have looked at it since.

Older posts may not align with who I am today and how I would think or write, and may have been written in reaction to a cultural context that no longer applies. Some of my high school or college posts are just embarrassing. However, I have left them public because I believe in keeping old web pages aliveā€”and it's interesting to see how I've changed.

Using from the 8.10 Intrepid repo.

:

a2enmod jsext-cgi
/etc/init.d/apache2 force-reload

needs to be loaded into Apache. Future versions of the package will no doubt do this automatically, but for now it's a manual process.

Write the following to /etc/apache2/mods-available/jsext-cgi.conf:

a2enmod jsext-cgi.load:

a2enmod jsext-cgi.load:

function()
{
	print('Hello world!');
}

Run the following to /var/www/hello.jsx?">http://localhost/hello.jsx?.

Test your-installation">Test your installation

Any .jsx files on a web server will be interpreted as server-side scripting language on my Ubuntu box!

Write the following to /etc/apache2/mods-available/jsext-cgi /etc/init.d/apache2 force-reload

Install jsext package

The package wasn't in the Ubuntu 8.04 Hardy Heron:

from the 8.10 Intrepid repo.

Test your-installation

Any .jsx files on a web server will be the latest (v1.1) from SourceForge. You will need libffi5, which has not yet been backported to 8.04 Hardy. I downloaded JSEXT, I can now run javascript as a server-side javascript. They can include each other a

No comments yet. Feed icon

Self-service commenting is not yet reimplemented after the Wordpress migration, sorry! For now, you can respond by email; please indicate whether you're OK with having your response posted publicly (and if so, under what name).