Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 bad gateway #20

Closed
brian-lamb-software-engineer opened this issue Oct 13, 2017 · 3 comments
Closed

502 bad gateway #20

brian-lamb-software-engineer opened this issue Oct 13, 2017 · 3 comments

Comments

@brian-lamb-software-engineer
Copy link

brian-lamb-software-engineer commented Oct 13, 2017

When i load that url from the host box i get an nginx screen stating 502 bad gateway.

Afer i successfully ssh'd into the vagrant box (homestead) i ran the mentioned shell command. It appeard all is well. When looking i do see phpmyadmin in the nginx sites-available, i did add the url to the vhost 127.0.0.1 phpmyadmin.app . i also tried restarting nginx and php-fpm.

Not sure where to look from here, not knowing much about vagrant yet, its new to me still. Do i need to check some config file somewhere?

@brian-lamb-software-engineer
Copy link
Author

@a-pasquale
Copy link

In /etc/nginx/sites-enabled/phpmyadmin.test change:
fastcgi_pass unix:/var/run/php/php-fpm.sock;
to:
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;

An alternate solution would be to modify the parameters passed to the serve-laravel.sh script to include the PHP version.

@mednasserallah
Copy link

mednasserallah commented Jan 27, 2019

Homestead 6+ support multiple PHP versions ("7.1", "7.2" and "7.3") now.

I've fixed the problem by adding (php: "7.2") in the Homestead.yaml like this

   - map: phpmyadmin.test
      to: /home/vagrant/code/phpmyadmin
      php: "7.2"

grrnikos pushed a commit that referenced this issue Feb 18, 2019
…on from github. (#26)

With this PR, from now on, the script will automatically fetch the latest version of PhpMyAdmin from Github, hence will serve the application with PHP 7.3 by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants