This has become a frustrating thing for me and I'm reaching out to you guys after two days of unsuccessful attempts.
I need to make odbc connection to DB2 through php, but here's my issue:
I have installed unixODBC and php-odbc. Where can I find iSeriesAccess-6.1.0-1.2.i386.rpm
I have searched everywhere on IBM website without success.
I really appreciate it if someone could give me a link to download this rpm file.
IBM Access (the product containing the ODBC driver) is licensed software and is only available through ESS:
This optional package, IBM i Access Client Solutions - Linux Application Package, is only available for download on the Entitled Software Support (ESS) website under 5761-SS1 or 5770-SS1. Physical media is not available. Here is an example of downloading IBM i Access Client Solutions along with its two optional packages (Linux Application Package and Windows Application Package).
Obtaining Access Client Solutions
IBM i Access is not free software. There's an IBM Technote explaining how to obtain the software. In short, you need to log in to the IBM ESS (Entitled Software Support) site at the following URL: http://www-304.ibm.com/servers/eserver/ess/index.wss
My company uses IBM i Access, however, the files had to be downloaded via the company that set up our server. They had access in ESS to download the drivers, whereas the account that we had in-house didn't. I guess that means the license is theirs and not ours.
Related
Hi to all and Thanks in advance,
I am new to google cloud platform. Recently i created one google account and created one Ubuntu vm instance on that.Meanwhile, downloaded free version of xampp(php mysql server) from apache and installed on it.And also pointing one domain to that IP.I have a plan to host more website on(by making virtual host) it.I don't know whether its wright or wrong. I am really grateful if you are answering my below queries.
1.Whether its secure or not. If no, how to configure secure xampp server.Please also mention
alternative options.
If yes, to do something to get it right?.
2.Please tell me, the proper way to make ubuntu apache server on google cloud platform
I am very much eager to hear from you guys.
You've already created a VM instance and installed based on Ubuntu and installed XAMPP on it. In general there's no difference in installing and configuring software on standard server or GCE VM.
Have a look at the tutorial Setting Up LAMP on Compute Engine:
This page shows you how to get a LAMP stack running on a Google
Compute Engine virtual machine instance. Follow the steps in this
tutorial to configure LAMP on a Debian, Ubuntu, or CentOS instance.
and check if you missed something.
In addition, I'd recommend you a few extra steps:
reserve a static external IP address and assigning it to your VM instance instance.
use appropriate to your load machine type instead of mentioned in the tutorial f1-micro (you can change it later).
learn more about GCP Firewall to use it instead of firewall on your VM instance.
create snapshots of your persistent disk to protect your data.
choose DNS servers for your domains: it could be Google Cloud DNS or other DNS servers.
think about reservation of Compute Engine zonal resources, it could be helpful in some cases.
check Marketplace for preconfigured LAMP solutions.
Going back to your questions:
To avoid some obvious security issues you should follow community tutorial, official documentations, security recommendations for used software and common sense.
You're able to install LAMP manually (as you already did) or use preconfigured solution from Marketplace.
you can use centos to configure your apache mysql php to run your site. For more info visit the link here,
https://www.wlpbasic.tech/how-to-configure-a-lamp-on-centos-7/
During the IBM Cloud Foundy upgrade to cflinuxfs3 a few things got missed, including providing a way to connect IBM Cloud php app to IBM Cloud DB2.
The provided buildpacks do not support DB2 connections and the instructions on IBM Knowledge Center are no longer valid.
Anyone knows how to connect IBM Cloud php app to IBM Cloud DB2 after the Sept 16th upgrade?
If your cloud solution does not supply a working extension for Db2 to work with your PHP in your chosen environment, that is not a matter for StackOverflow.
Instead, Use the github issues page(s) to work with your buildpack supplier and cloud vendor to build the required extension with the required toolchain, or pay someone to do the build and test and deploy to your instances.
If you use an IBM Db2 driver and and IBM written Db2 extension for PHP, then it is a CLI / ODBC application, and because of that, the configuration for SSL needs to follow the IBM-documented steps - all of which have the pre-requisite that you have a working PHP extension for Db2 that works in your environment, along with other pre-reqs.
EDIT:
It is entirely possible to do this for free This still requires a license, I'm not sure how much or exactly which license is needed as mine was bundled with my installer.
I'm trying to connect to an IBM i DB2 server from a local PC as part of a PHP application. I'm trying to set myself up for local development.
I can't find a download for "IBM DB2 Universal Database client" and/or "IBM DB2 Connect" mentioned below. Has anyone done this before and could lend some insight? I'm open to alternate solutions so long as the db2_* functions are available. I'm working with existing code with no easy/quick way to switch between connection types between development and production.
This is a near duplicate question as here but that too did not have an answer. The OP ended up giving up and connected with "IBM Client Access OLE DB" using "IBMDA400", but I also can't find a download for it. I'm not even sure if this method would enable the db2_* functions either.
I'm using a Bitnami Wamp stack (https://bitnami.com/stack/wamp)
I have downloaded the php_ibm_db2.dll from
https://pecl.php.net/package/ibm_db2 and added
extension=php_ibm_db2.dll to my php.ini file.
I've confirmed the php.ini file is the one being used by checking the
output of echo phpinfo(); and successfully modifying it.
I've also placed php_ibm_db2.dll in the location specified by the
extension_dir directive. extension_dir = "C:\Bitnami\wampstack-5.6.29-1\php\ext"
The only PHP error I see logged is when I start up the server (which is still successful - albeit no db2_* functions).
[18-Jan-2017 21:08:18 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Bitnami\wampstack-5.6.29-1\php\ext\php_ibm_db2.dll' - The specified module could not be found.
in Unknown on line 0
[18-Jan-2017 21:08:19 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Bitnami\wampstack-5.6.29-1\php\ext\php_ibm_db2.dll' - The specified module could not be found.
in Unknown on line 0
But the file C:\Bitnami\wampstack-5.6.29-1\php\ext\php_ibm_db2.dll does exist and has the same exact permissions as every other *.dll file in the directory (which has not been modified since the Wamp stack was installed).
I have read that "IBM DB2 Universal Database client" and "IBM DB2 Connect" must be installed on the same machine running PHP here but am having trouble finding a download for either. I can find instructions on how to install each, but no download link.
I've found a download for "IBM Data Server Client" which is behind a log in on IBM's site. I'm wondering if this is one of the two programs I need installed just by a different name. I know name consistency isn't IBM's best attribute... :D
I have some answers.
JDBC and ODBC support is free and it is typically shipped with other IBM software. This doesn't help in regards to db2_* functions in PHP.
If your DB2 database is on an IBM i or even Z/OS then the only way to do this is with DB2 Connect. There are a few different versions, but for workstation development you would want DB2 Connect Enterprise Edition. The downside is the smallest number of packages they currently offer is 25 users at ~$3,800. This comes out to about $152/user but for a small shop with only 2 or 3 developers this is effectively out of the question unfortunately. At one point they did offer a 5 license package, but as of now they no longer offer it. Hopefully they will in the future.
If your DB2 database is on LUW then all you need is IBM Data Server Client which can be downloaded for free from here (requires IBM account though):
https://www-01.ibm.com/marketing/iwm/iwm/web/reg/pick.do?source=swg-idsc97&lang=en_US
A potential alternative is to serve an API from the IBM i which is consumed by a local workstation during development of an application other than the API. However development of the API itself would still only be able to be done on the system AFAIK. You could also setup a local DB2 database as well and copy any files over. There would be further differences between production and development, but could save some money.
Personally I think it is absurd they charge for the ability to remotely connect to the DB2 database on IBM i or Z/OS using a method other than JDBC or ODBC but charge nothing for LUW. Coupled with the fact that the smallest package is for 25 users makes it even more discouraging for small to mid-sized business (the primary customers for IBM i).
I got this working with just "IBM Data Server Client". First I installed a Wamp stack from Bitnami, PHP 5.6.30 32bit. Then I downloaded IBM Data Server Client from the passport advantage area. I haven't tried the version from here after getting it working though, so that one might work as well. These steps are based on the version I got from passport advantage. It has an install wizard, so you can just follow the steps, but here is an IBM article on the process. That article includes installation directions for other software in addition to IBM Data Server Client, so only pay attention to the ones which apply. After installation you have to configure the client from a Window's Command prompt. To do so I followed this article. To summarize, you have to catalog the node (server) and then catalog the database. Then you restart the session and test it by connecting. Syntax is below:
<+NODENAME+> is made up by you. <+REMOTE+> is the FQDN or IP. <+PORT+> is the port of the <+REMOTE+> you should be connecting with. Usually the port will be 446. <+database_name+> is the database name.
db2 catalog tcpip node <NODENAME> remote <REMOTE> server <PORT>
db2 catalog database <database_name> at node <NODENAME>
Db2 terminate
db2 connect to <database_name> user <user_name> (you will then be prompted for a password)
Once this is complete you have to get the Windows PHP ddl for the IBM_DB2 driver from here. I used version 1.9.9. Then move the php_ibm_db2.dll file to your PHP extension directory as specified in the extension_dir directive in your php.ini. Then add this line to you're php.ini extension=php_ibm_db2.dll. Then restart Apache and you should be able to connect. While successfully connecting to the DB, I'm still having issues with unqualified tables at this point. It seems to use the username instead of the provided library list despite the library list being set correctly. I'll update when I figure this part out.
This is a rough outline of what I had to do to get it working in my particular situation and not intended to be an all encompassing tutorial. If your environment is different you may have to adjust. Additionally I'm not sure if there are any other dependencies for php_ibm_db2.dll which happened to already be satisfied for me. Hopefully this will at least save someone some time and money.
I solved the library list issue; See this answer: https://stackoverflow.com/a/43193058/967617
I would like to access our Domino Databases from php.
My php5 is running in an Linux environment OpenSuse and for development Debian based System. Domino Server 8.5.1 is also running on a OpenSuse Server.
Currently I'am accessing the Databases via parsing the web pages from Notes, but that is a horrible way to do that.
Are there any ways or ideas to access Notes an more comfortable way?
Yes, there are plenty of ways. You can use Domino Designer to write a web service on the Domino server to expose the data that you want, and access the service that from your PHP code. You can use REST APIs if your Domino server can be upgraded to 8.5.3 or higher. You might be able to install Domino on your OpenSuse server and have your PHP code invoke Java programs that use the Notes classes in Notes.jar to do the work, or you can actually do that without installing Domino, but you'll have to use the remote version of the classes in NCSO.jar and your server will have to enable CORBA. You can use ODBC and NotesSQL as discussed here. I'm listing that last even though you did put an ODBC tag on your question because Notes databases are not relational and I find thinking of them that way to be too limiting, but if your data fits a relational model and you're comfortable with it, then it might be your best choice.
What Richard said, except I would start with this link for REST APIs. That takes you to the latest product documentation. Richard's link takes you to a slightly outdated page on OpenNTF.
i am searching in the internet for server i can upload my project on it my project developed by php and oracle so need server support both php as programming language and oracle as db
Looking at the price of an oracle license it's very unlikely that you will find a hosting company offering this on shared servers.
You could get a server with root access or a managed server though and then buy an oracle license and install it on there (or have whoever is managing your server install it).
However, it might be much easier and cheaper for you if you switched to MySQL!
You can usually configure a VPS or Dedicated Server with any software you require.
AWS can provide Oracle database services - but you need to buy your DBA from them as well. There's no end of hosting companies offering bare vhosts where you can install Oracle and PHP.