« skype充值指导及代充值服务 | Main | Dreamhost优惠代码9999 »

LAMP配置及Movable Type安装过程记录

Apache2的安装

安装:sudo apt-get install apahce2

重新起动Apahce2时出错:apache2: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
原因:这个说明Apache服务器不能确定你的主机名。修改Apache的配置文件,查找ServerName关键字,确定它不是处于注释状态并且形式如:ServerName localhost。
方法:sudo geidt /etc/apache2/apache2.conf
add: ServerName localhost

Apache2只能本机访问的问题
症状:局域网内其他机器无法通过IP地址访问。
状态:暂时未解决。

MySql的安装

安装:sudo apt-get install mysql
设置密码:mysql -uroot password "123456"

phpmyadmin安装与使用

安装:sudo apt-get install phpmyadmin
登入:http://localhost/phpmyadmin

Movable Type 3.33 安装与使用

问题:运行mt-check.cgi出现源码(cgi程序不被解析)
方法:#AddHandler cgi-script .cgi 去掉之前的#

问题:Forbidden - You don't have permission to access /MT/mt-check.cgi on this server.
原因:cgi存放目录为/usr/lib/cgi-bin/

问题:在/var/www目录中建立/cgi-bin目录,为什么跑到文件系统里了?
原因:Linux有自己的安全机制,下决心学习它的时候你一定要忘记windows下的一些不良习惯并严格按Linux的规定做。

问题:运行mt-check.cgi返回如下错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
原因:其实产生问题的原因并不在于我服务器的配置,而是我在使用MV命令移动文件时把好多文件夹都落下了。所以,最终解决这个问题的方法就是重新将所有文件和文件夹放到正确的位置。由此判断产生以上问题的原因是程序出错。

终于看到:

You're ready to go! Your server has all of the required modules installed; you do not need to perform any additional module installations. Continue with the installation instructions.
相比在windows系统下所用的时间,这次配置LAMP安装Movable Type所用的时间少了很多。

接下来下弄osCommerce,之后深入研究一下Movable Type以及重构osCommerce。

Comments (1)

有没有在Linux下用过XAMPP?(http://www.apachefriends.org/en/xampp-windows.html)

Windows版的感觉不错,不过由于硬件和Ubuntu不兼容,在虚拟机下运行Ubuntu内存已经吃惊,就没试过这个基于Apache的套装了。

欢迎评论:

说老实话,做开心人,欢迎您留露箴言
即便如此,也请遵纪守法,勿放厥辞
您的观点仅代表个人,与本站无关,望请自尊
您的评论不会被立即显示,也很可能不会显示





About

This page contains a single entry from the blog posted on September 30, 2006 8:47 PM.

The previous post in this blog was skype充值指导及代充值服务.

The next post in this blog is Dreamhost优惠代码9999.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 5.01