I’m trying to get Bedrock running on a shared host (swedish host www.binero.se). Now I know that it isn’t quite the target demographic for Bedrock but it seems like it should work with just a few modifications.
The most obvious limitation I have is that the website root is called public_html
and that can’t be change. I have SSH-access and full access to the folder that houses public_html
so I thought that a simple rename of web to public_html should fix it. It sort of worked but not quite. I’ve change web to public_html
in the following files:
composer.json
wp-cli.yml
The most of the site loads but no themes are available and I get a few errors:
- AH01071: Got error ‘PHP message: PHP Notice: Undefined index: host in /var/www/public_html/wp/wp-includes/http.php on line 359\nPHP message: PHP Notice: Undefined index: host in /var/www/public_html/wp/wp-includes/http.php on line 360\n’, referer: http://www.awesome.dev/wp/wp-admin/themes.php
- AH01071: Got error ‘PHP message: PHP Warning: require(/var/www/web/wp/wp-admin/menu.php): failed to open stream: No such file or directory in /var/www/public_html/wp/wp-admin/admin.php on line 115\nPHP message: PHP Fatal error: require(): Failed opening required ‘/var/www/public_html/wp/wp-admin/menu.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/public_html/wp/wp-admin/admin.php on line 115\n’, referer: http://www.awesome.dev/wp/wp-admin/
- AH01071: Got error ‘PHP message: PHP Notice: Undefined index: host in /var/www/public_html/wp/wp-includes/theme.php on line 1944\nPHP message: PHP Notice: Undefined index: host in /var/www/public_html/wp/wp-includes/theme.php on line 2003\n’, referer: http://www.awesome.dev/wp/wp-admin/
Somehow there is some reference to the web-directory I haven’t found (since it tries to import wp-admin/menu.php
from web) and I don’t really know where to look. Right now I’m guessing that the index: host error is related since I’ve configured the .env-file with the correct values.
- Is fairly easy to do what I am attempting (read should I bother continueing on this path)?
- What the crap am I doing wrong? Why is it still expecting the web-folder?
- Does someone have an alternate theory for the index: host issue?
Any help or pointers at all are much appreciated.