标签归档:程序安装

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#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/(主目录位置)