sudo suMySQL
aptitude install mysql-server mysql-clientApache
aptitude install apache2PHP
aptitude install php5 libapache2-mod-php5Test PHP
/etc/init.d/apache2 restart
vi /var/www/info.php
<?php
phpinfo();
?>
http://localhost/info.phpPHP library
aptitude search php5
aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json
/etc/init.d/apache2 restartPHPMyAdmin
aptitude install phpmyadminNote
- Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d
No comments:
Post a Comment