CodeIgniter Forums
Database - Xampp issue - Please help! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Database - Xampp issue - Please help! (/showthread.php?tid=28238)



Database - Xampp issue - Please help! - El Forum - 03-05-2010

[eluser]alejandronanez[/eluser]
Hello everyone!!!
Guys I'd been working on xampp 1.7.3 ( PHP 5.3 ) in one machine and I have to move to a new machine with xampp 1.7.1 (PHP 5.2.9).
I work with Oracle XE, I install Oracle XE on my new machine with the same username/password.

I create the same directory for my application 'tesis' so c:\xampp\tesis\

I edit the php.ini file, I ereased the ' ; ' from php_oci8.dll

And it just don't work, when i type this http://localhost/tesis/ it says.

Code:
A Database Error Occurred

Unable to connect to your database server using the provided settings.

I also have an .htaccess file.

What can be wrong? Please help me!

Thank guys


Database - Xampp issue - Please help! - El Forum - 03-05-2010

[eluser]danmontgomery[/eluser]
It means CI is unable to connect to the database with the host, username and password given in config/database.php... Could be a user/permissions issue in oracle, not really sure, I don't use oracle. Connection isn't made over HTTP, though, nothing to do with htaccess or CI's routing.


Database - Xampp issue - Please help! - El Forum - 03-05-2010

[eluser]alejandronanez[/eluser]
Yep, but the problem is that i have the same Oracle XE installation on my new machine(I update the tnsname file for the config/database file) and I also an exact copy of my old project folder.

Could it be the Xampp version?

Thanks.


Database - Xampp issue - Please help! - El Forum - 03-05-2010

[eluser]danmontgomery[/eluser]
Again, I don't use oracle so I can't really be sure, but in MySQL preferences are set based on the connecting host, not just username and password, I don't really know if that's relevant or not.

It's not likely Xampp, the only difference is the PHP version and there's minimal difference between 5.2.9 and 5.3 (certainly not anything affecting oci_connect() that I'm aware of)

What happens if you just try using oci_connect()?


Database - Xampp issue - Please help! - El Forum - 03-05-2010

[eluser]alejandronanez[/eluser]
I've benn trying again and the problem is when I load 'database' on autoload.php

Any suggestion?