trinxie
Dabbler
- Joined
- Feb 7, 2013
- Messages
- 28
Hello,
I have successfully installed the FAMP plugin for TrueNAS-12.0-U8, but I think I need to activate the JSON module for PHP.
Problem: When testing this simple example, I get no output (except for "Hello!")
I have not configured apache/php in a long time, so I feel lost.
Anyone have a hint how to proceed?
I have successfully installed the FAMP plugin for TrueNAS-12.0-U8, but I think I need to activate the JSON module for PHP.
Problem: When testing this simple example, I get no output (except for "Hello!")
Code:
<!DOCTYPE html>
<html><body>
<?php
echo "Hello!";
$cars = array("Volvo", "BMW", "Toyota");
echo json_encode($cars);
?>
</body></html>
I have not configured apache/php in a long time, so I feel lost.
Anyone have a hint how to proceed?
Code:
root@myFAMP:/usr/lib # php -m [PHP Modules] Core date hash libxml mysqli mysqlnd pcre Reflection SPL standard root@myFAMP:/usr/lib # php -ver PHP 7.4.30 (cli) (built: Aug 13 2022 01:34:10) ( NTS )