2021年3月7日星期日

WordPress CSS Not loading

trying to install a fresh WordPress Install using Docker Compose. I'm using AWS EC2 with a ELB Everything looks fine on logs but once I access to my site I got no css loaded, see the screen : no css

And the network error : errors

Here is my docker-compose :

version: "3"  services:   wordpress:    image: conetix/wordpress-with-wp-cli    ports:       - 80:80    restart: always    environment:      - WORDPRESS_DB_HOST=namehostwp      - WORDPRESS_DB_USER=nameuserwp      - WORDPRESS_DB_PASSWORD=passworddbwp      - WORDPRESS_DB_NAME=namedbwp    volumes:       - ./wp_data:/var/www/html      - ./wp-content/:/var/www/html/wp-content  

This image is wordpress and wp cli. Then I run : docker exec <container id> wp core install --path="/var/www/html" --url="http://nomdomaine" title="Example" --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com Install went well, and in wp-config I got the good dbhost, dbuser, dbpw and dbname

All files seems ok plugins ok

I dont know what to do.. thx for any help / tips

https://stackoverflow.com/questions/66523116/wordpress-css-not-loading March 08, 2021 at 08:59AM

没有评论:

发表评论