freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] PHP Mssql Connection Error: Permissions?
- From: "Derrick Betts" <derrick AT blueaxis.com>
- To: <freetds AT lists.ibiblio.org>
- Subject: [freetds] PHP Mssql Connection Error: Permissions?
- Date: Tue, 6 Sep 2011 17:49:51 -0600
I have a PHP script that makes a connection to SQL Server.
>From the command line as root: tsql -H hostname -U username connects just
great and I can run queries.
I have a PHP script in /var/www/html/axis/public/test.php
When I: sudo -u apache -s (change the user from root to apache) and then run
my PHP script from the command line, it connects just great.
But, from the web browser, it fails. The web browser is able to connect
everywhere it is supposed to and renders all the web pages that don't need
an SQL connection.
apache is the user that is running httpd. I've confirmed this via: ps aux |
grep apache
Any ideas as to why apache can run the PHP script and connect just fine from
the command line, but when the browser attempts to connect to the very same
script, it fails?
Thanks,
Derrick
-
[freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/06/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Thomas, Christopher (LLU), 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Armando Ortiz, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
- Re: [freetds] PHP Mssql Connection Error: Permissions?, Randy Syring, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Armando Ortiz, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Armando Ortiz, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Armando Ortiz, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
- Re: [freetds] PHP Mssql Connection Error: Permissions?, Mittel, Alexander, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Armando Ortiz, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Derrick Betts, 09/07/2011
-
Re: [freetds] PHP Mssql Connection Error: Permissions?,
Thomas, Christopher (LLU), 09/07/2011
Archive powered by MHonArc 2.6.24.