Php 配置nginx+;HHVM运行drupal7和mediawiki获取错误

Php 配置nginx+;HHVM运行drupal7和mediawiki获取错误,php,nginx,drupal-7,mediawiki,hhvm,Php,Nginx,Drupal 7,Mediawiki,Hhvm,我使用nginx+phpfpm来正常运行drupal7和mediawiki。 自从我改变HHVM出现错误。 drupal7站点几秒钟后出现500错误(nginx error.log没有相关信息!) mediawiki站点将下载该文件,而不是执行/服务该文件。 drupal和mediawiki是最新版本(drupal 7.42、mediawiki 1.26.2) 以下是我的配置文件和启用的模块/扩展名: /etc/nginx/nginx.conf # drupal7 server { li

我使用nginx+phpfpm来正常运行drupal7和mediawiki。 自从我改变HHVM出现错误。 drupal7站点几秒钟后出现500错误(nginx error.log没有相关信息!) mediawiki站点将下载该文件,而不是执行/服务该文件。 drupal和mediawiki是最新版本(drupal 7.42、mediawiki 1.26.2) 以下是我的配置文件和启用的模块/扩展名:

/etc/nginx/nginx.conf

# drupal7
server
{
    listen              80;
    server_name         a.xxx.com;
    root     /var/www/html;
    index    index.php index.html index.htm;
    proxy_set_header    X-Forwarded-For $http_x_forwarded_for;
    set_real_ip_from    127.0.0.1;
    real_ip_header      X-Forwarded-For;

    location  /
    {
        if (!-e $request_filename)
        {
            rewrite  ^/(.*)$   /index.php?q=$1  last;
            break;
        }

        include  hhvm.conf;
    }
}

# mediawiki
server
{
    listen   80;
    server_name   b.xxx.com;
    root   /var/www/html/baike;
    index  index.php index.php5 index.html index.htm;
    proxy_set_header    X-Forwarded-For $http_x_forwarded_for;
    set_real_ip_from  127.0.0.1;
    real_ip_header    X-Forwarded-For;

    location /
    {
        rewrite ^/([^?]*)(?:\?(.*))? /index.php5?title=$1&$2 last;
    }

    location /cache
    {
        return 403;
    }

    location /images
    {
        if ($query_string ~ ^\\/:*?\x22<>|%]+("))
        {
            return 403;
        }
    }

    location /includes
    {
        return 403;
    }

        location /languages
    {
        return 403;
    }

    location /maintenance
    {
        return 403;
    }

    location /serialized
    {
        return 403;
    }

    location /tests
    {
        return 403;
    }

    include  hhvm.conf;
}
  • Drupal7启用的模块:
  • acl、addtoany、admin\u菜单、admin\u视图、advanced\u forum、advanced\u forum\u more\u样式、advanced\u help、advanced\u help\u提示、advpoll、aes、ajax\u注释、ajax\u注册表、authcache、autosave、autotag、back\u to\u top、backup\u migrate、条形码、bbcode、beautytips、better\u消息、boost、boost\u缓存清理器、boost\u captcha、boost\u自定义\u规则、,boost\u expire、boost\u mobile、breadcrumb2、captcha、captcha\u after、cdn、chain\u menu\u access、图表、checklistapi、closedquestion、cmf、cnr、代码片段、咖啡、配色箱、注释通知、配置页面、内容访问、内容分析、内容锁定、内容菜单、内容优化器、上下文、上下文http\u头、倒计时、计数器、csna、ctools、,cumulus、diff、download\u count、download\u file、drupalforfirebug、duoshuo\u comment、elements、email、emfield、entity、entitycache、entityreference、entity\u translation、expire、fast\u 404、fasttoggle、特色内容、功能、反馈、field\u集合、field\u权限、文件缓存、file\u entity、filefield\u源、fivestar、flag、FlexAccess、,论坛访问、免费链接、geshifilter、get_image、globalredirect、html5_media、httprl、i18n、imagecache_token、image_captcha_refresh、impress、Jiathe、jquery_update、l10n_update、langcheck、语言域、语言图标、库、链接、链接、登录历史、登录安全、登录博根、luxe、机器名、标记、媒体、mediafront、,媒体翻译、媒体土豆、媒体vimeo、媒体水印、媒体优酷、媒体youtube、memcache、菜单令牌、元标签、微博、微数据、移动交换机、模态表单、模块过滤器、mollom、最流行、多格式、多上传文件字段小部件、尼斯菜单、通知、og、页面消息、页面标题、分页、面板、粘贴格式、pathauto、pcp、pdf、,持久登录、piwik、占位符、plupload、potx、privatemg、privatemg\u notify\u发送者、profile2、项目、purl、问答、测验、报价、放射性、README.txt、重定向、redis、regcode、相关内容、谜语、规则、规则链接、调度程序、搜索api、搜索引擎优化清单、服务、简单验证、站点地图、smtp、社交网络、,spambot、strongarm、subform、superfish、tablefield、tag、tagadelic、tagclouds、talk、分类方面、分类管理器、分类菜单、使用术语、主题、标题、tmgmt、令牌、翻译助手、音译、ucuser、ueditor、uiplog、url、用户名检查、用户点、用户点nc、用户点排名、用户注册密码、uuid、,变量、清漆、视频、视图、视图、批量操作、视图、内容缓存、视图、显示更多、视图、可视化、votingapi、webform、wikitools、wordfilter、workbench、workbench访问、workbench媒体、workbench调节、wysiwyg、xmlsitemap、youtube

  • 支持Mediawiki的扩展:

  • AbuseFilter、AJAXPoll、AjaxShowEditor、AntiBot、AntiSpoof、Auth_UC、Avatar、BlockTitles、CategoryTree、Centralouth、CentralNotice、ChemPF、CiteThisPage、CodeEditor、ConfirmEdit、ContentTranslation、Disambigulator、Duoshuo、Echo、EventLogging、FancyBoxThumbs、Flow、Flow、FlowThread、Gadgets、GettingStarted、GlobalBlocking、Graph、,GuidedTour、ImageMap、InputBox、Interwiki、JsonConfig、LocalizationUpdate、Lua、MassEditRegex、MassMessage、数学、MathStatFunctions、MobileApp、MobileFront、MobileFrontend2、MoegirRating、MoeUpload、Multi-Boiler、MultiUpload、MWBlocker、Nuke、PageHistoryAjax、PageImages、PageTools、ParserFunctions、PdfHandler、Piwik、Poem、,弹出窗口、PurgeCache、测验、自述、重命名、替换文本、SpamBlacklist、SyntaxHighlight_GeSHi、标记内容、文本摘录、感谢、主题设计师、TimedMediaHandler、时间轴、标题lacklist、UniversalLanguageSelector、用户名黑名单、变量、Victoria、VisualEditor、小部件、WikiEditor、WikiLove、WRLanguageLinks
对不起,我的英语很差。 谢谢

location ~ \.(hh|php5|php)$ {
    try_files $uri $uri/ /index.php =404;
    fastcgi_keep_conn on;
    fastcgi_intercept_errors on;
    fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param   SERVER_NAME $host;
    include        fastcgi_params;
}