UBUNTU下安装 APACHE+PHP+MYSQL WEB服务器配置
(编辑:jimmy 日期: 2024/12/26 浏览:2)
Once again, here’s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.
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
Enjoy!
怎么样?简单吧!除去下载的时间,要不了一分钟就可以完成配置,在 Ubuntu 上还需要 APM 包吗?还是记住以下几个命令和位置就行了。
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/(主目录位置)