mod_zpe is an Apache module for the ZPE Programming Environment and the YASS language. Use this to add support for the YASS language into the Apache Web Server.
- Copy all files as listed into a folder on your computer
- Make sure you have the latest version of ZPE from jamiebalfour.scot.
-
Copy zpe.jar into a folder in the root called
/zpe/
-
Make sure make.sh is executable (
chmod 755 make.sh
) -
Run the make.sh file with
./make.sh
-
Copy the resulting mod_zpe.so file into the appropriate directory (
cp mod_zpe.so /usr/lib/apache2/modules/
) -
Restart Apache (
httpd -k restart
orapachectl -k restart
) -
Add the mod_zpe.load file into the /etc/apache2/mods-available folder with the following line:
LoadModule zpe_module /usr/lib/apache2/modules/mod_zpe.so
-
Restart Apache (
httpd -k restart
orapachectl -k restart
)
YASS Web Pages or YWP files work by embedding YASS code within <?ywp
and ywp?>
<!DOCTYPE html> <html> <head> </head> <body> <?ywp print("Hello world!") ywp?> </body> </html>