HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Want to run perl inside php (http://www.howtoforge.com/forums/showthread.php?t=53262)

shekiman 29th June 2011 11:49

Want to run perl inside php
 
For testing Perl in php I run this script:
PHP Code:

<?php

print "Hello from PHP! ";
$perl = new Perl();
$perl->eval('print "Hello from perl! "');
print 
"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. :)

till 29th June 2011 12:09

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.


All times are GMT +2. The time now is 06:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.