Articles of apache 2.2

PHP Kohana CentOS 5

试图在CentOS 5中部署一个基于Kohana的项目。安装了PHP 5.3.1,但仍然出现以下错误。 Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /usr/local/apache2/htdocs/icarus/system/core/utf8.php on line 30 Fatal error: PCRE has not been compiled with UTF-8 support. See PCRE Pattern Modifiers for more information. This application cannot be run without UTF-8 support. in /usr/local/apache2/htdocs/icarus/system/core/utf8.php on line […]

Apache dav模块生成尸体:无法访问/(不支持WebDAV?)

我安装了Apache,然后我可以从命令行访问默认页面: $ wget http://127.0.1.1 在web浏览器中使用webmin: https://localhost:10000/ Servers>Apache WebServer>Global configuration>Configure Apache Modules> 启用dav模块: Configure Apache Modules Module Current state dav Enable dav_fs Enable dav_lock Enable <Enable Selected Modules> 在命令行重新启动apache: $ sudo /etc/init.d/apache2 restart 调用命令行dav客户端: $ cadaver http://127.0.1.1 Could not access / (not WebDAV-enabled?): 405 Method Not Allowed Connection to `127.0.1.1' closed. dav:!> 什么不见​​了?

Plesk文件权限 – Apache / PHP与用户帐户冲突

我正在构build一个Drupal站点,它使用apache用户执行各种自动磁盘操作(id = 40)。 问题是这个站点是在一个属于用户ID 10001(即我的主FTP帐户)的子域上设置的,所以文件系统属于那个用户ID。 所以我不断收到这样的错误: warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 10001 is not allowed to access /var/www/vhosts/domain.com/httpdocs/sites/default/files/images/user owned by uid 48 in /var/www/vhosts/domain.com/httpdocs/includes/file.inc on line 579. 我已经尝试将httpd.conf中的apache组更改为apache:psacln,psacln是所有web用户的默认组,但这没有帮助。 现在的情况是: …. / files / images / = 777和chown = ftplogin:psacln …. / files / images / user = […]

如何避免我的Web浏览器在Windows7中使用WAMPredirect到本地主机?

我目前正在使用WAMP的Windows 7来尝试使用某些软件,但是我的浏览器不接受来自“localhost”域的cookie。 我试图通过将它们指向127.0.0.1在我的主机文件中创build几个假域,但是当我键入它们时,我自动redirect回到本地主机。 我还configuration了apache中的虚拟主机,以便与我添加到主机文件的域相对应,并且它仍然redirect回本地主机。 有什么特别的,我必须做的Windows 7绕过这个本地主机redirect? 感谢您的期待:) 我将在这里包含我的主机文件: # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should […]

Django,wsgi,py。 有什么不同?

我试图让我的cPanel系统上运行一个django应用程序。 我已经安装了mod_wsgi,并按照指南在这里: http : //www.nerdydork.com/setting-up-django-on-a-whm-cpanel-vps-liquidweb.html 然而,我现在感到困惑,因为我不知道下一步该怎么做。 该应用程序有.py文件,我可以通过这个来运行它:python manage.py runserver 211.144.131.148:8000 但是,这是通过命令行并绑定到端口8000.我想用Apache来代替。 问题是,该教程没有进一步深入到如何让Apache来识别.py文件,并运行应用程序,我想它。 接下来我该做什么?

尝试安装SSL后,Apache不会启动

以下是我的VirtualHosts在httpd.conf中的样子 <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin [email protected] ServerName mydomain.com ServerAlias www.mydomain.com # Index file and Document Root (where the public files are located) DirectoryIndex index.php DocumentRoot /home/mydomain/public_html/mydomain.com/public # Custom log file locations LogLevel warn ErrorLog /home/mydomain/public_html/mydomain.com/log/error.log CustomLog /home/mydomain/public_html/mydomain.com/log/access.log combined </VirtualHost> <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.com.crt SSLCertificateKeyFile […]

Apache apachectl / httpd挂起

Oracle HTTP Server(OHS),RHEL 5.3,戴尔硬件 Oracle在其产品套件中使用了支持Web的组件的Apache2的修改版本。 apachectl start命令只是挂起,甚至configtest挂起! 不知道它在等什么。 如何解决这个问题呢? 谢谢

用“维护”信息来降低系统的最佳方法?

什么是最好的方式来降低apache2 / tomcat6设置维护? 具体来说,apache2可以保持运行,但是tomcat需要重启才能完成一些任务。 我最初的想法是改变httpd.conf VirtualHost条目中的根目录指向一个新的位置,然后发出一个force-reload命令,以引导stream量离开实际的tomcat应用程序。 经过一段时间后,我执行tomcat维护,切换VirtualHost条目,并force-reload以开始返回stream量。 有一个更好的方法吗? 我正在开始一个相当广泛的Web应用程序的工作,我现在的部署过程涉及到closures所有东西,并把一切都备份。 有没有比我提出的更好的方式来做到这一点?

Ubuntu Apache 10秒超时

我正在debugging使用netcat构build的发送原始HTTP请求的API。 事情是,Apache在10秒后closures连接,给我很less的时间input。 我知道我可以pipe一个文件到数控,或使用任何其他的解决方法,但我希望它的工作,因为它应该。 apache2.conf中的Timeout指令缺省值为300秒,KeetAliveTimeout缺省值为15秒。 这个10秒的超时在哪里可以定义? 我正在运行Ubuntu 10.04桌面。 谢谢, 安德烈亚斯

在chroot jail中运行Apache是​​否明智?

我被一个我认识的系统pipe理员build议,在一个chroot监狱里运行Apache,以提高安全性。 我有以下问题: 这是可取的吗(即有任何我需要知道的陷阱)? 在chroot jail中运行Apache是​​否会影响性能和可伸缩性等问题? 他还build议我在独立的chroot监狱里运行我的数据库(mySQL和PostgreSQL)。 这是经常在生产系统中完成的吗? [编辑] 忘了说,服务器在Ubuntu 8.04 LTS上运行