标签归档:程序安装

ubuntu下安装 Apache+PHP+MySQL文本服务器


#Install SSH Client and Server (for my remote access)
sudo apt-get install ssh

#Install Database Server
sudo apt-get install mysql-server-5.0

#Install Apache HTTP Server
sudo apt-get install apache2

#Install PHP5 and Apache PHP5 module
sudo apt-get install php5 libapache2-mod-php5

#Restart Apache
sudo /etc/init.d/apache2 restart

#Optionally, install phpMyAdmin
sudo apt-get install phpmyadmin

sudo /etc/init.d/apache2 restart (重启 apache)

sudo gedit /etc/php5/apache2/php.ini (配置 php.ini)

sudo gedit /etc/apache2/apache2.conf (配置 apache2.conf)

/var/www/(主目录位置)