Hey,
I got a client Server on Netcup and running in issues installing Neos.
Its mainly about open_basedir restrictions.
I set the open_basedir to: {WEBSPACEROOT}{/}{:}{TMP}{/}{:}{/}var{/}lib{/}php{/}sessions
Alternative is: {DOCROOT}{/}{:}{TMP}{/}{:}{/}var{/}lib{/}php{/}sessions{:}{WEBSPACEROOT}{/}tmp
I also set a symlink that i can use the phpbinary like this:
/var/www/vhosts/hostingXYZ.netcup.net/usr/local/php83/bin/php
This helped to setup the database but after that I am back on error:
Warning: is_link(): open_basedir restriction in effect.
File(/var/www/vhosts/hostingXYZ.netcup.net/httpdocs/Web/_Resources/Static/Packages/Neos.Flow) is not within the allowed path(s): (/var/www/vhosts/hostingXYZ..netcup.net/:/tmp/:/var/lib/php/sessions) in /var/www/vhosts/hostingXYZ..netcup.net/httpdocs/Packages/Libraries/neos/utility-files/Classes/Files.php line 383
Any hints on how to get neos running on the Netcup Server?
It looks as if Netcup uses Plesk for hosting. In their Help Center, they have an article about PHP settings, and you need to adjust/disable the open_basedir restriction. See this post.
My settings (set the phpBinaryPathAndFilename to the cli version):
Neos:
Flow:
persistence:
backendOptions:
driver: pdo_mysql
host: ...
core:
phpBinaryPathAndFilename: '/usr/local/php83/bin/php'
# a web proccess uses the non chrooted path while the cli uses an absolute chrooted path which does not work for the apache
resource:
targets:
localWebDirectoryStaticResourcesTarget:
targetOptions:
relativeSymlinks: true
My .htaccess includes a SetEnv FLOW_CONTEXT Production
And i think i also ran a a chmod for the access rights: