티스토리 뷰

EN/CentOS 5

CentOS 5 WEB Server Install PHP

ServerWorld 2016.06.01 21:39

CentOS 5 WEB Server Install PHP


Install PHP

 

Install PHP to use PHP Script on httpd.



1. Install PHP.

[root@www ~]# yum -y install php php-mbstring php-pear


[root@www ~]# /etc/rc.d/init.d/httpd restart 

Stopping httpd: [ OK ]

Starting httpd: [ OK ]



2. Create a PHP test page and access to it with a web browser on Client to make sure it works normally.


[root@www ~]# vi /var/www/html/index.php

 <html>

<body>

<div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;">

<?php

   print Date("Y/m/d");

?>

</div>

</body>

</html>



※ Next manual



저작자 표시 비영리 변경 금지
신고

'EN > CentOS 5' 카테고리의 다른 글

CentOS 5 WEB Server Enable userdir  (0) 2016.06.01
CentOS 5 WEB Server Install Ruby  (0) 2016.06.01
CentOS 5 WEB Server Install PHP  (0) 2016.06.01
CentOS 5 WEB Server Install httpd  (0) 2016.06.01
CentOS 5 LDAP over TLS  (0) 2016.05.31
CentOS 5 Configure LDAP Client  (0) 2016.05.31
댓글