linwiz / Raspberry-Pi-Web-GPIO

PHP script to control Raspberry PI GPIO pins from the web
GNU General Public License v3.0
4 stars 1 forks source link

Running on Lighttpd issues. #12

Closed Paku- closed 9 years ago

Paku- commented 9 years ago

After changing my web server to Lighttpd I am getting a lot of errors in various places. 1.PHPInfo() is running well. 2.myPHPAdmin the same

but GPIO web not ... getting

Fatal error: Call to undefined function scrypt() in /var/www/gpio/scrypt.php on line 177

linwiz commented 9 years ago

Lighttpd cannot find the scrypt library. I know nothing of lighttpd, does it support such libraries or do they have to be rewrote for lighttpd?

Paku- commented 9 years ago

The one I forgot at the beginning :) It seems the PHP support should work as usually. Just need to find proper php.ini now for:

;Enable scrypt extension module
extension=scrypt.so
linwiz commented 9 years ago

Right, I forgot about that. If you can find the php.ini for lighttpd you should be good. Maybe try this command sudo find / -name php.ini

I only have one for apache2 and php cli

Paku- commented 9 years ago

Got it !! The additional problem was I installed fpm php accellerator (http://php-fpm.org/) ... and just forgot to restart it as well :)

Now running, smoothly on Lighttpd :)