转载自http://blog.51osos.com/linux/fedora-17-lamp/
1- Install Mysql Server
yum install mysql mysql-server systemctl start mysqld.service systemctl enable mysqld.service mysqladmin -u root password [your_password_here] mysql -h localhost -u root -p
2- Install HTTPD and PHP yum install httpd php php-common /etc/init.d/httpd start # OR # service httpd start chkconfig --levels 235 httpd on 通过http://ip/查看是否有apache的测试页面。 yum install php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml 添加测试页面 vi /var/www/html/info.php 添加 <?php phpinfo(); ?> 通过http://ip/info.php看PHP测试页面是否正常。 3- Install PhpMyAdmin yum install phpmyadmin service httpd restart 通过http://ip/phpmyadmin访问后台。