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

Site doesn't display correctly #32

Closed
gr33k opened this issue Oct 29, 2020 · 2 comments
Closed

Site doesn't display correctly #32

gr33k opened this issue Oct 29, 2020 · 2 comments

Comments

@gr33k
Copy link

gr33k commented Oct 29, 2020

Hi - I'm using nginx and php-fpm to host this code, and I don't seem to be able to get it to display correctly.

Nginx Info:
nginx version: nginx/1.18.0

PHP Info:
PHP 7.3.23 (cli) (built: Sep 29 2020 08:33:03) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.23, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.23, Copyright (c) 1999-2018, by Zend Technologies

Basic PHP configuration - am I missing something?

  location / {
    try_files $uri $uri/ /index.php;
  }

  location ~ \.php$ {
        fastcgi_pass 127.0.0.1:9000;
        try_files $uri =404;
	fastcgi_split_path_info ^(.+\.php)(/.+)$;
	fastcgi_index index.php;
	include fastcgi.conf;
  }

I have all dependencies as far as I can tell (using Fedora 31 on this server) that are listed in the requirements. Is there one that would cause the site to load like plain HTML vs nice PHP layout in screenshots (i.e. advanced theme)?

This is what it looks like:
Screen Shot 2020-10-29 at 5 26 07 PM

Any suggestions are appreciated - ty

@masterking32
Copy link
Owner

masterking32 commented Nov 1, 2020

Its about baseurl in the config file.

$config['baseurl'] = "http://localhost"; // Must be a valid URL to prevent issues with loading images and templates.

@gr33k
Copy link
Author

gr33k commented Nov 2, 2020

Thanks @masterking32 !!! That was exactly it - I had to explicitly write in https://myurl.com - I just had myurl.com in there.

Many Thanks! 👍

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

2 participants