Ubuntu7.10下LAMP的安装与配置


LAMPA(Linux+Apache+Mysql+Perl/PHP/Python)是基于Linux,Apache,MySQL和PHP的开放资源网络开发平台,被喻为PHP开发的黄金组合。

1.Ubuntu7.10下安装LAMP组件
系统->系统管理->新立得软件包管理器, 打开新立得,编辑 –> 使用任务分组标记软件包 –> 勾选 LAMP Server。

2.Ubuntu7.10下安装phpmyadmin
系统->系统管理->新立得软件包管理器,打开新立得搜索phpmyadmin,标记安装。
或sudo apt-get install phpmyadmin

3.启用 mod_rewrite 模块
sudo a2enmod rewrite

4.让apache支持.htm .html .php
sudo gedit /etc/apache2/apache2.conf
在文件后面加上
AddType application/x-httpd-php .php .htm .html
解决firefox显示乱码,还是这个文件,在后面加上
AddDefaultCharset UTF-8
这里的 UTF-8 也可根据实际情况用 gb2312代替.

5.重启apache
sudo /etc/init.d/apache2 restart

如果出现:
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

继续sudo gedit /etc/apache2/apache2.conf

  • 1
  • 2
  • 下一页

相关内容