Error on install. Shows only sqlite as database, and gives an error at submission

rluble's picture

I am trying to test FreePBXv3 and FreeSWITCH but I can not get pass the installation of FreePBX.

The installer page shows only sqlite as database support (mysql and postgresql are installed and so are the yum modules php-mysql php-pgsql).

Trying to submit the form with the default parameters gives the error "SQLite path does not exist or can not be read", so does if instead of 127.0.0.1 I put a path that does not exist. The error shows gracefully in the form and lets me try again.

If I put a path that does exist and public rw permission I get an error page with the following text "Warning: is_file(): Unable to find the wrapper "sqlite" - did you forget to enable it when you configured PHP? in /var/www/html/freepbxv3/system/core/Kohana.php on line 1554"

I am not php savvy yet and I guess there is something I am missing making the databases mysql or postgresql available to php.

Any help is appreciated. Keep up the good work,
Roberto Lublinerman


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hop onto the #freepbx-dev

p_lindheimer's picture

Hop onto the #freepbx-dev and as soon as one of the v3 devs are around I'm sure they will help walk you through the issue.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Anyone fix this?

matthewericfisher's picture

Hello,

I have this same issue. Was it ever resolved?

Matthew


I believe to fix this you

namotco's picture

I believe to fix this you need to recompile PHP with PDO and mysql:
pecl install pdo
pecl install pdo_mysql

Next recompile PHP and add this to your ./configure line:
'--with-mysql' '--with-zlib' '--with-curl' '--enable-pdo' '--with-pdo-mysql' '--with-sqlite' '--with-pdo-sqlite'

Make certain you see this in php.ini:
extension=pdo.so
extension=pdo_mysql.so

restart httpd