Page 1 of 1

Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 3:22 pm
by CaptainPugwash
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.

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 4:14 pm
by kev1n
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

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 4:55 pm
by CaptainPugwash
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.

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 4:58 pm
by kev1n
Try googling
Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 5:04 pm
by kev1n
This might help: https://stackoverflow.com/questions/230 ... s-constant
(Editing your php.ini)

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 5:10 pm
by CaptainPugwash
Yeah, tried already, not at all sure what it means, something about enabling pdo library, I'll give it a go.

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 5:28 pm
by CaptainPugwash
Bingo! I had to install the pdo_mysql extension.

Just manages to log in

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 6:08 pm
by kev1n
Great!

Re: Installing on Synology NAS - 500 Error

Posted: Fri Mar 19, 2021 6:11 pm
by apmuthu
Wiki-ed.