PHP Redis extension is installed and enabled in laravel 6 version - laravel-6

When I am trying To installing redis in larvel 6 version I can not install redis and it extension it show me the error.

By default In Laravel 6 'client' => env('REDIS_CLIENT', 'phpredis'), is not working but when i change this 'client' => env('REDIS_CLIENT', 'predis') .

For ubuntu
sudo apt-get install php7.2-redis //7.2 is php version
then
sudo systemctl restart php7.2-fpm

Solution in my case was:
download Redis PHP extension (I used version https://pecl.php.net/package/redis/5.2.2/windows but you download a version for your php version from here https://pecl.php.net/package/redis/ )
copy php_redis.dll in your ext folder (in my cas was laragon4\bin\php\php-7.4.0-nts-Win32-vc15-x64\ext)
add to your php.ini extension=redis
restart apache
My problem was that I had installed and working Redis but I hadn't the php extension.

Related

lampp php5.6 install redis via pecl

I need to install redis on my lampp(php5.6.40) via pecl in mint 20
cd /opt/lampp/bin
sudo ./pecl install redis
but I got an error :
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
pecl/redis requires PHP (version >= 7.0.0), installed version is 5.6.40
can you help my to solve this issu, I need install redis on php5.6 because my project required php5.6 .
phpredis 5.x.x are drop PHP5 support
https://pecl.php.net/package-changelog.php?package=redis
try old version install.
pecl install redis-4.3.0

Remove phpmyadmin from Centos7

I did a general yum install command on my Centos7 server, and got phpmyadmin 4.4 - I want version 4.6
How do I cleanly remove phpmyadmin version 4.4 before installing the new version? I am running php7, and the phpmyadmin 4.4 added many php5.4 files, some of which conflict with my php installation.
Remove phpmyadmin:
yum remove phpmyadmin
Be aware:
It will not delete the /etc/httpd/conf.d/phpMyAdmin.conf file but it will change it to phpMyAdmin.conf.rpmsave
Same for /etc/phpMyAdmin/config.inc.php.rpmsave
I you are using centos 7 I believe you are using apache web server Apache/2.4.6 (CentOS). I usually provision centos with the epel repositories.
the version that is installed by default (using the terminal is 4.4.15)
when you install phpmyadmin using terminal it creates a file in /etc/httpd/conf.d/phpMyAdmin.conf
If you take a closer look to this file it has the php configuration where the phpmyadmin files are located in the server. (/usr/share/phpMyAdmin).
Phpmyadmin configuration
this are possible solutions:
1) download the version that you would like to have (phpMyadmin 4.6) and download it to the root of the web folder (var/www/html/phpMyAdmin) restart the server and you will be able to access phpmyadmin directly
2) you can download the php source from phpmyadmin official page to this folder /usr/share/phpMyadmin4.6
2.1) edit the configuration file to point to 4.6 php myadmin /etc/httpd/conf.d/phpMyAdmin.conf.
2.2) restar the server and try http://ip-to-server/phpMyAdmin
Hope it helps
There are two ways to delete phpMyadmin
yum remove phpMyAdmin.noarch
remove phpMyAdmin
Or
rpm -qa |grep phpMyAdmin
rpm -e rpm -e phpMyAdmin-4.4.15.10-2.el7.noarch
Remove phpMyAdmin with rpm

Centos 6.7 install PHP module for Apache

Im using a vagrant build vm and trying to install mod_php.
yum install mod_php
.....
Error: php70u-common conflicts with php-common-5.6.17-1.el6.remi.x86_64
Error: httpd24u conflicts with httpd-2.2.15-47.el6.centos.1.x86_64
Error: httpd24u-tools conflicts with httpd-tools-2.2.15-47.el6.centos.1.x86_64
I guess hes trying to download the module for php 7?
How can i install it for php 5.6?
you're installing the wrong version of mod_php. try: yum install mod_php70u

Installing Apache server

How to install Apache server on your computer? I have downloaded the file from here: http://httpd.apache.org/download.cgi but there is no installation file in this archive. What file should I be looking for or is there some other way to go about it completely and I am being totally wrong?
You could read the documentation : http://httpd.apache.org/docs/2.4/install.html
If you're Windows user, I would like to suggest you to install XAMPP from
(apache, mysql and php5)
https://www.apachefriends.org/download.html
If you're Linux user, type following command (Ubuntu or Debian)
$ sudo apt-get install apache2

How to check LAMP is installed or not?

I am newbie in vps. I installed centos 6.5 64bit. one hour ago and installed Apache, php, mysql successfully. now I have to install phpmyadmin. It requires something called LAMP. I don't know if LAMP is already installed by default with centos or I have to manually install it. What is the ssh command to check it if LAMP installed or just answer yes or no.
UPDATE:
[understood]
That blogger confused me by separating LAMP with comma.
If LAMP was correctly installed, i.e., PATH is already set for php,mysql and apache2, then run following commands from terminal:-
php -v // Return PHP version
apache2 -v // Returns apache version
mysql --version // Returns mysql version
if all of the above command returns their respective versions, then it means LAMP is installed.
BUT if it doesn't then there might be two cases:-
1) LAMP might be installed but is not added to path.
2) LAMP is not installed, Install it.
As for the first case, if it is installed but not runnable from terminal, then just run following commands to see where LAMP components are installed:-
1) Find file with name "apache2" in your pc. It will return list of path where a file name called "apache2" exists. You can then cross examine it further.
sudo find / -name apache2
2) Run the above same command to find file "mysql" and follow the same procedure further.
sudo find / -name mysql
3) For PHP:-
sudo find / -name php
LAMP stands for Linux, apache, Mysql, PHP, if you've installed apache, mysql and PHP correctly on a linux system you have LAMP already set up.
If you want to check whether the above mentioned dependecies are installed or not
To check whether php is installed or not
php5 -v
For Apchae
/usr/sbin/apache2 -V
If any of the mentioned dependencies are not install and you want to install the LAMP use the following command,
sudo apt-get install lamp-server^