- How to Install PHP 5.4, PHP 5.5 or PHP 5.6 on CentOS 6
- Install EPEL and Remi Repository
- Install Yum-Utils to Manage Repository
- Install PHP 5.4, PHP 5.5 or PHP 5.6 on CentOS 6
- How to Install PHP 7 in CentOS 6
- Installing PHP 7 on CentOS 7
- Thread: php5-mysql package not found.
- php5-mysql package not found.
- Re: php5-mysql package not found.
- Re: php5-mysql package not found.
- Re: php5-mysql package not found.
- Bookmarks
- Posting Permissions
How to Install PHP 5.4, PHP 5.5 or PHP 5.6 on CentOS 6
The current version of PHP in the CentOS 6 official repositories is PHP 5.3, which has reached its end of life and is no longer maintained (in terms of bug fixes and critical security updates) by the developers. You may be exposed to unpatched security vulnerabilities if you are still using it.
Therefore it is recommended for you to upgrade or install a latest supported stable version of PHP 5.4 or PHP 5.6 on a CentOS 6 Linux distribution as soon as possible.
Install EPEL and Remi Repository
1. To install latest stable version of PHP, you need to add EPEL and Remi repository to your CentOS 6 distribution using the following commands as root user.
# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm # rpm -Uvh epel-release-6-8.noarch.rpm remi-release-6.rpm
Install Yum-Utils to Manage Repository
2. Install yum-utils, a collection of utilities that integrate with yum to extend its native features in several ways, thus making it more powerful and easier to use.
The package yum-utils used to enable or disable packages on the fly without any manual configuration.
Install PHP 5.4, PHP 5.5 or PHP 5.6 on CentOS 6
3. Once EPEL, Remi and yum-utils has been installed, you can now move ahead to install PHP 5.4, PHP 5.5 or PHP 5.6 with all required modules on CentOS 6 distribution by enabling remi repository using yum-config-manager command as shown.
# yum-config-manager --enable remi-php54 [Intall PHP 5.4] # yum-config-manager --enable remi-php55 [Intall PHP 5.5] # yum-config-manager --enable remi-php56 [Intall PHP 5.6]
4. Once you’ve enabled selected version of PHP, you can install PHP (in my case I have chosen PHP 5.6) with all needed modules as shown.
# yum-config-manager --enable remi-php56 [Intall PHP 5.6] # yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
If you want to downgrade PHP version for any reason, you will need to remove existing PHP version and then reinstall the new PHP with modules you want.
Finally, do not forget to check out these useful PHP articles:
That’s all! To share any thought with us, make us of the feedback form below. Lastly, remember to always stay connected to Tecmint.com.
How to Install PHP 7 in CentOS 6
The CentOS 6 official software repositories has PHP 5.3 which has reached end of life and no longer actively maintained by the developers.
To keep up with the latest features and security updates, you need a newer (probably the latest) version of PHP on your CentOS 6 system.
If you’re looking to install different versions of PHP in CentOS 6, go through the following article.
For the purpose of this guide, we will be operating the system as root, if that is not the case for you, make use of the sudo command to acquire root privileges.
Installing PHP 7 on CentOS 7
1. To install latest PHP 7, you need to add EPEL and Remi repository to your CentOS 6 system like so.
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm # yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm
2. Now install yum-utils, a group of useful tools that enhance yum’s default package management features.
Yum-utils can be used for manipulating package repositories and additional package management operations such as enabling or disabling packages without any manual configuration by a system administrator.
You can install it as follows:
3. In this step, you need to enable Remi repository using yum-config-manager utility, as the default repository for installing PHP.
# yum-config-manager --enable remi-php70 [Install PHP 7.0]
If you want to install PHP 7.1 or PHP 7.2 on CentOS 6, just enable it as shown.
# yum-config-manager --enable remi-php71 [Install PHP 7.1] # yum-config-manager --enable remi-php72 [Install PHP 7.2]
4. Then finally install PHP 7 on CentOS 6 with all necessary PHP modules using the following command.
# yum install php php-mcrypt php-cli php-gd php-curl php-mysql php-ldap php-zip php-fileinfo
If you are curious, double check the installed version of PHP on your system as follows.
You might also want to check out these useful PHP articles:
In this article, we have explained how to install PHP 7 on CentOS 6 Linux. You can send us any questions or additional thoughts via the feedback form below.
Thread: php5-mysql package not found.
First Cup of Ubuntu
php5-mysql package not found.
Hi, I’m trying to install a LAMP server. I looked at search to find the answer however the fix is not there.
Ran the following command:
sudo apt-get install php5-mysql
Reading package lists. Done Building dependency tree Reading state information. Done Package php5-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5-mysql' has no installation candidate
Ultimate Coffee Grinder
Re: php5-mysql package not found.
Thread moved to the «Server Platforms» forum.
Looks like it might just be php-mysql now.
First Cup of Ubuntu
Re: php5-mysql package not found.
Yeh bro its 16.04. and removing the «5» worked. Can you tell me how you knew that? For further references if something changed how can I figure it out myself?
Thanks.
Ultimate Coffee Grinder
Re: php5-mysql package not found.
Originally Posted by Abdullah_Khalid
. Can you tell me how you knew that? For further references if something changed how can I figure it out myself?
Personal experience setting up an owncloud server, general experience of how these things can change and following the links from packages.ubuntu.com
- Site Areas
- Settings
- Private Messages
- Subscriptions
- Who’s Online
- Search Forums
- Forums Home
- Forums
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- New to Ubuntu
- General Help
- Installation & Upgrades
- Hardware
- Desktop Environments
- Networking & Wireless
- Multimedia Software
- Ubuntu Specialised Support
- Ubuntu Development Version
- Security
- Virtualisation
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- Ubuntu Cloud and Juju
- Gaming & Leisure
- Emulators
- Wine
- Development & Programming
- Packaging and Compiling Programs
- Development CD/DVD Image Testing
- Ubuntu Application Development
- Ubuntu Dev Link Forum
- Programming Talk
- Repositories & Backports
- Ubuntu Backports
- Bug Reports / Support
- Ubuntu Backports
- System76 Support
- Apple Hardware Users
- Ubuntu Community Discussions
- Ubuntu, Linux and OS Chat
- Recurring Discussions
- Full Circle Magazine
- The Cafe
- Cafe Games
- Market
- Mobile Technology Discussions (CLOSED)
- Announcements & News
- Weekly Newsletter
- Membership Applications
- The Fridge Discussions
- Forum Council Agenda
- Forum Feedback & Help
- Request a LoCo forum
- Resolution Centre
- Ubuntu, Linux and OS Chat
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Ubuntu/Debian BASED
- Debian
- MINT
- Arch and derivatives
- Fedora/RedHat and derivatives
- Mandriva/Mageia
- Slackware and derivatives
- openSUSE and SUSE Linux Enterprise
- Mac OSX
- PCLinuxOS
- Gentoo and derivatives
- Windows
- BSD
- Any Other OS
- Other Operating Systems
- Assistive Technology & Accessibility
- Art & Design
- Education & Science
- Documentation and Community Wiki Discussions
- Tutorials
- Outdated Tutorials & Tips
- Ubuntu Women
- Ubuntu LoCo Team Forums
- Americas LoCo Teams
- Argentina Team
- Software
- Hardware
- Comunidad
- Arizona Team — US
- Arkansas Team — US
- Brazil Team
- California Team — US
- Canada Team
- Centroamerica Team
- Chile Team
- Comunidad
- Hardware
- Software
- Instalaci�n y Actualizaci�n
- Colombia Team — Colombia
- Georgia Team — US
- Illinois Team
- Indiana — US
- Kentucky Team — US
- Maine Team — US
- Minnesota Team — US
- Mississippi Team — US
- Nebraska Team — US
- New Mexico Team — US
- New York — US
- North Carolina Team — US
- Ohio Team — US
- Oklahoma Team — US
- Oregon Team — US
- Pennsylvania Team — US
- Peru Team
- Texas Team — US
- Uruguay Team
- Utah Team — US
- Virginia Team — US
- West Virginia Team — US
- Argentina Team
- Asia and Oceania LoCo Teams
- Australia Team
- Bangladesh Team
- Hong Kong Team
- Myanmar Team
- Philippine Team
- Singapore Team
- Europe, Middle East, and African (EMEA) LoCo Teams
- Albania Team
- Catalan Team
- Portugal Team
- Egypt Team
- Georgia Team
- Ireland Team — Ireland
- Kenyan Team — Kenya
- Kurdish Team — Kurdistan
- Lebanon Team
- Morocco Team
- Saudi Arabia Team
- Sudan Team
- Tunisia Team
- Other Forums & Teams
- LoCo Archive
- Afghanistan Team
- Alabama Team — US
- Alaska Team — US
- Algerian Team
- Andhra Pradesh Team — India
- Austria Team
- Bangalore Team
- Bolivia Team
- Cameroon Team
- Colorado Team — US
- Connecticut Team
- Costa Rica Team
- Delhi Team
- Ecuador Team
- El Salvador Team
- Florida Team — US
- Galician LoCo Team
- Greek team
- Hawaii Team — US
- Honduras Team
- Idaho Team — US
- Iowa Team — US
- Jordan Team
- Kansas Team — US
- Libya Team
- Louisiana Team — US
- Maryland Team — US
- Massachusetts Team
- Michigan Team — US
- Missouri Team — US
- Montana Team — US
- Namibia Team
- Nevada Team — US
- New Hampshire Team — US
- New Jersey Team — US
- Northeastern Team — US
- Panama Team
- Paraguay Team
- Qatar Team
- Quebec Team
- Rhode Island Team — US
- Senegal Team
- South Carolina Team — US
- South Dakota Team — US
- Switzerland Team
- Tamil Team — India
- Tennessee Team — US
- Trinidad & Tobago Team
- Uganda Team
- United Kingdom Team
- US LoCo Teams
- Venezuela Team
- Wales Team
- Washington DC Team — US
- Washington State Team — US
- Wisconsin Team
- Yemen Team
- Za Team — South Africa
- Zimbabwe Team
- Americas LoCo Teams
- Other OS Support and Projects
- Ubuntu Official Flavours Support
Bookmarks
Bookmarks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts