Ch-center
Tutorials for centos 7
User avatar
By adm_3ch
#160
PHP is a server-side scripting language for web based services. It is frequently used as general-purpose programming language as well. Install PHP on CentOS Minimal Server as.
Code: Select all
# yum install php
After installing php, make sure to restart Apache service to render PHP in Web Browser.
Code: Select all
# systemctl restart httpd.service
Next, verify PHP by creating following php script in the Apache document root directory.
Code: Select all
# echo -e "<?php\nphpinfo();\n?>"  > /var/www/html/phpinfo.php
Now view the PHP file, we just created (phpinfo.php) in Linux Command Line as below.
Code: Select all
# php /var/www/html/phpinfo.php
OR
# links http://127.0.0.1/phpinfo.php
 
Ch-center
SPECIAL DEDICATED SERVER OFFER - LIMITED STOCK LEFT

Intel® Xeon 2.53GHz [...]