php_dblib enabled but not in phpinfo (Windows) - php

I need to connect to a remote Sybase database with PHP 5.4.5 and I therefore enable the driver php_dblib (FreeTDS) for PHP and it shows as is in Wampserver but when I look at the phpinfo() results, there is nothing about dblib.
My application (Zend) returns
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in ... PropelPDO->__construct('dblib:host=ans...', 'sa', '', Array)
I am running Wampserver 2.2, Apache 2.2.3 and PHP 5.4.5.
Thank you for your help.

Related

OCI8 not active after installing imap extention (Oracle Linux)

I had a perfectly running local test environment with:
Oracle Linux 7 using httpd
PHP 7.4
Oracle DB 18c XE
several vhosts
Then I had to install the IMAP extention, and got this final message.
My local pages don't work anymore, and a look at the error log confirm my suspicion that it's because something happened to the OCI8:
PHP Fatal error: Uncaught Error: Call to undefined function oci_new_connect() in /var/www/
Finally, phpinfo() shows that there is indeed no OCI8.
Has anyone a way to solve this without much fuss? I checked and the correct OVI-8 version is still on my machine.

PHP Fatal error: Uncaught Error: Class 'Mongo' not found

I've been trying to install the MongoDB extension for PHP for a while now with no luck. I followed the standard steps:
Installed the driver via Pecl
Added it to my PHP.ini file (both CLI and Apache2)
Restarted Apache2
Yet, my code believes it does not exist:
$conn = new Mongo($_ENV["DB"]);
$db = $conn->test;
PHP Fatal error: Uncaught Error: Class 'Mongo' not found in /var/www/ag/API/index.php:22\nStack trace:\n#0 {main}\n thrown in /var/www/ag/API/index.php on line 22
Any ideas what I am doing wrong? I am using PHP 7.3 and Apache 2.4.38 on Debian
I saw a question like this for Windows, but it was of no help to me.

PHP PDO and oracle db "could not find driver"

I already enabled the extension=php_pdo_oci.dll in php and apache I also restarted the wampserver but still no still having this error Fatal error: Uncaught exception 'PDOException' with message 'could not find driver'
luck I don't know what is missing here.
Thank you in advance.
You have to install the PDO Oracle driver adapter:
http://php.net/manual/en/ref.pdo-oci.php

Fatal error: Uncaught Error: Call to undefined method MongoDB\Driver\Manager

Here are some necessary version related details of the packages I have installed on a dream-compute (godaddy) server machine with Ubuntu 16.04 with root access
Apache Server version: Apache/2.4.18 (Ubuntu)
php version 7
mongo db version v3.2.10 and
$ pecl search mongo
.Matched packages, channel pecl.php.net:
=======================================
Package Stable/(Latest) Local
mongo 1.6.14 (stable) MongoDB database driver
mongodb 1.1.9 (stable) 1.1.9 MongoDB driver for PHP
I have set up a website that was previously running on a different server with PHP 5.6 and an old mongo-php driver.
Previously I was using MongoClient class in the connection string but after some searching I changed it to MongoDB\Driver\Manager in my connection class of the php website.
I have also included extension=mongodb.so in the /etc/php/7.0/apache2/php.ini file
The rest of the website is working fine, only when i browse to a page which has a mongodb call at the back-end gives me the following error (from php error log file):
PHP Warning: Module 'mongodb' already loaded in Unknown on line 0
PHP Fatal error: Uncaught Error: Call to undefined method MongoDB\Driver\Manager::selectDB() in /var/www/html/iot/includes/class.abstract-data-collection.php:118
I am not an expert in linux and hence I am stuck here. Anyone have any idea what should I try to actually get to the problem, should I need to change the php code or is there anything I am missing in the configuration?
TA

Zend Server 6 apc not working

I have installed Zend Server 6 on Windows 7. Downloaded non thread safe apc dll (php_apc-3.1.10-5.4-vc9-x86.zip) from here. When I add apc extension in php.ini zend server is not starting. There were no problems with previous version of Zend Server. What can cause it?
UPDATE:
There is an error in log file.
PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class does not exist' in C:\Program Files (x86)\Zend\ZendServer\GUI\vendor\ZF2\library\Zend\Code\Reflection\ClassReflection.php:172

Categories