Skip to content
Advertisement

Tag: ubuntu

php -S randomly not working: localhost refused to connect [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 1 year ago. Improve this question I am using WSL2 with ubuntu 20.04 with php 7.4.3 installed on it.

How redirect from /file.php to /file on nginx?

I’m currently hiding the .php extension from the urls on my nginx server with this configuration: This is working perfectly, but how can I make nginx not allow adding the .php extension?. In my example if you manually delete the .php it works but if you add it it remains permanent in the url. Answer To redirect those requests permanently

How to run PHP files properly on Ubuntu with Nginx?

I have “php” folder and also phpmyadmin folder in /var/www/html direction, and when I’m trying to open localhost/phpmyadmin/index.php or localhost/php/index.php in browser, I get the following error: and also browser suggests me to download file. I installed mysql, php 7.4, nginx and phpmyadmin aswell, have no idea why it isn’t working. I use Lubuntu distribution. I guess it’s obvios, but

Laravel routes causing 404 Error on live server

I have a laravel app developed on my localhost and working perfectly. I am trying to deploy it onto an AWS Lightsail instance using nginx on Ubuntu 20.04. I have uploaded my laravel app and changed the nginx root directory to laravelapp/public. The main index page (landing page) is working fine but none of my routes are working (i.e. /login,

gRPC extension not installed in the right PHP version in Ubuntu 18.04

I’m trying to install gRPC extension following the official guidance I’ve followed all the steps, but on these final steps, I get this (which I think will matter later) Installing shared extensions: /usr/lib/php/20190902/ Here, I checked that folder and found the grpc.so file. At this point, I expected to have the extension installed, I’ve added extension=grpc.so within php.ini (apache2 and

Access denied for user ‘root’@’localhost’ after installing phpmyadmin on ubuntu

I installed phpmyadmin on my ubuntu server following these steps here: https://www.rosehosting.com/blog/install-phpmyadmin-on-ubuntu-16-04/ I installed apache, php, mysql following these steps: https://vijayasankarn.wordpress.com/2017/01/17/setting-lamp-stack-in-ubuntu-16-04-using-aws-ec2/ and when I goto login to http://myserver.com/phpmyadmin I get this error: mysqli_real_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: YES) What am I doing wrong? Am I missing a step that is not in the links above? I

Advertisement