php - Caddy Server, http.fastcgi 502 Error -




my caddy file

http://bot.vibs.tech { root /home/caddy/www/botsite tls off errors {     404 /home/caddy/www/botsite/404.html } fastcgi / 127.0.0.1:9001 php { ext     .php split   .php index   index.php } 

}

the webpage http://bot.vibs.tech/test.php home page http://bot.vibs.tech

my php script

<?php  if($_post["submit"]) {     $test=$_post["botsname"];     $redis->set(';message';, $test;);     $value = $redis->get('message');     <p>$value</p> } if (empty($url)) {     echo "<h2><div style=\"color: black;\">thank you, bot being made!</div></h2>";     echo "<h2><div style=\color: black;\"><a href=http://bot.vibs.tech/>home</a></div></h2>"; } 

tried lots of different things, not sure else try do.

also im trying implement redis can have database form im working on.

additional info

tried /etc/init.d/php7.0-fpm status

● php7.0-fpm.service - php 7.0 fastcgi process manager    loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor   preset: enabled)    active: active (running) since sat 2017-08-26 11:27:49 edt; 4min 55s ago   process: 17295 execstartpre=/usr/lib/php/php7.0-fpm-checkconf (code=exited, status=0/success)  main pid: 17304 (php-fpm7.0)    status: "processes active: 0, idle: 2, requests: 0, slow: 0, traffic: 0req/sec"    cgroup: /system.slice/php7.0-fpm.service            ├─17304 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)            ├─17305 php-fpm: pool www            └─17306 php-fpm: pool www  aug 26 11:27:49 vibs systemd[1]: starting php 7.0 fastcgi process manager... aug 26 11:27:49 vibs systemd[1]: started php 7.0 fastcgi process manager. hint: lines ellipsized, use -l show in full. 

says started.

also did, ps aux | grep php-fpm

root     17304  0.0  0.8 211748 17128 ?        ss   11:27   0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf) www-data 17305  0.0  0.1 211748  3224 ?        s    11:27   0:00 php-fpm: pool www www-data 17306  0.0  0.1 211748  3224 ?        s    11:27   0:00 php-fpm: pool www caddy    18003  0.0  0.0  11228   884 pts/0    s+   15:33   0:00 grep --color=auto php-fpm 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -