Package Requires: libcurl.so.3 - php

Mysql is not working with PHP. I got a blank white page on my website. and I'm looking for the problem, for some reasons, i found out that my php version doesn't have a mysql version. So look for some solutions and here's what I've gone so far.
I tried to update my php version and mysql.
I got this error after executing this command
yum install -y php php-mysql
i have a centOS 6.4 and a php 5.3.3 . and my php doesn't have a mysql support. what should i do?
and after i execute the said command (yum install -y php php-mysql). I got an error message. Is there something wrong with my code?
Error: Package: php-common-5.3.27-2.w5.i386 (webtatic) Requires: libcurl.so.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

in my situation I solved my problem by enabling rpmforge-extras repository in yum.repos:
thanks to this
> cat /etc/yum.repos.d/rpmforge.repo
...
[rpmforge-extras]
...
enabled = 0

This is strange as yum typically tries to resolve dependencies. Try installing libcurl manually:
yum install libcurl libcurl-devel

Related

Does PHP 5.4 work with Mysql 5.6? if yes, what is right way to install them in Centos 6

I have installed php 5.4 under Centos 6.8 (5.4 is required php version for Magento 1.8), when I install Mysql 5.6 by these commands
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh mysql-community-release-el6-5.noarch.rpm
yum -y install mysql-server
at end of installation, I got below information:
I could not find a way to address this error by Google. I am not sure about
Does php5.4 work with Mysql5.6?
Is the way I installed Mysql5.6 correct?
why did this error happen?
Will appreciate if anyone can guide me a way out here, also explain the error.

Cannot install mbstring php conflict

I am trying to install php-mbstring with php 5.6 and I get this error:
Error: php56w-common conflicts with php-common-5.4.45-3.el6.remi.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have attempted to install php56-mbstring, but I get the following. I am not sure if this means it is already installed or not:
Nothing to do
What is the most appropriate package to install? Which one should I be trying to resolve and how can I resolve it. Thanks!
I run into same problem with my server running PHP 5.6.17. For me it seems that the extension that I was looking for was php56w-mbstring.x86_64
It can be found from webtatic repository. I don't remember enabling that by myself, but in case it is missing here is the instructions how to enable said repo: http://www.certdepot.net/rhel7-install-webtatic-repository/
You can list available repos in your server by command yum repolist
To search if your repos has something related to mbstring use command yum list *mbstring*
So solution for me was this: yum install php56w-mbstring.x86_64
Finally restart Apache: service httpd restart
By the way, I am running CentOS server so your commands might be slightly different on your OS.
Have you added the module to your PHP.ini file extension=php_mbstring.dll
I tried and tried everything until i came to this link. https://docs.phpmyadmin.net/en/latest/setup.html#debian-setup
I run /usr/sbin/pma-configure and bam I had phpmyadmin working without the mbstring error
there is so many setups now that it is hard to find the one you need.
running ubuntu 14.04 with 4 versions of php installed with virtualmin webmin cp. Debian and Ubuntu changed the way how setup is enabled and disabled. few just happy this is working now. hope this helps you spend less time that i did to find this solution.

Upgraded PHP to 5.6.16 and MySQL Extension not working

I was running a very outdated version of PHP version 5.3.3. So I updated it to 5.6.16. However since I've updated I am getting the following error when I try to view my Wordpress site:
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
I understand that the reason for this error is because the mysql extension is not being loaded by PHP but I am unsure as to what to do to get this? I've checked my php.ini file and uncommented this line
extension=msql.so
restarted my apache server and no luck!
The Code I am using to check if it is enabled is:
if (extension_loaded('mysql') or extension_loaded('mysqli')) {
echo "Loaded";
}else{
echo "Not Loaded";
}
when I run php -m in my terminal I see mysql is not listed.
Could anyone help me out with getting this to work.
I've also tried running this command yum install php-mysql but I get this error:
Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.3.3-46.el6_6.i686
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Thanks
Have you tried yum install php56w-mysql?
That should install the 5.6 version of the MySQL libraries. It looks like yum is trying to install the 5.3 version by default. Out of curiosity, what OS is this you are installing on, it might be a little out of date.

Composer install, PHP extension GD is missing

So I'm trying to deploy my git project to my linux server. After I cloned it I'm trying to do a composer install to get everything up and running but I'm getting an error doing so.
brianmcdo/image-palette dev-master requires ext-gd * -> the requested PHP extension gd is missing from your system.
Trying to fix this I'm running:
yum install php-gd
Yet giving me another error saying:
Error: php55w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I have PHP 5.5.30 on my server, I don't know if that has to do anything with it?
Does anyone know how I can fix this error and get my project running like it's supposed to?

php: mysql_connect() failing with no error message

I am running a simple test script from the command line on CentOS 5.6 with the PHP package installed from PHP 5.3 on CentOS/RHEL 5.6.
PHP runs fine in all other cases but when I hit mysql_connect() it fails without error.
If I run
$ php -m
I am not seeing MySQL as an installed module.
However I have added extension=mysql.so to my php.ini and rebooted.
Output of 'rpm -qa | grep php'
php-common-5.3.10-1.w5
php-5.3.10-1.w5
php-cli-5.3.10-1.w5
Output of 'yum install php-mysql'
--> Missing Dependency: php-common = 5.1.6-27.el5_7.5 is needed by package php-mysql-5.1.6-27.el5_7.5.x86_64 (updates)
php-pdo-5.1.6-27.el5_7.5.x86_64 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5_7.5 is needed by package php-pdo-5.1.6-27.el5_7.5.x86_64 (updates)
Error: Missing Dependency: php-common = 5.1.6-27.el5_7.5 is needed by package php-pdo-5.1.6-27.el5_7.5.x86_64 (updates)
Error: Missing Dependency: php-common = 5.1.6-27.el5_7.5 is needed by package php-mysql-5.1.6-27.el5_7.5.x86_64 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
I am not seeing MySQL as an installed module.
Did you install it?
# yum install php-mysql
(from the same repo you installed php from).
EDIT:
run this:
yum --enablerepo=webtatic install php-mysql
this tells yum to get the packages from webtatic repository (in addition to system configured repositories). If you want webtatic among system enabled repositories, run:
yum --enablerepo=webtatic install webtatic-release
First, some advice: stop using mysql libraries and use PDO or at least the mysqli libraries.
Now for some troubleshooting help: the first step is to be 100% sure the mysql is loading. Create a script (web based) with:
phpinfo();
Confirm that somewhere on this page there is a block indicating that the mysql extension is being loaded.
Wherever you are testing an are uncertain of errors, right before you call mysql_connect add these lines:
ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL | E_STRICT);
This will ensure you aren't suppressing the errors somewhere else before the connect. Some frameworks sometimes do this.
If it's indeed the module is loading and with the added error logging code you still don't get a valid error. I'd try connecting in a command line php script. Look in the php.ini file to see what "error_log" is set to. This is the default log it will it will log to--sometime http based settings override logging, so even if errors are thown, you don't see or can't find them. A command line php script factors this out.
Last but not least, you can always post your connection string to this post. Try connecting from the command line on the server as your script using the mysql command with the same credentials as your mysql_connect. You might be able to connecting just fine, but have bad credentials.
If the module is not loading, try to find exactly where the module resides and put the full path into the php.ini. Yum sometimes installs stuff not where php.ini is looking for it. At the end of the Yum install, it sometimes tells you the path, if not, to find it with brute force, do this:
cd /
find . -name 'mysql.so'
so in the php.ini, instead of
extension=mysql.so
put
extension=/path/to/found/mysql.so
Good luck!

Categories