PHP Classes

Problems using it

Recommend this page to a friend!

      Ci2backend  >  All threads  >  Problems using it  >  (Un) Subscribe thread alerts  
Subject:Problems using it
Summary:Installed OK but it is not running
Messages:4
Author:André Dias
Date:2017-07-28 13:04:13
 

  1. Problems using it   Reply   Report abuse  
Picture of André Dias André Dias - 2017-07-28 13:04:13
Installation went smooth, it created all tables and said it was OK. Then it redirected to the index with an error stating mysql_pconnect was not found. I'm on PHP7 so the old mysql driver is gone. I don't understand why it installed correctly but now chose the wrong database driver... I downgraded my php to 5 and tried again, it installed fine but when I open the index it redirects to login.html, which does not exist. Can you help?

  2. Re: Problems using it   Reply   Report abuse  
Picture of Truong Van Phu Truong Van Phu - 2017-07-28 16:45:58 - In reply to message 1 from André Dias
Hi André Dias,

- If you using PHP7 please change database driver to mysqli in application/config/database.php

$db['default']['dbdriver'] = 'mysql1';

- About wrong URL: login.html not found, it's permalink of /index.php/users/login when the system have enable mode rewrite.

Please check it by checklist below:

1. Make sure mode rewrite is enable mod_rewrite.

2. Check existed file .htaccess in the root directory.

You can rename from file .htaccess.default

3. Test access link : http://your-domain/index.php/users/login

4. Try again access link : http://your-domain/login.html


If it not resolve, please contact me by skype : phutv0507, i will help you anytime.

Thank & best regards !

  3. Re: Problems using it   Reply   Report abuse  
Picture of Truong Van Phu Truong Van Phu - 2017-07-28 17:01:42 - In reply to message 2 from Truong Van Phu
Edited: $db['default']['dbdriver'] = 'mysql1'; --> $db['default']['dbdriver'] = 'mysqli';

  4. Re: Problems using it   Reply   Report abuse  
Picture of André Dias André Dias - 2017-07-28 21:13:01 - In reply to message 2 from Truong Van Phu
Thanks my friend, the problems are solved with your instructions.