You are on page 1of 8

Ubuntu

No t e b o o k: Cre at e d : URL:

PHP

MySQL/Apache/phpMyAdmin/WordPress)
2012/2/27 10:11

2012/2/27 10:11 Up d at e d : http://www .linuxsight.com/blog/3377

Ubuntu

PHP

MySQL/Apache/phpMyAdmin/WordPress)

LMAP ubuntu11.10

Linux MySQL Apache PHP5 phpMyAdmin

ubuntu/fedora/opensuse

MySQL sudo apt-get install mysql-server Apache sudo apt-get install apache2 PHP5 sudo apt-get install php5 // sudo sudo sudo sudo apt-get install apt-get install apt-get install apt-get install PHP5

libapache2-mod-php5// APACHE+PHP libapache2-mod-auth-mysql// apache mysql php5-mysql //mysql php5-gd //GD

phpMyAdmin sudo apt-get install phpMyAdmin apt-get phpMyAdmin, ,mysql root

Mysql

apache http://localhost/

PHP sudo gedit /var/www/index.php <? phpinfo() ?> http://localhost/index.php

phpMyAdmin http://localhost/phpmyadmin

wordpress linuxsight@linuxsight-ODM:/var/www$ sudo chmod -R 777 wordpress http://localhost/wordpress/ wordpress wordpress

Apache sudo /etc/init.d/apache2 restart // /etc/apache2 /var/www apache2 apache2 DocumentRoot /etc/apache2/sites-enabled/00default /var/www OK /home/linuxsight/phptest APACHE

sudo chmod -R 777 /var/www

var/www sudo ln -s /home/linuxsight/phptest /var/www/phptest http://localhost/phptest . apache2