Closed yanguoyuhen closed 7 years ago
Fixed, this just because the lua code in php file is wrong, when I correct the code. It worked... But, be honest, the error message confused me, because it says "Class 'Lua' not found in /var/www/uploader.php", I always image that my lua model doesn't installed correct....
Hello laruence, I just install php lua on my env by following the document https://github.com/nolka/php-lua-install-script.
I have created a php file named "upload.php". Content is: <?php $lua = new Lua(); $lua->eval(<<<CODE print(2); CODE ); ?>
When I access this page through web browser http://localhost/uploader.php I get errors in lighttpd/error.log: 2017-03-15 06:11:05: (mod_fastcgi.c.2673) FastCGI-stderr: PHP message: PHP Fatal error: Uncaught Error: Class 'Lua' not found in /var/www/uploader.php:2 2017-03-15 06:11:05: (mod_fastcgi.c.2673) FastCGI-stderr: Stack trace: 2017-03-15 06:11:05: (mod_fastcgi.c.2673) FastCGI-stderr: #0 {main} 2017-03-15 06:11:05: (mod_fastcgi.c.2673) FastCGI-stderr: thrown in /var/www/uploader.php on line 2 It seems the lua can't be parsed.
BTW, when I run command 'php -m|grep lua' , there is a "lua" be shown.
Could you help me to find what is wrong?~~~