Install problems CCMS-9.2

Hi, I’m using CCMS 9.2 on a host that has a direct admin setup. Direct admin is running PHP7.4 and for my own site I want to use PHP8+. I tried both 8.1 and 8.2.

When installing I get an error about the open_base_dir restriction:

is_dir(): open_basedir restriction in effect. File(/opt/alt/php81/var/lib/php/session) is not within the allowed path(s): (/home/myaccount/:/tmp:/var/tmp:/opt/alt/php74/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php74/lib/php/).

As you can see, the PHP8.1 folder is not in the allowed paths. How can I change this? Is it ok to add the given path somewhere (feels not ok…), or can I use the /var/tmp folder to store the PHP sessions (that one is in an allowed path). or is that option not secure.

Never seen this before. Already tried to empty the cache folder without any luck.

There was a thread on this problem within the last week or two.

To summarise

  • its configured through the host cPanel php settings
  • if you did a composer install, it can be more complicated

Hi JohntheFish!

Thanx for you reply. I use DirectAdmin, but that should be the same. I will take a look if/when/where I can configure this for this specific PHP install.