Upgraded PHP to 7.4 and PDO is not found [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I work for a school that has a new webservice we are trying to build for the school. I wanted to upgrade the PHP from 5.6 to 7.4 so we can run some extensions. However, the website connects to a PostgreSQL database using the PDO function
conn = new PDO("pgsql:host=*** dbname=***","***", "***");
Now that we upgraded, we are receiving an error
PHP Fatal error: Uncaught Error: Class 'PDO' not found in
I went to easy apache 4 and made sure php74-php-pdo was installed. What else am I missing?
Every day this is broken we will be missing data. Please help.

I switched out PDO and put in pg_connect. It seems to connect to the database just fine. I'll have to keep an eye on it to make sure it is working properly.

Related

Error while installing moodle 3.9 on Ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am installing moodle on a VirtualMachine.
If I use the Webinstaller (/moodle/install.php) I get following error:
Fatal error: Cannot use 'object' as class name as it is reserved in
/var/www/html/moodle/lib/setuplib.php on line 66
Using php7.4, added all Packages as required and recommended in moodleDocs
You are not installing Moodle 3.9 - it sounds like you are trying to install an old version such as Moodle 2.9 (or similar), as the line in question (class object extends stdClass {};) was deprecated in Moodle 3.1 and completely removed in Moodle 3.4.
Earlier versions of Moodle are not compatible with PHP 7.4.

Can i use phabricator in Ubuntu without the support of mysql? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am bit confused about the installation of phabricator
In every sites they mentioned it like for installing Phabricator i need a prerequisite of PHP5 and mysql
But i already have Oracle SQL can i do it without installing MYSQL....
MySQL: You need MySQL.
https://secure.phabricator.com/book/phabricator/article/installation_guide/
The manual says you need MySQL. So you probably need MySQL. Oracle and MySQL (or most other database systems) aren't 100% cross compatible. Phabricator was written for MySQL, period.

Remove weird looking orange PHP errors on Debian [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I set up a Debian virtual machine for local development, but funny enough any kind of PHP errors are displayed in an (too me) unusual design, with a orange table layout... How can I make PHP display errors the with the "traditional" design?
Update (added system explanation and screenshot):
It's Debian running on a virtual machine on my Mac using VirtualBox.
Based on the comment from Bojangles I investigated and found xdebug to be enabled. Disabling it removed the "orange" error output, and I now get "normal" error display.
I disabled it by removing the link to include the xdebug extension in /etc/php5/conf.d

Where is the included PHP interpreter in the GAE SDK? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Google App Engine version 1.8.5 clearly says that "the Mac OSX SDK now includes a PHP interpreter, installing PHP separately is no longer required." However, I don't seem to find it. I know I could just install php-cgi on my own, but if it were indeed included in the SDK, I wouldn't want to install another copy.
It is here: /Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/php-cgi

Cannot connect with MS SQL Server database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am trying to connect to a Microsoft SQL Server 2008 database using sqlsrv_connect in PHP.
I've already installed, Microsoft SQL Server 2008 native client from http://www.microsoft.com/en-us/download/details.aspx?id=27596 (SQLSRV30.exe), since my php version is 5.4.3 and I am running with Thread Safety enabled.
I've also tried Connecting to an sql server database using php on windows.
I've configured everything accordingly, how it should be configured, but sqlsrv_connect is still giving me:
Fatal error: Call to undefined function sqlsrv_connect()
The thing is when I run php.exe -i in my command prompt, it shows that sqlsrv support is enabled: sqlsrv support => enabled, but it is not showing in phpinfo() although the sqlsrv extension is in my php ext directory, what could be wrong?
What am I doing wrong? I need help with this from people who might have had this connection problem before.
The mistake I made was that, I later learnt that there are three php.ini files that needs to be modified for the added extension to work.
The first is: wamp/bin/php/php.ini
The second: wamp/bin/apache/php.ini
The third: wamp/bin/php/phpForApache.ini
I didn't edit the last file, that was the problem. It works now.

Categories