How to Install php-devel on CentOS?
Last Updated :
25 Apr, 2022
PHP is a highly used programming language. It is widely used for website development purposes. Using HTML a simple webpage can be implemented. But using PHP will be more interactive with the users. Nowadays, PHP has many more options to install on many platforms. In PHP some packages are there. These packages help to work easily with PHP. Among them, php-devel is a package manager. It is used to build PHP extensions. CentOS is a stable, predictable platform. Basically, it is an upstream development platform. Which helps to develop, test, and contribute to a continuously delivered distribution. CentOS is a part of the Linux OS. But it can work independently. Before installing Redis, CentOS should be installed on the machine.
Features:
- PHP is completely platform-independent. It can be installed in any operating system.
- PHP is widely used as it can be used to access databases also.
- As PHP is open source, so it is widely used by developers for different purposes.
Installing php-devel on CentOS
At the latest version, the PHP-Devel package can not be installed in CentOS separately. It is required to install PHP in CentOS. Along with PHP, all packages including PHP-Devel will also get installed. So to install php-devel on CentOS follow the following step:
Step 1: At first, the CentOS terminal should be opened. There the below-mentioned command should be run. This command will help to update all dependencies needed for installing PHP & all its packages. After this command will be processed further.
dnf module reset php -y
Step 2: Then the following command should be run. This will enable the dependencies which have been updated in the previous command. Here the most appropriate version will be PHP 7.4. In this version, all PHP extensions are worked more smoothly than in other versions. Also, other versions can be used. In this way, we are building the field to download PHP successfully in CentOS.
dnf module enable php:remi-7.4 -y
Step 3: Now, the following command should be run. This will download and install PHP simultaneously. As it will download and install at a time it will take some time. Wait till the process is completed. During this process, the following output can be visible.
dnf install php -y
Step 4: So, after the above command the process is completed. After the completion, the 'Complete' & 'Installed' statements can be visible.
Hence, the installation process is successful.
Similar Reads
How to Install Docker on CentOS? Quick Preview to Install Docker on CentOS:Installation of Docker on CentOS:Open CentOS Terminal.Execute the command yum update in the Root Menu.Run the command yum install -y yum-utils device-mapper-persistent-data lvm2.Execute the command yum-config-manager --add-repo https://download.docker.com/li
4 min read
How to Install PHP on Android Device? Php is an open-source programming language that is typically used for Web development but may also be used for other purposes (backend developing). To put it succinctly, PHP is a server-side scripting language that may be installed on any device (e.g. bits of code to add forms to your site).It opera
2 min read
How to Install PHP GD-library on CentOS? GD is an open-source code library that helps to create and manipulate PNG, JPEG, and GIF images in PHP. GD is commonly used for the development of websites. Image resizing, cropping, drawing, and adding effects to dynamic rendering can easily be done with its help. Picture handling and GD capacities
2 min read
How to Install php-devel on MacOS? PHP is an open-foundation programming language that is frequently hired for server-side (backend) scripting and web development. Adopt a supplier. Equivalence On a server, PHP can be installed to run scripts. It functions in the backend instead of the browser as it is server-side rather than client-
2 min read
How to Install PHP Composer on cPanel? cPanel is a web hosting management system. cPanel provides a control panel that provides a nice user interface. It is the most reliable & site management system. Moreover, cPanel provides a dashboard where some web date files and MySQL files are present to help others out. A composer is a tool t
2 min read
How to Install PHP on AWS EC2? AWS or Amazon web services is a cloud service platform that provides on-demand computational services, databases, storage space, and many more services. EC2 or Elastic Compute Cloud is a scalable computing service launched on the AWS cloud platform. In simpler words, EC2 is nothing but a virtual com
2 min read