perl - Write a simple mod_perl handler -


i want write simple mod_perl handler returns local time described on page (http://perl.apache.org/docs/2.0/user/handlers/intro.html), have locate file access it.

i'm using ubuntu don't have directory called myapache2. locate file try functionality?

this example. need create files yourself. (you'll see example refers "file:myapache2/currenttime.pm").

mkdir -p example-lib/myapache2 touch example-lib/myapache2/currenttime.pm 

then paste contents example file created.

in order run under mod_perl, you'll have let server know myapache2 located. should able add apache config:

perlswitches -i/path/to/example-lib 

don't forget restart apache before test out.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -