我正在使用Puppet(使用Puppet和Drush安装Drupal的目标)在Ubuntu上安装PHP 5.2,但是它安装的软件包都是PHP 5.3。 我find了手动安装PHP 5.2的说明: http://2bits.com/drupal-planet/various-ways-running-php-52-ubuntu-1004-lucid-lynx.html (方法3) 但是这不符合Puppet的模型。 有没有人find一个更好的方法来安装PHP 5.2(用于Drupal 6)与Puppet?
所以我很困扰这个问题。 安装过程抱怨在settings.php和sites / default / files /上写入权限。 但是,我已经将这些文件暂时移到了写/读(chmod 777),并将所有者/组更改为“apache”,如下所示。 -bash-4.1$ ls -hal total 28K drwxrwxrwx. 3 richard richard 4.0K Aug 23 15:03 . drwxr-xr-x. 4 richard richard 4.0K Aug 18 14:20 .. -rwxrwxrwx. 1 apache apache 9.3K Mar 23 16:34 default.settings.php drwxrwxrwx. 2 apache apache 4.0K Aug 23 15:03 files -rwxrwxrwx. 1 apache apache 0 […]
我有一个testing子域的Drupal安装,当我试图将其移动到根域,没有任何工作。 我没有绝对的联系,我知道,并且两个域名在同一个主机上…所以我不明白为什么这不起作用。 没有细节必须改变…仍然是相同的数据库和主机,一切….是否有任何方法来解决这个问题?
我有一个网站从这个URL到达: http://www.mysite.com/cms/index.php 从这个目录提供服务: public_html/cms/index.php 在public_html我有这个.htaccess RewriteRule (.*) cms/$1 [L] 这让我到这样的网站: http://www.mysite.com/index.php 但是现在如果我引用“旧”地址,我想用redirect代码redirect到重写的地址。 例如: http://www.mysite.com/cms/?q=node/1 is redirected to… http://www.mysite.com/?q=node/1 我怎样才能做到这一点? 编辑:也在Drupal(cms)提供的.htaccess文件,这是写。 我试过启用它,但似乎没有任何效果。 # Modify the RewriteBase if you are using Drupal in a subdirectory or in a # VirtualDocumentRoot and the rewrite rules are not working properly. # For example if your site is at http://example.com/drupal […]
对于IIS 7来说,这是一个很新的东西,所以如果这是一个简单的道歉。 我已经使用Windows Server 2008 R2上的Webstart安装程序安装了Drupal 7。 Drupal使自己的404和403错误页面。 当我打开服务器上的Internet Explorer并testing它们时,它们工作正常。 但是,从远程机器: testing什么应该返回一个自定义的404页面(即不存在的页面),我在Firefox中得到一个空白页面,并且当友好的错误消息被打开时,IE显示403“该网站拒绝显示这个网页”,一个空白页面,当他们closures。 testing应该返回一个自定义403页面(通过访问具有未经过身份validation的用户的pipe理区域)返回IIS风格中的“服务器错误。403 – 禁止:访问被拒绝”。 我猜这是一个权限问题,但我找不到任何改变。 有任何想法吗? 谢谢, 弗雷德里克
我有基于Drupal的网站,我使用鱿鱼作为caching级别。 现在,主页不断获取未更新的内容(旧内容),并通过运行curl -I在我的网站上我得到这个: HTTP / 1.0 200 OK date:2011年3月21日星期一11:52:15 GMT 服务器:Apache Last-Modified:星期四,17三月2011 17:44:47 GMT 接受范围:字节 内容长度:77428 caching控制:无存储,无caching,必须重新validation,后检查= 0,预检查= 0 到期日:1978年11月19日星期日05:00:00 GMT Content-Type:text / html; 字符集= utf-8的 Xcaching:来自Servername.MyWebsite.com的错误 X-Cache-Lookup:来自Servername.MyWebsite.com的错误:80 Xcaching:来自Admin的MISS 连线:closures 尽pipe它显示了X-Cache:MISS在curl中,但它不断给旧的内容。 现在的问题是:我如何configuration鱿鱼不caching我的主页或特定页面? 谢谢你的帮助
那么这是对此的一种转发,但目前还没有人回答我的问题,所以我就在这里。 我正在使用Apache / 2.2.17(Ubuntu)mod_fastcgi与php-fpm,我无法启用干净的URL作为网站返回内部服务器错误。 我认为我的.htaccess设置中有些东西不对。 相同的服务器包含不同的虚拟主机下的Wordpress,它工作正常。 这是我希望可以帮助找出问题的一些相关信息。 我的虚拟主机包含: <VirtualHost *:80> ServerName example.com ServerAlias www.example.com DocumentRoot /home/dowsin/public_html FastCgiExternalServer /home/dowsin/public_html/php5.external -host 127.0.0.1:9000 AddHandler php5-fcgi .php Action php5-fcgi /usr/lib/cgi-bin/php5.external Alias /usr/lib/cgi-bin/ /home/dowsin/public_html/ RewriteLog "/home/dowsin/public_html/rewrite.log" RewriteLogLevel 9 <Directory "/home/dowsin/public_html"> allow from all Options -Indexes AllowOverride all </Directory> </VirtualHost> .htaccess包含 RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d […]
我有一个主要的drupal7站点和一个drupal6站点,在主要的drupal7站点中“生活”。 url如下所示: example_d7.com和example_d7.com/dir/example_d6 。 这些站点中的每一个都是从一个单独的目录中提供的: /www/drupal_sites/example_d7和/www/drupal_sites/example_d6 。 我已经将默认的drupal .htaccess文件的apache指令直接放在一个vhost文件中。 我的问题是,虽然干净的URL在主站点example_d7.com ,但干净的URL不能在example_d7.com/dir/example_d6 。 example_d7.com/dir/example_d6工作。 当我追加一个index.php?q=admin的URL,我可以浏览该网站。 我已经尝试了各种重写规则和条件。 我正在运行Apache 2.2.10。 主要的drupal7网站configuration: <Directory /www/drupal_sites/example_d7> AllowOverride None …snip… # Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule "(^|/)\." – [F] # RewriteBase / # Pass all requests not referring directly to files in the filesystem to # index.php. Clean URLs […]
我正在使用pressflow 6和NewRelic似乎暗示memcache是事实上伤害性能如下所示: 我的settings.php文件: # Varnish reverse proxy on localhost $conf['reverse_proxy'] = TRUE; $conf['reverse_proxy_addresses'] = array('127.0.0.1'); # Memcached configuration $conf['cache_inc'] = './sites/all/modules/memcache/memcache.inc'; $conf['memcache_servers'] = array( '127.0.0.1:11211' => 'default', ); ### END Mercury settings written on 2011-11-01T07:12:49-04:00
我有两台运行php5-fpm的服务器和一台运行nginx的负载均衡器,三台服务器使用nfs共享/ var / www / drupal。 nfs工作正常。 我使用mysql master master replication复制了两台服务器的数据库。 一切工作正常,直到我添加了我的iptables规则。 在我的iptables脚本中,我首先删除所有链,然后接受我想要的链,除此之外没有其他drop语句。 我打开端口3306这样mysql复制:(规则是在两个服务器上) iptables -A INPUT -p tcp -s $ip_Of_Other_Server –dport 3306 -j ACCEPT iptables -A OUTPUT -p tcp -d $ip_Of_Other_Server –sport 3306 -j ACCEPT 问题是,当我运行这两个服务器,我尝试login使用我的帐户在Drupal它不login,虽然我发现在Drupal日志成功的login尝试。 当我只运行一台服务器时,我可以正常login。 当我允许我的iptables规则中的一切正常工作。 我相信有一些端口,我需要打开使用iptables复制才能正常工作,但我找不到哪一个打开。