我想在centos5.5中安装Apache PHP MYSQL PhpMyAdmin Drupal
我想安装最新版本的软件,我不知道Linux Professional,我知道一点基本的Linux
谢谢
发布于 2011-03-24 22:13:46
我并不想成为一个混球,但是this tutorial确实是first result on google。
主要内容:
#install Apache
yum install httpd httpd-devel
/etc/init.d/httpd start
#install MySQL
yum install mysql mysql-server mysql-devel
/etc/init.d/mysqld start
#set MySQL pass
mysql这里,"mysql>“表示您处于MySQL提示符中。
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
mysql>FLUSH PRIVILEGES;检查以确保您的密码有效:
mysql -u root -p
Enter Password: <your new password>安装PHP:
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
/etc/init.d/httpd restart创建一个名为/var/www/html/test.php的文件,其中包含以下内容:
<?php
phpinfo();
?>您可能想要安装phpMyAdmin:
yum install phpmyadmin发布于 2011-05-26 14:10:29
如果你想要php和mysql的最新稳定版本。您必须首先安装程序包并更新它们。您可以在yum命令下使用groupinstall。
MySQL
#check the packages under MySQL group
yum groupinfo "MySQL Database"
#you will see the list of mandatory, default and optional packages
#install the group package
yum groupinstall "MySQL Database"
#after install, check installed packages
rpm -qa | grep -i mysql对于PHP
#check the packages under Web Server group
yum groupinfo "Web Server"
#install the group package
yum groupinstall "Web Server"您还可以安装额外的/可选的包,比如php-mysql。等。
yum install php-mysql现在,是时候更新已安装的包了。我通过网络找到了这个存储库,它非常可靠。
更新PHP和MySQL
#update remi and rpm
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
#update PHP and MySQL
yum --enablerepo=remi update php-\*
yum --enablerepo=remi update mysql-\*
#start the service
service httpd start
service mysqld start
#check the versions
php -v
mysql -v希望这能有所帮助。
https://stackoverflow.com/questions/5420353
复制相似问题