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

Opencart: No such file or directory #19

Closed
BrunoCodeman opened this issue Jun 14, 2016 · 11 comments
Closed

Opencart: No such file or directory #19

BrunoCodeman opened this issue Jun 14, 2016 · 11 comments

Comments

@BrunoCodeman
Copy link

captura de tela 2016-06-14 as 18 04 46

I'm stuck on this screen trying to stall opencart. Can you give me some help, please?

Thanks!

@vimagick
Copy link
Owner

vimagick commented Jun 15, 2016

If you're using this docker-compose.yml

opencart:
  image: vimagick/opencart
  ports:
    - "8000:80"
  links:
    - mysql
  volumes:
    - /var/www/html
  restart: always

mysql:
  image: mysql
  environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_DATABASE=opencart
  restart: always

The Hostname should be mysql (not localhost).

@BrunoCodeman
Copy link
Author

Thanks for your reply! After following your instructions, now I'm having another error - "php_network_getaddresses: getaddrinfo failed: Name or service not known" =/

@vimagick
Copy link
Owner

vimagick commented Jun 15, 2016

Please run this command:

docker exec your_opencart_container_name ping mysql

Make sure you can access mysql inside opencart container.

@BrunoCodeman
Copy link
Author

ping: unknown host.

@BrunoCodeman
Copy link
Author

BrunoCodeman commented Jun 15, 2016

Can it be an issue with the fact that I'm running the container on Kitematic?

@BrunoCodeman
Copy link
Author

Nevermind, My MySQL container wasn't running. Thanks for your help!

@Alok123456
Copy link

Hi, i am also using OpenCart Application and have hosted it on bluemix but i am stuck at the database Configuration which has been shown in the above image. How can i complete this information as i want to use bluemix database service instance. So, i am confused that which database service instance of bluemix i should use and how will i be able to configure OpenCart database configure settings on that bluemix database instance ? Please provide me any details regarding that.

@vimagick
Copy link
Owner

vimagick commented May 4, 2017

Run this command on your machine to make sure mysql service is up and running:

# You need create the database, or use the one that service provider gives to you
# Service provider may give you mysql instance which uses none-standard port number
$ mysql -h bluemix-mysql-server -P 3306 -u username -p opencart

Then type the correct parameters into the text fields.

@Alok123456
Copy link

ok sure

@Alok123456
Copy link

It's giving me an error while i am running this command which is "ERROR 2005 (HY000): Unknown MySQL server host 'bluemix-mysql-server' (0)". What to do to solve this issue.

@vimagick
Copy link
Owner

vimagick commented May 4, 2017

I haven't used mysql cloud service from bluemix yet.
You need to find the settings on its dashboard somewhere.
Don't use bluemix-mysql-server, it's just a placeholder.

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

3 participants