Mandatory:
Crypt::CBC
Crypt::Blowfish
IO::String
IO::File
For PHP Wrapper or mod_perl:
Env::C
IPC::Run
For mysql or other:
DBI
DBD::mysql
DBD::Pg
DBD:: ...
For set_nes_site script utility:
File::ShareDir
File::Copy::Recursive
* We recommend installing all modules.
perl Makefile.PL
make
make test
make install
perl Makefile.PL PREFIX=/home/USER/dir
make
make test
make install
* Change /home/USER/dir for you particular path
Nes requires configuration of you cgi-bin and .htaccess for directory of the Nes templates.
To active and configure Nes use utility: set_nes_site
Examples:
Active Nes in /usr/lib/cgi-bin:
set_nes_site --cgi_dir=/usr/lib/cgi-bin
Configure Nes for directory /var/www/myweb:
set_nes_site --dir_cfg=/var/www/myweb
Configure Nes for all site:
set_nes_site --dir_cfg=/var/www
Install hello world and test examples in /var/www/test_nes:
set_nes_site --from_exam=hello_nes --to_exam=/var/www/test_nes
More help:
set_nes_site --help
* Change /usr/lib/cgi-bin and /var/www for you particular path
For configured Nes locally find you path to Nes.pm and add in iprefix in cgi_dir and from_exam options.
Examples:
Active Nes in /usr/lib/cgi-bin:
set_nes_site --cgi_dir=/usr/lib/cgi-bin --iprefix=/home/USER/path-to-Nes
More help:
set_nes_site --help
* Change /usr/lib/cgi-bin and /home/USER/path-to-Nes for you particular path
Active Nes in cgi-bin:
set_nes_site --cgi_dir=/full-path-to/cgi-bin
* include --iprefix option if configured Nes locally.
Install hello world and test examples in directory test_nes:
set_nes_site --from_exam=hello_nes --to_exam=/full-path-to/root-www/test_nes
* include --iprefix option if configured Nes locally.
* change /full-path-to... for you particular path
Test:
http://yousite/test_nes/hello.nhtml
You must see "Hello World!" in this page
http://yousite/test_nes/test.nhtml
You must see "Hello Nes!" and Nes variables in this page
For test is ok make sure your error.log does not contain errors.