我的服务器上有三个不同的wordpress站点,其位置如下:
/www ->主站点
网址2/
网址3/
主站点正在运行,但site2和site3 (它们是文件夹中的wordpress站点)没有工作。我在site2和site3上得到了以下错误,我认为这与htaccess有关:
Warning: include(modules/.php) [function.include]: failed to open stream: No such file or directory in /www/index.php on line 154
Warning: include() [function.
我有一个运行多个站点的own服务器,每个站点都有自己的php5-fpm池。
一个特定的网站表现得很奇怪。我在/etc/php5 5/fpm/info.gov.hk.d/中为它设置了一个conf文件,所有内容都与服务器上的所有其他站点相同,除了一件事.
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
FastCGI地址是:
liste
所有人。
我有一个带有Apache + mod_php站点(site1.local)的Cent OS6.6服务器。我需要使用php_cgi配置第二个站点(site2.local)。因此,我创建了一个用户,授予他对www-folder的权限,将site1配置为mod_php,创建了一个phpinfo.php。另外,我安装了php-cgi,并尝试配置虚拟主机,只能在第一个站点上工作,在第二个站点上是错误的:
the requested url /cgi-bin/phpinfo.php was not found onthis server.
这是我的配置: cat /etc/httpd/conf/
我有一个用MVC模式构建的OOP PHP站点。站点上的页面有一个嵌入式SWF,它需要从数据库中提取信息。在过去,我只有一个过程性的php文件,让swf从数据库加载数据。然而,这种方法似乎并不适合更多面向对象的站点。
swf加载外部数据的“正确”方式是什么?我是否应该在站点的正常结构中创建一个类和一个MVC模式来拉取数据(例如mysite.com/flash/ data ),并将此路径作为FlashVar传递给swf?
我有一个PHP爬虫,每天从crontab发射几次
php crawler.php
在crawler.php中,我查询我的站点的数据库,然后循环并检查它们:
foreach ($mysql_results as .. ) {
// curl and check html for my checks
// each site takes about 30sec
}
我已经开始改变逻辑,改为只执行每个php执行的一个站点,完成,然后重新启动脚本并运行下一个站点。
// get offset from database
// based on offset get single sit