I'm not sure if you maintain this anymore or if you would even be willing to help me with my issue. Regardless I'll ask.
I'm using PHP 7.4 on Ubuntu 20.04.4 using nginx to server my site.
To my knowledge I have configured everything correctly.
Upon testing it does display the shortened url page however it does not finish its execution, therefore the shortened url isn't actually attached to anything.
Checking my error log (/var/log/nginx/error.log) I see it has produced the following exception.
2022/06/27 23:57:33 [error] 739740#739740: *1953 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: q in /var/www/mysite.com/shorty.php on line 314" while reading response header from upstream, client: 172.69.68.17, server: mysite.com, request: "GET /index.php?url=http://www.google.com HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "mysite.com"
While I do not think this is the cause of my issues it might be relevant.
The mysql user that shorty is using only has INSERT, SELECT, and UPDATE permissions within the scope of shorty.urls
I'm not sure if you maintain this anymore or if you would even be willing to help me with my issue. Regardless I'll ask.
I'm using PHP 7.4 on Ubuntu 20.04.4 using nginx to server my site. To my knowledge I have configured everything correctly. Upon testing it does display the shortened url page however it does not finish its execution, therefore the shortened url isn't actually attached to anything. Checking my error log (/var/log/nginx/error.log) I see it has produced the following exception.
The issue stems from this line
While I do not think this is the cause of my issues it might be relevant. The mysql user that shorty is using only has INSERT, SELECT, and UPDATE permissions within the scope of shorty.urls