in reply to Using mod_perl, with SSI?

213ms...618ms

What to the miliseconds mean, where do the numbers come from?

So my question.... should/is mod_perl being used for the SSI requests? Or so I need to do anything specific to invoke it?

If you have to ask, this means you should read your config file ; cgi-bin generally implies mod_cgi not mod_perl; check the config and you'll know for sure

See also https://httpd.apache.org/docs/2.2/howto/ssi.html, https://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html#SSI, Apache::SSI, CGI to mod_perl Porting. mod_perl Coding guidelines...

Replies are listed 'Best First'.
Re^2: Using mod_perl, with SSI?
by ultranerds (Hermit) on Dec 02, 2015 at 07:58 UTC
    Thanks for the reply. Ok, so the times in ms, are how long it takes the initial page to be returned. So in this case, its 213ms (and then the rest of the content is loaded once thats happened). After SSI, it takes 618ms (so its holding back the page load by another 200+ ms)

    My config for mod_perl is:

    PerlRequire /home/user/startup.pl PerlModule Apache2::Reload PerlInitHandler Apache2::Reload PerlModule Apache2::RequestRec ScriptAlias /cgi-bin/ /home/user/public_html/cgi-bin/ <Directory /home/user/public_html/cgi-bin> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders PerlOptions +SetupEnv Options +ExecCGI </Directory>
    From what I've been reading, it looks like this error:

    unknown directive "perl" in parsed doc

    ...means that the "perl" option isn't enabled at compilation. I've submitted a ticket with our host, to see if they can shed some light on what may need to be tweaked.

    Cheers

    Andy
        Thanks for the reply. In the end, I decided to use speedcgi just for that, by adding this as the shebang:

        #!/usr/bin/speedy
        Seems to have knocked the load time down by over 50% ... so I'm happy with that :)

        Thanks!