Skip to content

Fails to launch #12

Open
Open
@halfagascan

Description

@halfagascan

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian

Linux nuc 6.1.0-13-amd64

2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
altname enp0s25
inet 10.0.0.136/24 brd 10.0.0.255 scope global dynamic eno1

Accessing from gettech ip:inet 10.0.0.79

git clone the repo

mariadb create database formbuilder;

On access of the site: http://SimplePhpFormBuilder, nothin happens
Checking /var/log/nginx/error.log, errors show:

'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/SimplePhpFormBuilder/install/include/shared.inc.php:28'

And:

'[error] 163765#163765: *49 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_runtime() in /var/www/SimplePhpFormBuilder/install/include/functions.inc.php:25'

Edit those files and comment out the line.
DDG search seems to suggest this was deprecated sometime ago.

Restart nginx, web page loads, shows all passed, go thru set-up, on completion, web page refreshs and shows:
'Connection failed: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)'

I've edited database.login with my creds
'<?php
$server = 'localhost';
$username = 'jerry';
$password = 'ALLCAPS';
$database = 'formbuilder';'

'try{
$conn = new PDO("mysql:host=$server;dbname=$database;", $username, $password);
} catch(PDOException $e){
die( "Connection failed: " . $e->getMessage());
}'

``
restarted both nginx and mariadb, no change

'231113 14:50:02 1054 Connect root@localhost on formbuilder using Socket
1054 Connect Access denied for user 'root'@'localhost' (using password: YES)
1055 Connect root@localhost on formbuilder using Socket
1055 Connect Access denied for user 'root'@'localhost' (using password: YES)
231113 15:00:12 1056 Connect root@localhost on formbuilder using Socket
1056 Connect Access denied for user 'root'@'localhost' (using password: YES)

              Connect  Access denied for user 'root'@'example' (using password: YES)'

I am able to login to the database as my user and as root, locally and am able to use myphpadmin from remote 10.0.0.79
The database does get created and I'm able view users.
I've attempted to delete the default user, add me as user, still no luck.
I've found your sql create script, added a line for me, sourced that in mariadb, still no luck.

Some guidence would be appreciated.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions