Want to run perl inside php

Discussion in 'Installation/Configuration' started by shekiman, Jun 29, 2011.

  1. shekiman

    shekiman New Member

    For testing Perl in php I run this script:

    print "Hello from PHP! ";
    $perl = new Perl();
    $perl->eval('print "Hello from perl! "');
    "Bye! ";

    For this site I enabled everything:
    SSI,Ruby,SuEXEC and PHP=CGI

    And than I get
    mod_fcgid: stderr: PHP Fatal error: Class 'Perl' not found in /var/www/clients/client0/web9/web/index.php on line 4

    Could me someone give me a hint how to handle Perl with ispc3?

    Thank you. :)
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That issue is not ISPConfig specific as you use a PHP class that is not defined or installed on your server. As far as I know, there is no class "Perl" in any sztandard PHP, so what you try to use there must be eiter a PHP addon module or any other custom class which needs to be installed on your server and included in your php script before you can use it.

Share This Page