PHP, MySQL and Wordpress installation and configuration in RHEL linux

Harsh Hatej
4 min readJun 10, 2024

PHP is a widely-used open-source scripting language designed for web development. It’s especially suited for creating dynamic web pages and interacting with databases. PHP code is embedded within HTML, allowing developers to create dynamic content, handle forms, manage sessions, and perform various server-side tasks. It’s supported by most web servers and can run on various platforms, making it a popular choice for building websites and web applications.

PHP installation →

yum repolist all

yum install epel-release yum-utils

#install remi repository, check remi website for latest repo
yum install <https://rpms.remirepo.net/enterprise/remi-release-7.rpm>
yum repolist all
yum-config-manager --enable remi-php83

#install these php packages :
yum install php php-commom.x86_64 php-mcrypt.x86_64 php-cli.x86_64
php-opcache.x86_64 php-gd.x86_64 php-curl php-mysqlnd.x86_64 php-xml.x86_64
php-mbstring.x86_64 php-pear php-mbstring php-pecl-http php-pecl-curl
php-session

PHP commands and working →

requires apache or any other server installed, if not see my apache blog here.

php -v #shows php version

#restart httpd to automatically integrate php with apache
systemctl restart httpd

#no check if the php is…

--

--