ChinaUnix.net
相关文章推荐:

ubuntu apache 配置

今天在我的ubuntu/linux下安装了一个apache2,然后要配置虚拟目录,网上查了巨多资料,照着配,怎么也配不成,后仔细查对,发现少了一个/,就这一个符号折磨了我一天的时间。 其实apache2配置虚拟目录很简单 只要在httpd.conf中写一行代码就行了,如下 Alias /www/ "/home/emanbox/www/" 这行代码的意思:配置出一个虚拟目录www 这个目录指向/home/peng/www/ 你可以在/home/peng/www/下写一个index.html文件 以后只要访问 http://lo...

by emanbox - Linux文档专区 - 2009-04-22 17:38:25 阅读(1043) 回复(0)

相关讨论

1.安装SSH(必须) sudo apt-get install ssh 2.安装MySQL(虽然现在最新版为5.1,但是还只能装5.0版本) sudo apt-get install mysql-server-5.0 3.安装apache sudo apt-get install apache2 4.安装PHP sudo apt-get install php5 libapache2-mod-php5 sudo apt-get install libapache2-mod-auth-mysql sudo apt-get install php5-mysql sudo apt-get install php5-gd 配置php.ini: sudo gedit /etc/php5/apache2/php.ini 把文件在文...

by R0mmel - Linux新手园地 - 2011-12-21 09:58:12 阅读(897) 回复(0)

1, 安装软件 sudo apt-get install subversion sudo apt-get install libapache2-svn sudo apt-get install apache2 如果又依赖都装上。如果不能上网,那就只能去网站下载然后安装了,这个我没有试过,不过应该不难。 2, 创建版本库 sudo svnadmin create 目录地址必须存在,这个就是保存版本仓库的地方,不同的版本仓库创建不同的文件夹即可. 3, apache用户赋权 sudo chown -R www-data:www-data 4,配置apache ...

by socyno - Linux文档专区 - 2009-12-04 22:55:47 阅读(1066) 回复(0)

为了解ubuntuapache2的配置问题,找到了这个链接( http://wanguan2000.blog.ubuntu.org.cn/2008/08/15/ubuntu-apache2%E9%85%8D%E7%BD%AE/ ),为方便,决定全文转载,不知道作者是否有意见, ubuntu apache2配置 1.apache2.conf 是主配置文件,httpd.conf 用户配置文件 2.虚拟目录在 httpd.conf 中 DocumentRoot "路径" ServerName 名称 allow from all Options +Indexes 3.根设置(默认主目录)在 /etc/apache2/sites-a...

by sjhf - Linux文档专区 - 2009-03-23 11:12:21 阅读(823) 回复(0)

前面apache2+svn配置好了,现在就差ldap认证不会了 网上查了好多的资料,都是很模糊的,或许是我初学,看起来比较处理吧, # Uncomment this to enable the repository DAV svn # Set this to the path to your repository #SVNPath /var/lib/svn # Alternatively, use SVNParentPath if you have multiple repositories under # under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2...

by 305838894 - 服务器应用 - 2012-06-29 17:10:58 阅读(2446) 回复(0)

我的服务器系统是ubuntu ,之前是单线,现在改成双线了,域名也解析了,可以ping通,但就是打不开网站,在apache2的配置文件里不知道如何设置,请知道的大陕们给个方法。谢谢!

by 244159303 - Linux系统管理 - 2012-03-14 00:10:05 阅读(820) 回复(0)

前天在虚拟机的ubuntu操作系统系安装PHP和apache服务器,跟着谷歌的帖子做的都成功了,但编了一个AJAX代码程序,却不能在火狐浏览器上显示,请问是为什么? 当我点击Fetch the message 时底下的文件应该变为预设的php文件里面的内容,可却什么也没显示? 代码如下: php文件: html代码: An Ajax demo</titl... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-26426933.html" target="_blank">锋利fighting </a> - <a href="http://bbs.chinaunix.net/forum-27-1.html" target="_blank">PHP</a> - 2011-12-16 20:32:32 阅读(1274) 回复(0) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-3619978-1-1.html" target="_blank"> <font color="red">ubuntu</font>-server下<font color="red">apache</font>安装<font color="red">配置</font>以及优化 . </a></h2> </div> <p> <font color="red">ubuntu</font>-server下<font color="red">apache</font>安装<font color="red">配置</font>以及优化 . 在<font color="red">ubuntu</font>和debian中,<font color="red">apache</font>2主要功能模块(Multi-Processing Module,多道处理模块,简称MPM)被分为了不同的软件包,它们分别是: <font color="red">apache</font>2-mpm-event: 事件驱动的MPM; <font color="red">apache</font>2-mpm-perchild:这只是个过渡的“假”软件包,依赖worker; <font color="red">apache</font>2-mpm-prefork:传统MPM,兼容<font color="red">apache</font>1.3,不使用线程; <font color="red">apache</font>2-mpm-worker:支持多线程和多进程混合模型的高速MPM... </p> <p class="news_tag"> <a href="http://bbs.chinaunix.net/tag-thread-13869-1.html" target="_blank">运维</a> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-24835259.html" target="_blank">听老歌 </a> - <a href="http://bbs.chinaunix.net/forum-141-1.html" target="_blank">监控及自动化运维技术</a> - 2011-11-17 16:44:39 阅读(1822) 回复(0) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-1937389-1-1.html" target="_blank"> <font color="red">ubuntu</font> <font color="red">apache</font><font color="red">配置</font>文件httpd.conf </a></h2> </div> <p> 第一区:全局环境参数 这里设置的参数将影响整个<font color="red">apache</font>服务器的行为;例如<font color="red">apache</font>能够处理的并发请求的数量等。 ServerRoot:指出服务器保存其<font color="red">配置</font>、出错和日志文件等的根目录。 注意!如果你想要将它指定为NFS或其它网络上的位置,请一定要去阅读与LockFile有关的文档(可能在 )。这将会使你自己也能解决很多问题。 路径的结尾不要添加斜线。 ServerRoot "/usr/loacl/<font color="red">apache</font>2" 串行访问的锁文件必须保存在本地磁盘上 LockFile log... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-23225855.html" target="_blank">cywcdwxjf </a> - <a href="http://bbs.chinaunix.net/forum-250-1.html" target="_blank">Linux文档专区</a> - 2010-02-04 10:28:29 阅读(4968) 回复(0) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-1971942-1-1.html" target="_blank"> <font color="red">ubuntu</font> <font color="red">apache</font>2, PHP, CGI, etc....<font color="red">配置</font> </a></h2> </div> <p> <font color="red">apache</font> 1. apt-get install <font color="red">apache</font>2 test web page: http://x.x.x.x PHP 1. apt-get insall php5 2. apt-get install lib<font color="red">apache</font>2-mod-php5 test.php: 3. /etc/init.d/<font color="red">apache</font>2 restart CGI 1. /etc/<font color="red">apache</font>2/sites-enabled/000-default AddHandler cgi-script .cgi .pl Directory "/var/www/cgi"> AllowOverride all Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,de... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-492281.html" target="_blank">Eleswen </a> - <a href="http://bbs.chinaunix.net/forum-250-1.html" target="_blank">Linux文档专区</a> - 2009-07-01 13:51:05 阅读(1045) 回复(0) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-2055869-1-1.html" target="_blank"> <font color="red">ubuntu</font> Linux系统下<font color="red">apache</font> SSL<font color="red">配置</font>方法 </a></h2> </div> <p> 基于的<font color="red">ubuntu</font>版本Edgy,在<font color="red">ubuntu</font>下面安装<font color="red">配置</font><font color="red">apache</font>都比较简单。相应的<font color="red">配置</font>文件位置如下: 默认站点在 /var/www/ <font color="red">配置</font>文件在 /etc/<font color="red">apache</font>2/ 日志在 /var/log/<font color="red">apache</font>/ 启动脚本是 /usr/sin/<font color="red">apache</font>2ctl 或者 /etc/init.d/<font color="red">apache</font>2 1、安装<font color="red">apache</font> $sudo apt-get install <font color="red">apache</font>2 2、开启SSL模块 $sudo a2enmod ssl 3、创建证书 可以使用<font color="red">apache</font>内置的工具创建默认的证书,通过-days指定有效期。 $sudo <font color="red">apache</font>2-ssl-certifica... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-20705782.html" target="_blank">caincheung </a> - <a href="http://bbs.chinaunix.net/forum-250-1.html" target="_blank">Linux文档专区</a> - 2008-05-16 21:03:40 阅读(1172) 回复(0) </div> </div> <div class="friendly_link"> <div class="friendly_con1"> <div class="f_link_tit">盛拓传媒:</div> <p><a href="http://www.it168.com">IT168</a> | <a href="http://www.pcpop.com">泡泡网</a> | <a href="http://www.autohome.com.cn">汽车之家</a> | <a href="http://www.che168.com">二手车之家</a> | <a href="http://www.qudao168.com">渠道168</a> | <a href="http://www.itpub.net/">ITPUB</a> | <a href="http://www.ixpub.net/">IXPUB</a> | <a href="http://www.chinaunix.net/">ChinaUnix</a> | <a href=" http://www.jimi168.com/">安卓之家</a> | <a href="http://www.app111.com/">苹果园</a> | <a href="http://www.gqt168.com/">家商城</a> | <a href="http://bbs.app111.com/">苹果论坛</a></p> <div class="clear"></div> </div> </div> <div id="footer"> <div class="dot1"><a href="http://www.bj.cyberpolice.cn/index.jsp" class="n1"></a><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202008062400006"></a><a href="http://ulic.baidu.com/client/clientDetailCerInfo.do?id=1602"></a></div> <p class="p"> <a href="http://www.it168.com/bottomfile/about.shtml" rel="nofollow">盛拓传媒简介</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" rel="nofollow">关于IT168</a> | <a href="http://www.it168.com/bottomfile/hzhb.shtml" rel="nofollow">合作伙伴</a> | <a href="http://www.it168.com/bottomfile/ggfw.shtml" rel="nofollow">广告服务</a> | <a href="http://www.it168.com/bottomfile/sytk.shtml" rel="nofollow">使用条款</a> | <a href="http://www.it168.com/bottomfile/tgzn.shtml" rel="nofollow">投稿指南</a> | <a href="http://www.wintalent.cn:8031/wt5/sequelmedia/web/index" rel="nofollow">诚聘精英</a> | <a href="http://www.it168.com/bottomfile/lxwm.shtml" rel="nofollow">联系我们</a> | <a href="http://www.itpub.net/forum.php">ITPUB论坛</a> | <a href="http://www.it168.com/bottomfile/sitemap/sitemap.html" rel="nofollow">网站导航</a> | <a href="http://archive.it168.com/" rel="nofollow">往日回顾</a> </p> <address> 北京皓辰网域网络信息技术有限公司. 版权所有 <a href="http://www.it168.com/images/icp.jpg"><font color="#666666">京ICP证:060528号</font></a> 北京市公安局海淀分局网监中心备案编号:1101082001<br> <font color="#666666">广播电视节目制作经营许可证:编号(京)字第1149号</font> </address> <div style=" color:#666;margin-top:10px; text-align:right;">ITPUB推荐文章解答你所有技术难题</div> <div class="clear"> </div> </div> </div> <!-- 统计 START --> <script language="javascript" src="http://stat.it168.com/pv.js"></script> <script> function sendPV(){ var pvTrack = new PvTrack(); pvTrack.type = 35; // 频道类别ID pvTrack.channel = 461; // 频道ID pvTrack.pageType = 0; pvTrack.track(); } window.setTimeout("sendPV()", 1000); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20237423-2']); _gaq.push(['_setDomainName', '.chinaunix.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div style='display:none'> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E")); </script></div> <!-- END STAT PV --> <!-- <script type='text/javascript' src='http://168.it168.com/js/597.js'></script> --> <script>if(typeof(BLA)!='undefined'){BLA();}</script> </body> </html>