[SOLVED] Problems installing Neos 9 on Netcup

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?

Hi Finn

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.

1 Like

Hi i have a Neos 9 running on Netcup:)

Set the open_base dir to include the DOCROOT

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:

chmod 777 $NEOS_DIRECTORY/Web/
chmod 777 $NEOS_DIRECTORY/Web/_Resources/.htaccess
1 Like

Hey Marc,
thanks for the Answere!

Its running now, i dont now exactly what did the trick but since i already had the rigth open_basedir setup the settings might did it.

Also changed the env to production and set the access rights.

1 Like