Running Mantis on MS SQL Server - php

As a part of the technology standardization in the organization I work at, we're moving from MySQL and Linux to MS SQL Server and Windows. One of the PHP-based applications that we use is Mantis, a bug tracking system available at http://www.mantisbt.org
Has anyone had any luck getting Mantis to work completely with MS SQL Server? I've got Mantis 1.1.8 working for the most part but file attachments do not work, while Mantis 1.2.1 does not install on MS SQL Server.

Here is a step by step guide, maybe this helps out: http://gonfva.blogspot.com/2010/03/mantis-on-sql-server.html

The mantis page states:
It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver.
So it is possible, and you might want to use the official mantis support channels.

I can confirm also that Mantis 1.2.x does not install on MS SQL Server. We tried at work but had to move to a LAMP stack to get 1.2.x running. Seems to work with 1.1.x versions.
Also see this forum thread: http://www.mantisbt.org/forums/viewtopic.php?f=3&t=18827

As part of the MantisBT development team I can tell you that although there is code support for MS SQL Server, there are many issues with it. The cause of the problem is that none of the developers - or contributing users - are running an SQL Server installation and we're not aware of any free setups which we can use to the SQL Server.
Long story short: it probably doesn't work out of the box, but you might force it into running by patching it. If you do, please contribute those changes back, as there are many users which reported problems with SQL Server.

I confirm that Mantis 1.2.6 IS successfully installable and usable on IIS 7.5 + PHP 5.3.6
Tips: http://thegrayzone.co.uk/blog/2011/03/setting-up-mantisbt-on-iis-7-w-sql-server/

Related

Can Microsoft's SQLSRV driver for PHP run on Apache?

Scenario:
I have a PHP website running on Apache server
I have an ERP system (MS SQL) that runs on a different server
I need to connect from my website to that MS SQL server
I need to work with Microsoft SQL Server in my PHP application. I've managed to get their SQLSRV driver for PHP running on my localhost (WAMP, Apache + PHP 7.2).
I will need to deploy the app to a live website in the future that also runs on Apache server. Will this work? I can see Windows / Windows Server operating systems on their requirements page, but I am not sure whether they mean on the client side (the app that loads the driver) or the server side (where database is stored). On WAMP it works, but I am not sure whether it is because the WAMP itself is running on Windows (even though the server runs on Apache) or not.
Firstly, you're asking the wrong question. Apache is the web server which you're already using, so you know that the answer to "can it run with Apache?" is "yes".
The relevant compatibility is with the operating system - you're running it on Windows, and you need to know if it will run on a different OS, probably some flavour of Linux.
Secondly, the documentation you've found looks to be very out of date. Microsoft has up to date documentation on their own site including a much larger list of supported operating systems. As well as Windows, it lists the versions of several Linux distributions that are officially supported, and several versions of macOS.
It's impossible to say for certain, or give any details of what packages you'll need to install, because you don't actually tell us what system your production server is; but the answer is almost certainly yes, a compatible version of the sqlsrv driver will be available.

SQL Server 2005 php 5.2

I'm having a really difficult time trying to get php to connect to SQL Server 2005. It seems like no matter what I do or what page I visit, I either get the wrong extension/driver or find a dead link. The most recent attempt was php_sqlsrv_52_ts_vc6.dll which apparently doesn't support anything prior to 2008.
After over two days of searching, I'm lost, and upgrading either php or SQL Server is not an option unfortunately...
EDIT:
Everything is running on IIS 6 - Server 2003 (Same box).
Your problem probably is that you are running IIS6, which will require the nts-version.
Additionally you have to install the SQL Server Native Client 2008, which is a bit misleading as it will still work with MSSQL 2005.
It should go something like this:
Download SQL Server Driver 2.0 for PHP
Place the dll (5.2 nts) into PHP's ext-folder
Enable the extension in the php.ini extension=sqlsrv*.dll
Install a recent version of Microsoft's Native Client (e.g. from the SQL Server 2012 Feature Pack)
Restart your web server.
I use Apache, so I'm not sure if there is anything else to do on IIS or whether some of the steps differ, but this is how I got it working.

How easy is it to use PHP on an MS Server with MS SQL?

I generally use linux servers and program in PHP (plus other associated technologies) with mysql databases. A client has existing ASP sites using MSSQL databases on a Windows server and wants some new sites created on their server using their MSSQL database as the main data source. I have used ASP in the past but much prefer PHP so would rather use this.
I just wanted to confirm that i'm right in saying as long as the server has PHP installed (which it does) then there's no reason I can't create a PHP site on the Windows server and just use different connectors to connect to the MSSQL db (rather than what i would usually use for connecting to a MYSQL db). Presumably (other than the different connect/query code) this would work in pretty much the same way as with a linux setup with mysql and i could then code the site in PHP but use their existing datasource?
I would be extremely grateful if anyone could confirm i'm right in saying this and if there's any other issues that might cause any problems?
Thanks so much for your help as ever,
Dave
You can enable MSSQL support in PHP on Windows. The default Windows PHP install has the php_mssql.dll extension commented out in the php.ini file. Uncomment that line, restart Apache, and it should work.
There is a supporting DLL called ntwdblib.dll that you may need to find a replacement for, as the version included with PHP may be outdated and won't work with newer versions of SQL Server. (I had this problem when setting it up.)
There are two different libraries to connect to SQL Server from PHP:
The legacy mssql extension, which has been discontinued on Windows
Microsoft's sqlsrv extension, which only works on Windows
I've basically worked with the second one and I can say it's a very interesting product. It's robust, it has a very nice interface and it's totally up-to-date. But what I like most is that it has very nice features. E.g.:
It can return dates as PHP DateTime objects
It provides a PDO driver
The only drawback of using SQL Server is that there isn't an easy way to write a cross-platform app but I understand it isn't problem in your case.
Yes, it is rather straight forweard.
You need to have the mssql library activated in php.ini. Which can be troublesom.
MSSSQL docmentation

SQL Server / PHP / Web Based Admin Tool - What are some phpmyadmin-like tools for SQL Server?

I'm trying to find a phpmyadmin-like db administration tool for SQL Server for a LAMP environment. I've only been able to find similar tools that exist for a IIS/ASP environment.
Try http://www.adminer.org/
it supports mssql as well. Although its written in PHP.
There is a project called phpMSAdmin, but I have no idea if it's finished enough to be useable. The current release is 0.18 from july 2006.
http://www.phpmsadmin.org/
http://sourceforge.net/projects/phpmsadmin/files/
http://freshmeat.net/projects/phpmsadmin/
Perhaps the project could be revived? Anyone?
SQL Server Management Studio Express.
http://www.microsoft.com/downloads/details.aspx?FamilyId=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en
It's not web based, but I'm not aware of any web-based ones for SQL Server

Looking for a web server that include the following technologies ColdFusion, PHP, MS SQL Server, MySQL

Can anyone explain if it is possible to have a web server for all of these technologies:
ColdFusion, PHP, MS SQL Server, MySQL
I have a web developer insisting that they require all of the above however it doesn't quite make sense to me.
Any help or clarification is appreciated.
It's possible, but MS SQL being a Windows only product, you'll need a Windows server, preferably one from the Server family (Windows Server 2003 or 2008). PHP and mySQL can run happily on Windows, I've got them both running on the Windows 7 machine I'm writing this on.
I don't know whether a hosting provider will run all these things on the same server in a standard (cheap) package - you may have to have one tailor-made. But that depends entirely on your situation, of course.
As to whether this makes sense, though - I don't know. Is this a new product being developed? Then it sounds very strange to need two different database platforms, and two entirely different web development environments. If it's to integrate a number of existing products, it may make sense.
It is possible to have all of those technologies installed on a Windows server
It is possible to make a connection to both MS SQL and MySQL via both PHP and ColdFusion.
Providers usually have PHP and MySQL as combination, but the bigger providers have also windows based hosting with an MS SQL database server, so a connection from the PHP linux server can be made to a MS SQL server (you do need some special library installed though I read).
Not many providers offer ColdFusion hosting, at least not in a shared manner. There are a few, godaddy to say one among others such as hosting.com, take a google around the world to find them.
If you want to do this yourself, you could get a Windows VPS and install all the required software.
ColdFusion exists now also opensource, something not many seem to know: Railo
It is possible to have all of those installed. We have a LAMP server that runs all of that but MSSQL. You could have a Windows box run all of them too. Not sure about MSSQL on Linux, but I know its definitely possible to have all that on a Windows box.

Categories