Jump to content
Sign in to follow this  
Nerijusk

PW Installation under url subpath

Recommended Posts

Hi,

I am trying to get working installation of PW in docker container (apache + php), the installation is in /var/www/html, but the link to the site is http://pw.com/de/

I've tried to add: $config->urls-root = '/de'; but without luck.

Also tried to change RewriteBase to /de, but still no luck.

 

Does anyone have any advice?

Share this post


Link to post
Share on other sites

Forgot to mention that I get blank screen, in debug mode I see:


Notice: Trying to get property 'compile' of non-object in /var/www/html/wire/modules/PageRender.module on line 395
Notice: Trying to get property 'noPrependTemplateFile' of non-object in /var/www/html/wire/modules/PageRender.module on line 422
Notice: Trying to get property 'prependFile' of non-object in /var/www/html/wire/modules/PageRender.module on line 423
Notice: Trying to get property 'noAppendTemplateFile' of non-object in /var/www/html/wire/modules/PageRender.module on line 424
Notice: Trying to get property 'appendFile' of non-object in /var/www/html/wire/modules/PageRender.module on line 425
 

Share this post


Link to post
Share on other sites
4 hours ago, Nerijusk said:

I've tried to add: $config->urls-root = '/de'; but without luck.

Is that your actual code? There's a missing > there

$config->urls->root vs.
$config->urls-root

https://cheatsheet.processwire.com/config/urls/config-urls-root/

If that was just a typo here in the forum post, you might wanna check Docker-related forum posts, e.g. https://processwire.com/talk/topic/10736-running-a-processwire-site-with-docker/

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...