mforan Posted September 6, 2011 Share Posted September 6, 2011 <?php $myServer = "<remote ip>"; $myUser = "<username>"; $myPass = "<password>"; $myDB = "FAP2"; //create an instance of the ADO connection object $conn = new COM ("ADODB.Connection") or die("Cannot start ADO"); ?> No error messages reported, but page "dies" at this point. The ubuntu machine can see the sql machine, but yet this is happening. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/ Share on other sites More sharing options...
premiso Posted September 6, 2011 Share Posted September 6, 2011 Did you do a: sudo apt-get install php5-adodb And after you do that, if the program is running on a webserver, restart the server. It should work. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266017 Share on other sites More sharing options...
mforan Posted September 6, 2011 Author Share Posted September 6, 2011 that hasn't worked, because i have just done an echo after the connection and the echo is not showing on my test page. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266034 Share on other sites More sharing options...
premiso Posted September 6, 2011 Share Posted September 6, 2011 that hasn't worked, because i have just done an echo after the connection and the echo is not showing on my test page. So you are saying that you actively installed the adodb php install set from ubuntu and restarted your webserver, then tried the connection? Without that module being setup / installed it will not work. Just checking as you did not really mention if you did do the install or not. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266039 Share on other sites More sharing options...
mforan Posted September 7, 2011 Author Share Posted September 7, 2011 yes we have installed it. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266361 Share on other sites More sharing options...
trq Posted September 7, 2011 Share Posted September 7, 2011 Your not even using the ADODB extension, your using COM. COM is a windows technology and does not exist on or for GNU/Linux. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266362 Share on other sites More sharing options...
mforan Posted September 7, 2011 Author Share Posted September 7, 2011 we have also tryed odbc_connect also and that has not worked. Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266374 Share on other sites More sharing options...
trq Posted September 7, 2011 Share Posted September 7, 2011 Have you checked phpinfo to ensure the extension is installed? Do you have error reporting on? Have you checked your error logs? What kind of database are you trying to connect to? Quote Link to comment https://forums.phpfreaks.com/topic/246554-php-ubuntu-new-installation-adodb-problems/#findComment-1266377 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.