網頁

2010年12月11日 星期六

set yum priority on CentOS 5.5

I want to install yum-priorities plus-in so that the yum install or update priority is stable from official to third-party.

After executing the following command, we can see some .repo file locate on the folder "/etc/yum.repos.d/" like CentOS-Base.repo, and so on.
Next step,we will add priority=N (N=1-99 and priority order is from 1 to 99) on the content of these .repo files.

In some article,someone suggest the priority value is as follows rule.

  • [base], [addons], [updates], [extras] … priority=1
  • [CentOSplus],[contrib] … priority=2
  • the third-party repository … priority=N (maybe set N>10)

So I follow this rule to set my CentOS priority value.


After done it, how to verify whether yum install or update follow priority rule?
You can first execute "yum check-update" command to realize whether "priorities" this word show the postfix of "loaded plugins". If you can see it, I think it will be good beginning.

Unfortunately,I cannot install or update PHP the special repository as webtatic then. How to force to install or update PHP by webtatic repository?
"We can temporarily disable ALL and enable webtatic repository by command."

So do that we did can successfully update PHP from 5.1 to 5.3.3 by yum.

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.

2010年12月5日 星期日

Install vmware tool on Ubuntu in my first experience

Today I want to install Ubuntu Desktop edition on Vmware environment. Why I have this idea?
First, I want to realize whether Ubuntu with WINE can support a lot of Microsoft platform software than other Linux version as RedHat,CentOS and so on.
Second point, Maybe my job will use more and more Linux software in the future.
Base on above reason, I think it need to be prepared the related Linux technical or skill for me.

I never have the enough experience on Linux platform before. After install Ubuntu Desktop,I find out I have no root password. It surprised to me that the installation process never ask me to key in any root password. This problem is found out due to need to install vmware tool.

When I extract vmware tool to the specific path next to execute vmware-install.pl in terminal window, the error message show up as following.

In install procedure, I remember I just name a account "DW" and password once. Besides this,the system never ask me key password for root. So I key in DW's password and get the wrong result.

Let me exchange root account, I think. When I do it, the system ask me the root's password for authentication. Of course, I still get the wrong message.

After google this error, I find out the Ubuntu randomly assign password for root after installing Ubuntu system. This is why the high priority is change root password. Because I need to use it to install vmware tool.

How to do it? It just two steps:
(1)switch root by sudo command and key in personal password.
(2)change root password by passwd command
After finish these steps,the root password did is changed now.

When I switch root and key the new password, the environment has already been changed to root one.

Next to execute .pl, the system did can run this program now.

It is very interested in installing Ubuntu for me. That is have specific thought in the every Linux platform.
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.