我有问题试图让PHP的mailfunction与我的Ubuntu 9.04 VPS与sendmail和Apache(和其他不太相关的东西,当然)。 从PHP我没有收到任何错误,从mailfunction保存返回值为false 。 /var/log/mail.err的最后一个错误是 sendmail[14837]: NOQUEUE: SYSERR(www-data): can not chdir(/var/spool/mqueue-client/): Permission denied 现在,我明白这是说www-data (用户Apache正在运行)不具有对某些所需目录( /var/spool/mqueue-client )的读取权限。 所以,知道(仅用于testing目的),我运行了chmod 777 /var/spool/mqueue-client并重新执行脚本,这次成功了(hurray),不过/var/log/mail.err现在说 sendmail[14874]: dangerous permissions=42777 on queue directory /var/spool/mqueue-client/ 所以我想知道如何configuration的东西,所以我的脚本可以运行使用非危险的权限。
我正在尝试在Ubuntu 10.04.3 LTS(lucid)上使用支持守护进程的mod_wsgi来运行Apache2。 问题是,我无法findWSGISocketPrefix指令的工作configuration。 我的设置是: <VirtualHost *:80> … WSGIDaemonProcess myapp threads=5 WSGIScriptAlias / /var/www/myapp/myapp.wsgi <Directory /var/www/myapp> WSGIProcessGroup myapp WSGIApplicationGroup %{GLOBAL} WSGIScriptReloading On Order deny,allow Allow from all </Directory> </VirtualHost> Apache以root身份运行。 我使用的Flask Python框架,所以我遵循这个教程: http : //flask.pocoo.org/docs/deploying/mod_wsgi/#configuring-apache 。 没有任何其他设置,我得到503服务暂时不可用的 HTTP错误。 在Apache错误日志中,我收到了以下消息: [Mon Oct 17 15:24:24 2011] [error] [client 90.181.85.69] (13)Permission denied: mod_wsgi (pid=21805): Unable to connect to […]
我有一个Apache WebServer + Tomcat 7提供Struts2的网页。 当我使用任何Web浏览器时,它的工作没有问题,但是当我尝试使用W3Cvalidation器或Facebook Lint访问网页时,服务器返回错误500。 [28/Oct/2011:21:45:58 +0100] "GET /agenda7/event?id=124 HTTP/1.1" 200 9898 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22" [28/Oct/2011:21:47:16 +0100] "GET /agenda7/event?id=124 HTTP/1.0" 500 6287 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" [28/Oct/2011:21:47:42 +0100] "GET /agenda7/event?id=124 HTTP/1.1" 500 6287 "-" "W3C_Validator/1.2" 不知何故,它就像那些服务无法理解如何使网页的获取请求没有扩展名,但是,如果是这样的话,错误应该不是404? 有什么build议么? 编辑: 刚刚用另一种映射testing了这个问题,问题依然存在: [28/Oct/2011:22:54:53 +0100] "GET /agenda7/event_124 […]
我是电脑程序编制员。 我的pipe理Web服务器的经验是不存在的。 我正在编写一个多站点CMS,用户可以快速设置新站点。 而我的代码将为每个新网站创build一个新的虚拟主机logging。 所有的网站将运行在同一个networking应用程序。 当一个新的网站被创build时,它只会设置一个新的虚拟主机logging和一个虚拟主机logging将指向的文件夹。 该文件夹将包含一个包含网站设置的文件。 该文件加载网站的设置后简单地加载networking应用程序。 现在,我的问题是:是否大量的虚拟主机logging减慢服务器(让我们假设服务器上的访问者数量不变)? 同样,假设访问者数量不变:服务器是否会因性能问题而受到影响,仅仅是因为我拥有太多的虚拟主机logging?
我有问题试图在Ubuntu / Apache上部署我的第一个Django应用程序。 我已经按照djangoproject.com上的指南,并search互联网寻找答案,我卡住了。 我有基本的启动和运行,但是当我尝试访问我的网站(twilightinternal.com),我得到以下错误: ImportError: Could not import settings 'twilight_boutique.settings' (Is it on sys.path? Does it have syntax errors?): No module named twilight_boutique.settings 我的django代码位于/ root / django_projects / twilight_boutique文件夹中 我在我的网站有以下信息 – 可用/ twilightinternal: <VirtualHost *> ServerAdmin [email protected] ServerName www.twilightinternal.com ServerAlias twilightinternal.com DirectoryIndex index.html DocumentRoot /var/www/twilightinternal/ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI […]
我的Ubuntu服务器在FastCGI模式下configuration了Apache 2.2.8和PHP 5.2.4-2ubuntu5.18。 一切运作良好,除了我看到500错误似乎只来自机器人访问服务器..例如(access.log): x.125.71.104 – – [16 / Nov / 2011:10:27:39 +1100]“GET / HTTP / 1.1”500 41377“ – ”“Mozilla / 5.0(compatible; Baiduspider / 2.0; + http:// www.baidu.com/search/spider.html )“ x.40.103.239 – [16 / Nov / 2011:11:05:56 +1100]“GET / HTTP / 1.0”500 14717“ – ”“Mozilla / 5.0(compatible; mon.itor.us – free monitoring service ; http://mon.itor.us )“ x.249.67.114 […]
我有一个Apache Web服务器,有一个图像的子文件夹。 出于某种原因,一些.png文件是以text / html而不是image / png的forms返回的。 没有任何表示权限问题,文件返回代码200和完整的大小。 我确信image / png已经设置,甚至尝试用.htaccess来强制它 任何想法在哪里看? 编辑:看起来像父目录上的.htaccessconfiguration问题。
我有一个运行在Tomcat前面的Apache2 httpd,通过mod_auth_kerb进行身份validation。 当我在Firebug中打开控制台时,我看到很多401 看截图: 有没有办法避免这种情况? 我猜想它会造成影响性能的额外往返。
尝试使用Apache设置基本的HTTP身份validation,但它不起作用。 我定期得到目录列表和文件,不需要validation。 我尝试重新启动httpd和浏览器caching。 我在/ var / log / httpd / error_log中找不到任何相关条目。 有任何想法吗? htpasswd的: # htpasswd -c /usr/local/share/passwords username $ ls -l /usr/local/share/passwords -rw-r–r– 1 root root 44 Nov 23 13:29 /usr/local/share/passwords 的.htaccess: $ cat /srv/http/test/.htaccess AuthType Basic AuthName "Some Stuff" AuthUserFile /usr/local/share/passwords Require user username 目录: $ ls -la /srv/http/test/ total 16 drwxr-xr-x 2 root […]
我有一个新的Centos 6服务器站起来,我已经安装git 1.7.1通过百胜。 我通过Apache访问使用智能http方法。 当我尝试推送到远程服务器这是我得到: $ git push origin master Password: Counting objects: 6, done. Compressing objects: 100% (3/3), done. Writing objects: 100% (6/6), 436 bytes, done. Total 6 (delta 0), reused 0 (delta 0) error: unpack failed: index-pack abnormal exit 我试过这些没有区别的东西: chown -R apache:apache / path / to / git / repository(httpd作为apache运行) chown -R […]