apt-get install php5 php5-gd apache2 php5-mysql mysql
vim /etc/apache2/apache2.conf
AddDefaultCharset gb2312
vim /etc/php5/apache2/php.ini
default_charset = "gb2312"
vim /etc/apache2/sites-available/default
DocumentRoot /var/www/mambo
<Directory /var/www/mambo>
vim /etc/apache2/ports.conf
listen 80
vim /etc/apache2/sites-enabled/000-default
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName info.eff.com #adding this line
edit hosts.txt
192.168.0.201 info.eff.com
/etc/init.d/apache2 restart
vim /etc/apache2/sites-enabled/000-default
search /error.log lies in /var/log/apache2/error.log
tail -f /var/log/apache2/error.log
[Tue Sep 08 10:43:31 2009] [error] [client 192.168.2.187] File does not exist: /var/www/mambo/apache2-default
vim /etc/apache2/sites-enabled/000-default
找到无法读取所在的文件配置 RedirectMatch ^/$ /apache2-default/
# RedirectMatch ^/$ /apache2-default/
/etc/init.d/apache2 reload #重新启动apache2
#Mambo trouble shooting
(1)SQL=Specified key was too long; max key length is 1000 bytes:
- - - - - - - - - -
# Table structure for table `mos_core_acl_aro`
`aro_id` int(11) NOT NULL auto_increment,
`section_value` varchar(240) NOT NULL default '0',
`value` varchar(240) NOT NULL default '',
`order_value` int(11) NOT NULL default '0',
`name` varchar(255) NOT NULL default '',
`hidden` int(11) NOT NULL default '0',
PRIMARY KEY (`aro_id`),
UNIQUE KEY `section_value_value_aro` (`section_value`,`value`),
UNIQUE KEY `mos_gacl_section_value_value_aro` (`section_value`,`value`),
KEY `hidden_aro` (`hidden`),
KEY `mos_gacl_hidden_aro` (`hidden`)
) TYPE=MyISAM
= = = = = = = = = =
解决方法: