I am using and trying to configure the below things:
CentOS 6.5
Apache 2.4
PHP 5.6 --with-ldap
Found an error ldap not found.
yum list installed | grep openldap
shows openldap installed:
openldap.x86_64 2.4.40-16.el6 #base
Please suggest
Why trying to build from sources, when binary packages exists ?
See PHP Configuration Tips, initially written for CentOS 7 but suitable for CentOS 6 using the httpd24 collection.
See section 2 about Running a recent PHP version.
The ldap extension is available in the repository.
Related
I use Oracle Linux with 64-bit Arm architecture in Oracle Cloud Ampere A1 Compute.
Since official Oracle Linux only support up to 7.4 and Remi repo also doesn't support aarch64 , how to install PHP 8 to aarch64/arm64 especially oracle Linux or other RHEL base Linux?
I don't want to build from source, but if it's the only way to install please give me steps by steps. Because I tried to build from the source but failed with so many errors (I tried with some different configs).
I think Oracle Ampere A1 is similar to AWS Graviton2, but I don't see any reference also how to install PHP 8 to AWS EC2 Graviton2. Is PHP8 really not supported on arm64?
To list available Module Streams for PHP:
$ dnf module list php
To install PHP 7.4 :
$ sudo dnf install #php:8.0
I was using Chef to provision Apache with PHP module using the httpd cookbook. However, installing mod_php with that cookbook would install the PHP 5 module , even though I had remi set up to install PHP 7 (php -v outputs version 7.1).
How do I manually install (using yum or something) Apache PHP 7 module (php7_module) on Centos 6.7?
It is installing PHP5 because that cookbook is suppose to support only upto that. If you want a change, you can go and change/update/wrapper the module_helper.rb file for your environment and test it out.
https://github.com/chef-cookbooks/httpd/blob/master/libraries/httpd_module.rb
I'm currently trying to install PHP Tidy on a CentOS 7 server (I'm running PHP Version 5.4.16 if that helps as well), but am having problems with the install.
I've been running (as per the documentation)
yum install php-tidy
but get the following error:
No package php-tidy available.
Error: Nothing to do
I've found someone having the same problem here, and the answer is listed as
When I installed via CentOS tidy.x86_64 and php-tidy.x86_64 were installed but Red Hat could not find the php-tidy.x86_64 rpm and I had to add the EPEL repository, then I managed to install php-tidy.x86_64 and it worked
...but I'm not sure what to make of that.
I've also found via the official Tidy documentation:
On Redhat-ish linux, you must install both libtidy and libtidy-devel (PHP 5.x):
sudo yum install libtidy libtidy-devel
...however I also get the same "No package..." error.
My only lead is that it doesn't appear that any of the documentation has to do with CentOS 7 (I believe they use CentOS 6 or 5, or an older version of PHP) and some of the suggestions are that some systems require yum install php5-tidy instead. So hence my original question on if Tidy is supported on CentOS 7, or if there is something else I might be doing incorrectly.
Use the webtatic repo ... PHP 5.6 on CentOS/RHEL 7.1 and 6.7 via Yum
https://webtatic.com/packages/php56/
php56w-tidy
I have a cloud hosted VPS with Centos 6.6 + Direct Admin + PHP 5.6.6 installed by my hosting provider.
I need to have the MongoDB php driver installed to connect to an external mongoDB.
I tried the following installations:
http://www.liquidweb.com/kb/how-to-install-the-mongodb-php-driver-extension-on-centos-6/
http://andres.jaimes.net/876/setup-mongo-php-module-centos-6/
install-mongodb-php-driver-in-centos-6-3 at madcoda com
Also yum --enablerepo=remi,remi-php56 php-pecl-mongo does not do the trick
I have in /usr/lib64/php/modules/ the following modules:
bz2.so, calendar.so, ctype.so, curl.so, exif.so, fileinfo.so, ftp.so, gettext.so, iconv.so, json.so, mongo.so, phar.so, sockets.so, tokenizer.so, zip.so
And in /etx/php.d/ the .ini files that are created for each module.
Installing mongo php driver on an old vps with centos 5.x was not a problem also not on Centos 6.2 with php 5.5.
In these cases the mongo.so was located in the location /usr/local/php/lib/php/extensions/no-debug-non-zts-xxxxxx/ and had to add it manually to the php.ini
The hosting provider is not supporting any else than the default installation I got.
I really appreciate any help.
Stan
I found the solution in the comment of this answer https://serverfault.com/questions/589877/pecl-command-produces-long-list-of-errors
PEAR had to be reinstalled from the remi-php56 repo because of PHP 5.6 running on the server.
After that I could use pecl install mongo and copy the mongo.so to the /usr/local/php/lib/php/extensions/no-debug-non-zts-xxxxxx/ folder.
# php -m | grep -i mongo > mongo is running
I have installed MongoDB service in my Centos 6 cloud server. Now i need to install in my server php-pecl-mongo-1.2.10-1.el6.remi.x86_64.rpm... but it gives "packages not found". Can anyone fix this problem? My php version is PHP 5.3.3.
I am using putty for configuring Centos 6 server. I have admin privilege to configure php.ini.
You could:
try RPM installing php-pecl-mongo without a specific version
point to a specific RPM url for installation, eg. using rpmfind.net => php-pecl-mongo
install using sudo pecl install mongo per the Unix installation instructions