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.
Related
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 on Centos 7.8 and I wanted to know where I can find information (website or others) that will tell me if PHP 7.3 or 7.4 is compatible with my OS?
It's not CentOS that is responsible for compatibility, but Apache.
According to PHP.net, All 1.x and 2.x versions of Apache are supported on Linux x86 and amd64. PHP7 doesn't appear to be compatible with Apache 1.x, although there are some hacky ways to make it work, but I wouldn't recommend that. 7.3 and 7.4 are both fully compatible with Apache 2.x.
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.
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 using the Opscode community PHP cookbook to install PHP on a node. The node is CentOS and I have attempted setting the install_method to "source" and also tried overriding the version in my Role file.
No matter what I do - Chef continues to install PHP 5.3.3.
I want to know how to use this cookbook to install a newer version of PHP - or understand if it's even possible. I see references to PHP 5.3.28 and 5.4.15 in the default attribute settings - so I am under the impression that it should be possible.
Does anyone know how I might accomplish this?
Chef simply uses the packages available in the systems package repositories. So that might be 5.3 in your case.
The reference to 5.4.15 is for the source install. You'd have to use another recipe
php::source
You could set the preferred version for PHP from chef
:php => {
:version => "5.5",
},
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
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 1 year ago.
Improve this question
I am upgrade PHP to 5.4.4.1 on my debian server.
I have some modules from PECL, and now one of them shows:
#php --ini
PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/sphinx.so' - /usr/lib/php5/20100525/sphinx.so: undefined symbol: sphinx_open in Unknown on line 0
reinstall form PECL don't resolve problem, what can I do?
Frankly just uninstall the extension. Its not worth the bother.
Just include sphinxapi.php in your scripts instead.
The pure PHP version actully performs better than the extension, and is in sync with the server - so can do all the latest features, and contact the latest version of sphinx correctly.