網頁

2010年12月10日 星期五

Install PHP on CentOS 5.5

I want to execute a PHP page on my Web site today. I am new beginner for Linux system,so I don't clearly how to compile the PHP by myself.




Based on this reason, I begin to search the related information by Google and lucky for me to find the good news.
http://www.webtatic.com/blog/2009/06/php-530-on-centos-5/

Thank Andy pre-compiled the php for us and share it on personal repository.
So do that I will easy to install the PHP 5.3.3 version on my CenstOS.

To install it, I need to follow Andy request:
first we must tell rpm to accept rpm’s signed by Andy, then add the yum repository information to yum


Reconfirm rpm again,the system did install PHP now.

Although PHP has already been installed on system,it also cannot execute PHP page then.

After search some articles by Google again, I find out the Adding PHP Types is one solution.  So I try to add Extra MIME types by Webmin as following
Type="application/x-httpd-php"           Extensions=".php .htm .html"
Type="application/x-httpd-php-source"    Extensions=".phps"


After restarting Apache WebServer,the testing php page has already been shown up on the firefox.

Good lucky!
I hope I can compile PHP by myself in the future!
I think need to spend more time to study hard the related knowledge.

沒有留言:

張貼留言

Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.