Installing on Synology NAS - 500 Error

Questions related to installing, setting up and configuring nuBuilder Forte

Installing on Synology NAS - 500 Error

Unread postby CaptainPugwash » Fri Mar 19, 2021 11:52 pm

Hi all, maybe someone has already done this?
I have a Synology NAS (DSM7 Beta) with PHP7.4 and Apache2.4 that appear to be up and running.
The PHPAdmin app is running and successfully connects to the Mariadb version 10.
The default web page for the web server is visible.
I unpacked the nubuilder files into a nubuilder4 sub-directory, but all i get is the 500 error in the browser.
(I have entered the db login info in the nuconfig file).

All tried previously with DSM6, same result.

Any help would be GREATLY appreciated!

Thanks.
CaptainPugwash
 
Posts: 4
Joined: Fri Mar 19, 2021 11:32 pm
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby kev1n » Sat Mar 20, 2021 12:44 am

Hi,

Just "500" can mean everything, please check the webserver / PHP logs.

I got nuBuilder running on as Synology NAS a while back but I can't quite remember all configuration steps. If I remember correctly, it was all about proper access rights and firewall configuration.
The installed components: Apache HTTP Server 2.2 (or 2.4), MariaDB 10, PHP 7.2, phpMyAdmin, Web Station
kev1n
nuBuilder Team
 
Posts: 1868
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby CaptainPugwash » Sat Mar 20, 2021 1:25 am

Thanks for the reply - hopefully this will help:

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in /volume1/web/nubuilder4/core/nudatabase.php:13\nStack trace:\n#0 /volume1/web/nubuilder4/cor

I also uploaded a more complete log.
Attachments
phplog.txt
(7.91 KiB) Downloaded 27 times
CaptainPugwash
 
Posts: 4
Joined: Fri Mar 19, 2021 11:32 pm
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby kev1n » Sat Mar 20, 2021 1:28 am

Try googling

Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
kev1n
nuBuilder Team
 
Posts: 1868
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby kev1n » Sat Mar 20, 2021 1:34 am

This might help: https://stackoverflow.com/questions/230 ... s-constant
(Editing your php.ini)
kev1n
nuBuilder Team
 
Posts: 1868
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby CaptainPugwash » Sat Mar 20, 2021 1:40 am

Yeah, tried already, not at all sure what it means, something about enabling pdo library, I'll give it a go.
CaptainPugwash
 
Posts: 4
Joined: Fri Mar 19, 2021 11:32 pm
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby CaptainPugwash » Sat Mar 20, 2021 1:58 am

Bingo! I had to install the pdo_mysql extension.

Just manages to log in
CaptainPugwash
 
Posts: 4
Joined: Fri Mar 19, 2021 11:32 pm
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby kev1n » Sat Mar 20, 2021 2:38 am

Great!
kev1n
nuBuilder Team
 
Posts: 1868
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Installing on Synology NAS - 500 Error

Unread postby apmuthu » Sat Mar 20, 2021 2:41 am

Wiki-ed.
apmuthu
 
Posts: 250
Joined: Sun Dec 06, 2020 3:20 pm
Location: Chennai, India, Singapore


Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest