patel22p / mytinytodo

Automatically exported from code.google.com/p/mytinytodo
0 stars 0 forks source link

Cannot run setup.php (errors) (PDO) #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Uploading of the whole script
2. Run setup.php
3.

What is the expected output? What do you see instead?
Does not install. First I got the following error:
Fatal error: Class 'PDO' not found in (my path/) class.db.sqlite3.php
I have edited my php.ini to enable all the PDO extensions
Then I get a 500 internal Server error

What version of the product are you using? On what operating system and
browser?
version 1.3.1, windows 7 64-bit laptop, Firefox 3.5.6
Server: Apache + PHP5

Please provide any additional information below.

Original issue reported on code.google.com by 69claud...@gmail.com on 27 Dec 2009 at 8:26

GoogleCodeExporter commented 8 years ago
Requred PHP modules for sqlite version: php_pdo and php_pdo_sqlite.

Please look at apache error log for any error description.

Original comment by maxpozd...@gmail.com on 27 Dec 2009 at 8:43

GoogleCodeExporter commented 8 years ago
OK, I have solved it:
I had to edit the old config file ('./db/config.php'):

1- Edited line 7 from sqlite to mysql: $config['db'] = 'mysql';

2- edited line 10 to 13 with my database info:
$config['mysql.host'] = "my info";
$config['mysql.db'] = "my info";
$config['mysql.user'] = "my info";
$config['mysql.password'] = "my info"; 

Then the setup went properly. Is this normal?

Thank you for your prompt response. Great script!

Original comment by 69claud...@gmail.com on 27 Dec 2009 at 9:08

GoogleCodeExporter commented 8 years ago
Yes, it's ok.
You've chosen mysql database instead of sqlite.

Original comment by maxpozd...@gmail.com on 27 Dec 2009 at 9:17