Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:03:40+00:00 2026-06-06T23:03:40+00:00

When I run Apache (via XAMPP) as a standalone server (not as a service),

  • 0

When I run Apache (via XAMPP) as a standalone server (not as a service), the following code works fine (username and password removed)

$server = "WMS";
$link  = odbc_connect($server,'','');

if (!$link) {
    die('Something went horribly wrong while connecting to MSSQL');
}else {echo('');}

However, when I change Apache to run as Windows service, the connection breaks up and I’m getting following error message:

Warning: odbc_connect() [function.odbc-connect]: SQL error:
[Microsoft][ODBC Driver Manager] Data source name not found
and no default driver specified, SQL state IM002 in SQLConnect
in C:\xampp\htdocs\Dev\well.php on line 30.
Something went wrong while connecting to MSSQL

This is Windows Server 2008 issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:03:44+00:00Added an answer on June 6, 2026 at 11:03 pm

    Running apache as a service meant windows was no longer logging in to the SQL server which was my method of authentication

    switching SQL Server to SQL and Windows Authentication meant that the web app could login with the credentials provided in the line

    $link  = odbc_connect($server,'[username]','[password]');
    

    so long as they matched a user in the security and login section of the server setup and those users were set as SQL Authentication type users

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run apache (via xampp) as a standalone server not as a service
I can run redmine via webrick successfully, however with apache I get the following
I keep getting this error when I call 'tomcat:run'. The plugin 'org.apache.maven.plugins:maven-tomcat-plugin' does not
I've been trying to get MOD_WSGI working on Apache via XAMPP on my Mac
If I run the command via php exec(): It does not work. But if
I'm trying to run a command on a remote server via SSH from a
I've got my Apache server setup and it is handling Flask responses via mod_wsgi.
I've deployed Django to Apache via mod_wsgi . Django is running fine when hosted
Under my debian copy, I run a django site runs via apache2 and mod_wsgi.
I need to run Linux-Apache-PHP-MySQL application (Moodle e-learning platform) for a large number of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.