Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th September 2010, 02:19
dxh dxh is offline
Junior Member
 
Join Date: Nov 2009
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default Perfect Server ubuntu 10.04 issue

Hello. I have set up a server following this how to, and I am having an issue with a php script. I get this error when I run the script:

PHP Fatal error: call to undefined function odbc_connect

I installed the freetds and unixodbc items, but I still get the same error.
This is trying to access my MSSQL db

I am pretty weak with php so any help is great.

-David

Last edited by dxh; 9th September 2010 at 02:28.
Reply With Quote
Sponsored Links
  #2  
Old 9th September 2010, 10:37
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,717
Thanks: 820
Thanked 5,322 Times in 4,175 Posts
Default

Looks as if the php odbc module is not installed or not loaded. To install it, run:

apt-get install php5-odbc

and then restart the apache webserver.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
dxh (15th September 2010)
  #3  
Old 15th September 2010, 19:18
dxh dxh is offline
Junior Member
 
Join Date: Nov 2009
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Thanks Till. That did the trick.

I noticed that when I run this script from the default profile it works, but when I run it from a client vhost it does not. I think this is an issue of what PHP is allowed to do for that vhost? Why would it work in the default site, but not under client sites I create?
Just curious if you have any suggestions.
Thanks again, your solution got me running.
Reply With Quote
Reply

Bookmarks

Tags
ispconfig 3, php, ubuntu 10.04

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server, postfix, gmail relay sjau Server Operation 3 14th December 2010 18:20
The Perfect Server - Ubuntu 10.04 [ISPConfig 3] YbeddyJ HOWTO-Related Questions 11 7th October 2010 15:15
The Perfect Server - Ubuntu Lucid Lynx (Ubuntu 10.04) [ISPConfig 2] - Install Samba donbzm2 HOWTO-Related Questions 1 16th July 2010 06:53
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Howtoforge the perfect Server(links) rini90 Installation/Configuration 0 14th December 2008 10:58


All times are GMT +2. The time now is 04:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.