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

modify URL for prestashop #453

Closed
auaaaa opened this issue Dec 5, 2023 · 12 comments
Closed

modify URL for prestashop #453

auaaaa opened this issue Dec 5, 2023 · 12 comments
Assignees
Labels
bug Type label, something isn't working S-handler Status label, Try to solve it but failed

Comments

@auaaaa
Copy link

auaaaa commented Dec 5, 2023

域名访问失败
QQ图片20231205102312
删除域名失败
QQ图片20231205103244

@auaaaa auaaaa added the bug Type label, something isn't working label Dec 5, 2023
@auaaaa auaaaa changed the title complete docker compose for [  prestashop] complete docker compose for prestashop Dec 6, 2023
@auaaaa
Copy link
Author

auaaaa commented Dec 7, 2023

2023-12-7
latest版本安装失败
QQ图片20231207090646

@qiaofeng1227
Copy link
Contributor

Version: '5.7.44'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
2023-12-27T02:55:05.318408Z 3 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:05.333074Z 4 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:05.337936Z 5 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:05.370728Z 6 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:05.372106Z 7 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:05.392272Z 8 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:08.185946Z 9 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop'
2023-12-27T02:55:08.344154Z 11 [Note] Access denied for user 'prestashop_1jy1t'@'%' to database 'prestashop

@qiaofeng1227
Copy link
Contributor

lose env:
DB_NAME=${W9_ID}

@qiaofeng1227
Copy link
Contributor

域名访问成功,删除域名后IP无法访问。

@chendelin1982
Copy link
Contributor

chendelin1982 commented Jan 13, 2024

域名访问成功,删除域名后IP无法访问。

How to modify URL by manual?

If your IP / port (or domain) change between two executions of your container, you will need to modify this option: PS_HANDLE_DYNAMIC_DOMAIN

@chendelin1982 chendelin1982 changed the title complete docker compose for prestashop modify URL for prestashop Jan 13, 2024
@qiaofeng1227
Copy link
Contributor

image

@qiaofeng1227
Copy link
Contributor

root@ec9d94976343:/var/www/html# php bin/console prestashop:config get PS_LANG_DEFAULT

                                                                                                                        
 [OK] PS_LANG_DEFAULT=1                                                                                                 
                                                                                                                        

root@ec9d94976343:/var/www/html# php bin/console prestashop:config get PS_SHOP_DOMAIN                                       

                                                                                                                        
 [OK] PS_SHOP_DOMAIN=prestashop.test2.websoft9.cn                                                                       
                                                                                                                        

root@ec9d94976343:/var/www/html# php bin/console prestashop:config set PS_SHOP_DOMAIN --value=8.217.128.137

                                                                                                                        
 [OK] PS_SHOP_DOMAIN=8.217.128.137                                                                                      
                                                                                                                        

root@ec9d94976343:/var/www/html# php bin/console prestashop:config set PS_SHOP_DOMAIN --value=8.217.128.137:9001

                                                                                                                        
 [OK] PS_SHOP_DOMAIN=8.217.128.137:9001    

@qiaofeng1227
Copy link
Contributor

can not access by ip or ip:port

@qiaofeng1227
Copy link
Contributor

qiaofeng1227 commented Jan 19, 2024

Install by domain, you can access by domain and ip:port(auto go to domain).

set PS_SHOP_DOMAIN=ip:port,you also can access by domain and ip:port(auto go to domain).

@chendelin1982
Copy link
Contributor

chendelin1982 commented Jan 22, 2024

two question:

  • restart container?
    also can access by domain and ip:port(auto go to domain).
  • cli changed, the database changed?
    yes, db changed.

@qiaofeng1227 qiaofeng1227 self-assigned this Jan 22, 2024
@qiaofeng1227
Copy link
Contributor

refer to: PrestaShop/docker#361

@chendelin1982 chendelin1982 added the S-handler Status label, Try to solve it but failed label Jan 25, 2024
@chendelin1982
Copy link
Contributor

solved:

modify url by: console > Shop Parameters > SEO & URLs > Set shop URL
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type label, something isn't working S-handler Status label, Try to solve it but failed
Projects
None yet
Development

No branches or pull requests

3 participants