Can't run phpmyadmin under nginxunit

lhmwzy lhmwzy at 126.com
Fri Jan 12 03:25:30 UTC 2018


cat config/blogs.json <br/>{<br/>     "listeners": {<br/>         "*:8300": {<br/>             "application": "blog"<br/>         }<br/>     },<br/>     "applications": {<br/>         "blog": {<br/>             "type": "php",<br/>             "workers": 20,<br/>             "root": "/home/www/phpmyadmin",<br/>             "index": "index.php"<br/>         }<br/>     }<br/>}<br/><br/>curl -X PUT -d @config/blogs.json \<br/>                             --unix-socket ./control.unit.sock http://127.0.0.1<br/><br/><br/>nginx.conf:<br/><br/>.....<br/>        upstream nginxunit {<br/>                server 127.0.0.1:8300;<br/>        }   <br/>......<br/><br/>    server {<br/>        listen 8008;<br/>        root /home/www/;<br/>        location / {<br/>                index index.html index.php;<br/>        }<br/>        location ~ \.php$ {<br/>                proxy_pass http://nginxunit;<br/>                proxy_set_header Host $host;<br/>                #proxy_redirect   http://$host:$server_port/; <br/>        }<br/>    }<br/><br/>phpmyadmin is in /home/www<br/>then access http://xx:8008/phpmyadmin<br/>the page is blank;<br/>cat unit.log:<br/>2018/01/12 11:04:12 [info] 1600#34366357696 discovery started<br/>2018/01/12 11:04:12 [notice] 1600#34366357696 module: php 7.0.26 "build/php7.unit.so"<br/>2018/01/12 11:04:12 [info] 1601#34366357696 controller started<br/>2018/01/12 11:04:12 [notice] 1599#34366357696 process 1600 exited with code 0<br/>2018/01/12 11:04:12 [info] 1602#34366357696 router started<br/>2018/01/12 11:06:20 [info] 1611#34366357696 "blog" application started<br/>2018/01/12 11:06:20 [info] 1611#34366357696 (non ABS_MODE) php root: "/home/www/phpmyadmin"<br/>2018/01/12 11:07:14 [notice] 1599#34366357696 process 1611 exited with code 0<br/>2018/01/12 11:07:17 [info] 1617#34366357696 "blog" application started<br/>2018/01/12 11:07:17 [info] 1617#34366357696 (non ABS_MODE) php root: "/home/www/phpmyadmin"
At 2018-01-08 01:59:22, "Valentin V. Bartenev" <vbart at nginx.com> wrote:
>On Sunday, 7 January 2018 11:14:14 MSK lhmwzy wrote:
>> # cat config/blogs.json
>> {
>>      "listeners": {
>>          "*:8300": {
>>              "application": "blog"
>>          }
>>      },
>>      "applications": {
>>          "blog": {
>>              "type": "php",
>>              "workers": 20,
>>              "root": "/home/www/phpmyadmin/",
>>              "index": "index.php"
>>          }
>>      }
>> }
>> # curl -X PUT -d @config/blogs.json --unix-socket ./control.unit.sock http://10.66.23.99:8300
>> {
>>         "success": "Reconfiguration done."
>> }
>> But when access http://10.66.23.99:8300
>> the page is blank.
>> the app which run is https://www.phpmyadmin.net/.
>
>What's in the unit.log?
>
>  wbr, Valentin V. Bartenev
>
>_______________________________________________
>unit mailing list
>unit at nginx.org
>https://mailman.nginx.org/mailman/listinfo/unit


More information about the unit mailing list