随笔分类 -  linux架站笔记(ubuntu server 11.04)

ubuntu server 10.04 apache2配置多个虚拟主机
摘要:1.在/etc/apache2/site-available/中增加配置文件文件,可以将default拷贝后修改,如blogs:<VirtualHost *自定义端口># 在ServerName后加上你的网站名称ServerNamewww.linyupark.com# 如果你想多个网站名称都取得相同的网站,可以加在ServerAlias后加上其他网站别名。# 别名间以空格隔开。ServerAlias ftp.linyupark.com mail.linyupark.com# 在ServerAdmin后加上网站管理员的电邮地址,方便别人有问题是可以联络网站管理员。ServerAdmi 阅读全文
posted @ 2012-02-27 20:03 渊蓝之蓝 阅读(1705) 评论(0) 推荐(0) 编辑
如何在ubuntu中设置visudo的默认编辑器
摘要:在sudoers里加上# Set default EDITOR to vim, but allow visudo to use EDITOR/VISUAL.Defaults editor=/usr/bin/vim, env_editor 阅读全文
posted @ 2012-02-25 23:57 渊蓝之蓝 阅读(2446) 评论(1) 推荐(1) 编辑
ubuntu中apache2修改默认首页
摘要:修改默认主页:输入这个命令 grep -iR DirectoryIndex /etc/apache2查看 DirectoryIndex 在apache2哪个文件里面。我的就是 这样的/etc/apache2/mods-enabled/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm/etc/apache2/mods-available/dir.conf: DirectoryIndex index.html index.cgi index.pl index.php inde 阅读全文
posted @ 2012-02-25 20:02 渊蓝之蓝 阅读(4873) 评论(0) 推荐(0) 编辑
ubuntu apache2配置详解(含虚拟主机配置方法)
摘要:在Windows下,Apache的配置文件通常只有一个,就是httpd.conf。但我在Ubuntu Linux上用apt-get install apache2命令安装了Apache2后,竟然发现它的httpd.conf(位于/etc/apache2目录)是空的!进而发现Ubuntu的 Apache软件包的配置文件并不像Windows的那样简单,它把各个设置项分在了不同的配置文件中,看起来复杂,但仔细想想设计得确实很合理。严格地说,Ubuntu的Apache(或者应该说Linux下的Apache?我不清楚其他发行版的apache软件包)的配置文件是 /etc/apache2/apache2. 阅读全文
posted @ 2012-02-25 19:46 渊蓝之蓝 阅读(63796) 评论(0) 推荐(0) 编辑
apache2 [warn] NameVirtualHost *:80 has no VirtualHosts的解决方法
摘要:错误:[warn] NameVirtualHost *:80 has no VirtualHosts原因:定义了多个NameVirtualHost解决:Ubuntu之前的版本定义在/etc/apache2/sites-available/default, 8.04后在/etc/apache2/ports.conf故可以将/etc/apache2/ports.conf中的NameVirtualHost *:80注释掉这个问题的本质是在没有定义域名是一个端口只能对应一个虚拟主机,将NameVirtualHost *:80改为其他端口也可以解决如果有多个不同的域名的话,用同样的端口也可以 阅读全文
posted @ 2012-02-25 19:01 渊蓝之蓝 阅读(16365) 评论(0) 推荐(0) 编辑
启用APACHE2(Ubuntu下)的USERDIR的功能
摘要:希望用户能够以http://X.X.X.X/~username方式来访问自己的网页,我参考了以下两个链接,做一个总结:1.http://www.zyxware.com/articles/2008/06/11/installing-and-configuring-apache-php-mysql-and-drupal-on-ubuntu#comment-5479这篇文章介绍修改apache2.conf和httpd.conf,1)apache2.conf中加入:<IfModule mod_userdir.c>UserDir public_htmlUserDir disabled roo 阅读全文
posted @ 2012-02-25 15:53 渊蓝之蓝 阅读(2594) 评论(1) 推荐(0) 编辑
Linux(Ubuntu 10.04)上安装配置apache+php+mysql+phpmyadmin
摘要:1. 安装mysqlsudo apt-get install mysql-server中间需要输入mysql的管理员密码2. 安装apache 2.0sudo apt-get install apache23. 安装配置php5sudo apt-get install php5sudo apt-get install libapache2-mod-php5sudo apt-get install php5-gdsudo apt-get install php5-mysql4. 安装phpmyadminsudo apt-get install phpmyadmin中间需要输入mysql的管理员密 阅读全文
posted @ 2012-02-23 01:59 渊蓝之蓝 阅读(351) 评论(0) 推荐(0) 编辑
ubuntu server 10.04 LTS(64位)装不了花生壳的解决方法
摘要:到http://www.oray.com/peanuthull/download.php下载花生壳动态域名Linux 1.0以phlinux10all.tar.gz压缩包的形式提供tav xzvf phlinux10all.tar.gzcd phlinux10allcd phlinux_package/tar xzvf phlinux-1.1-install.ubuntu.8.04.tar.gzcd phlinux_install/sudo chmod +x install.shsudo ./install.sh这一步之后出现错误:Making directory /usr/local/phl 阅读全文
posted @ 2012-02-22 23:46 渊蓝之蓝 阅读(855) 评论(0) 推荐(0) 编辑