在Ubuntu上搭建LLMP(Linux+Lighttpd+MySQL+PHP)服务器架构
2008-10-16 20:19
在Ubuntu上搭建LLMP(Linux+Lighttpd+MySQL+PHP)服务器架构
http://alone.yo2.cn/archives/625918
安步骤安装即可.到下面注意:
更新源文件
# apt-get update
2.安装lighttpd
# apt-get install lighttpd
3.安装PHP
# apt-get install php5
# apt-get install php5-cli
# apt-get install php5-cgi
# apt-get install php5-mysql
让Lighttpd支持CGI模式
# lighttpd-enable-mod fastcgi
注意这里应该是 lighty-enable-mod fastcgi
mywang@ubuntuser:/usr/sbin$ lighty-enable-mod fastcgi
Available modules: auth cgi fastcgi proxy rrdtool simple-vhost ssi ssl userdir
Already enabled modules:
Enabling fastcgi: failure: Permission denied
Run /etc/init.d/lighttpd force-reload to enable changes
mywang@ubuntuser:/usr/sbin$ sudo lighty-enable-mod fastcgi
Available modules: auth cgi fastcgi proxy rrdtool simple-vhost ssi ssl userdir
Already enabled modules:
Enabling fastcgi: ok
Run /etc/init.d/lighttpd force-reload to enable changes
mywang@ubuntuser:/usr/sbin$ pwd
/usr/sbin
mywang@ubuntuser:/usr/sbin$
重起Lighttpd
$sudo /etc/init.d/lighttpd restart
把phpmyadmin移动到/var/www我们就能用phpmyadmin管理mysql了
# mv /usr/share/phpadmin /var/www
注意这里应该是
php5/ phpmyadmin/
mywang@ubuntuser:/usr/share$ mv phpmyadmin/ /var/www/
mv: cannot move `phpmyadmin/' to `/var/www/phpmyadmin': Permission denied
mywang@ubuntuser:/usr/share$ sudo mv phpmyadmin/ /var/www/
mywang@ubuntuser:/usr/share$ pwd
/usr/share
mywang@ubuntuser:/usr/share$
打开 http://localhost/phpmyadmin 看看是不是能管理mysql了
|