PHP is a server-side scripting language used for basic web services. It is also often used as a general programming language. Install PHP: # yuminstallphp in CentOS with minimal installation. after installing php, restart the Apache service to render PHP in the Web browser. # Systemctlrestarthttpd. service
PHP is a server-side scripting language used for basic web services. It is also often used as a general programming language. Install PHP in CentOS with minimal installation:
# Yum install php
After installing php, restart the Apache service to render PHP in the Web browser.
# Systemctl restart httpd. service
Next, create the following php script under the Apache document root directory to verify PHP.
# Echo-e" ">/Var/www/html/phpinfo. php
Now, in the Linux command line, view the PHP file (phpinfo. php) we just created ).
# Php/var/www/html/phpinfo. php
Or
# Links http: // 127.0.0.1/phpinfo. php
Verify PHP