localhost / phpmyadmin无法正常工作,只看到一堆文字

时间:2016-12-03 10:42:47

标签: php mysql phpmyadmin

localhost phpmyadmin not working

我试图让phpMyAdmin工作,但事实证明它比我想象的要难得多。

有谁知道这里有什么问题?

BTW我在GalliumOS上使用PHP 7(基本上是Ubuntu for Chromebooks)。

2 个答案:

答案 0 :(得分:1)

我知道这是一个较晚的答案,但是我偶然遇到了同样的问题,并且

sudo a2enmod php7.x 

(php 7.x是实际的php版本) 解决了我的问题(显然php已更新,而Apache中未启用新版本)

答案 1 :(得分:0)

如果您已安装PHP,可以通过编辑 curl -XPOST "htturl -XPOST "http://localhost:9200/ind_ahor_fin_ult1/_search" -d' {"query": {"bool": {"minimum_should_match": 5, "should": [{"terms": {"renta": "1"},"boost": 4}]}}}' {"error":{"root_cause":[{"type":"query_parsing_exception","reason":"[terms] query does not support [renta]","index":"ind_ahor_fin_ult1","line":3,"col":35}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"ind_ahor_fin_ult1","node":"j20MAn_OQ9eRyNsrjf1MRQ","reason":{"type":"query_parsing_exception","reason":"[terms] query does not support [renta]","index":"ind_ahor_fin_ult1","line":3,"col":35}}]},"status":400} 来解决此问题,并在文件底部添加以下行:

/etc/apache2/apache2.conf

请务必在保存更改后重新启动Apache。