1. 下载httpd-2.4.16.tar.bz2 ,地址:http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.16.tar.bz2 报错安装apr;报错pcre;
2. 下载apr-1.5.2.tar.gz和apr-util-1.5.4.tar.gz 下载地址:http://mirrors.cnnic.cn/apache//apr/apr-1.5.2.tar.gz http://mirrors.hust.edu.cn/apache//apr/apr-util-1.5.4.tar.gz ;
cd apr-1.5.2/
sudo ./configure --prefix=/usr/local/src/httpd-2.4.2/apr
sudo make;sudo make install
cd apr-util-1.5.4/
sudo ./configure --prefix=/usr/local/src/httpd-2.4.2/apr-util
sudo make;sudo make install
3. 下载pcre-8.37.tar.bz2 下载地址:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.bz2 ;
sudo ./configure --prefix=/usr/local/development/pcre-8.37
sudo make
sudo make install
cp /usr/local/development/pcre-8.37/bin/pcre-config /usr/bin/
sudo ./configure --prefix=/usr/local/src/httpd-2.4.2/srclib --with-apr=/usr/local/src/httpd-2.4.2/apr --with-apr-util=/usr/local/src/httpd-2.4.2/apr-util --with-pcr=/usr/local/development/pcre-8.37/
sudo make
sudo make install
cd /etc/init.d
sudo ln -s /usr/local/src/httpd-2.4.2/srclib/bin/apachectl
sudo apachectl restart
sudo apt-get install php5
sudo vi /etc/apache2/httpd.conf 添加ServerName localhost
sudo /etc/init.d/apache2 restart 启动失败?原因80端口占用,sudo killall -9 httpd
sudo vi /var/www/testphp.php 添加:
phpinfo();
?>
sudo /etc/init.d/apache2 restart 启动ok
此时浏览器输入http://
4. 下载64位 ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz 下载地址:http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz ;
5. sudo apt-get install mysql-server mysql-client
sudo apt-get install php5-mysql mysql密码
sudo /etc/init.d/mysql restart
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/mysql restart
sudo apt-get install phpmyadmin
sudo ln -s /usr/share/phpmyadmin/ /var/www/
6. unzip Moodle2.2.2\ \(Build_\ 20120312\).zip 下载地址http://data.u.aieln.com/userfiles_old/file/2012/0503/Moodle2.2.2%20(Build_%2020120312).zip
cd /var/www/moodle;
sudo chmod -R 777 moodle
7. sudo mkdir /var/moodledata; sudo chown -R www-data:www-data /var/moodledata
浏览器输入http://192.168.70.193/moodle/ 一步步安装就行