403 Install problem "Warning: require(__DIR__/kirby/bootstrap.php)"

Hello,

i am having a problem installing Kirby2 on a clients server. No clue what the problem is. I even talked to the service hotline. PHP 5.3 is intstalled and it’s in right httpdocs folder and I did not forget the .htaccess file. It works fine, if installed on another server.

That is the warning:

Warning: require(DIR/kirby/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /var/www/vhosts/i-offermanns.de/httpdocs/index.php on line 6

Warning: require(DIR/kirby/bootstrap.php) [function.require]: failed to open stream: No such file or directory in /var/www/vhosts/i-offermanns.de/httpdocs/index.php on line 6

Fatal error: require() [function.require]: Failed opening required β€˜DIR/kirby/bootstrap.php’ (include_path=’.:’) in /var/www/vhosts/i-offermanns.de/httpdocs/index.php on line 6

Maybe u can help ?

1 Like

Did you push a git repo or move files via php? If the first, the kirby submodules need to be initialized und updated first. Pls check if the kirby kirby/toolkit and panel folders are empty.

Other than that, It might still be a php version problem.

It is most likely a PHP version problem. Are you sure you are using PHP 5.3? The fact that the warning contains the literal constant name __DIR__ is strange, because that should be interpreted by PHP.

Unfortunately we couldnt find the issue and switched to another webhost … :confused: