I would like connect an external DB on my osTicket (1.14.2).
I modify osConfig.php :
Database Options
Mysql Login info
define('DBTYPE','mysql');
define('DBHOST','IPofDB:3306');
define('DBNAME','osticket_backup'); --> Dev environment DB
define('DBUSER','USER');
define('DBPASS','PASS');
And i build my docker image PHP/apache 2.
Docker-compose :
version: '3.8'
services:
php:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
volumes:
- ./www:/var/www/html
Dockerfile :
FROM php:5.6-apache-jessie
RUN apt-get update
RUN apt-get install -y apt-file
RUN apt-file update
RUN apt-get install -y vim bash net-tools
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql
But i have error 500 when i try to connect on localhost/login.php or other pages (PhpInfo is ok, and var_dump ok too).
I have no problem, when i connect with images mariadb and PMA, and i configure ostconfig.php with credential and HOST of container.
Thanks for your help ๐
NB: I ping the ip of DB via my container PHP.