I had a test installation of nextcloud that I deleted. I deleted the database, the install directory in /var/www and the data directory.
Today I decided to reinstall the test instance. I used the same URL and passwords. I downloaded the software from
and unpacked it in /var/www/nextcloud. I renamed this directory to /var/www/testcloud.
Inside that directory I ran the installer with
sudo -u www-testcloud php8.1 occ maintenance:install --database "mysql" --database-name "cloud_test" --database-user "nextcloud" --database-pass "mypassword" --admin-user "myadmin" --admin-pass "myadminpassword"
This works so far. However, when I start the instance in the web browser, I get a blank screen. In the log files I get a lot of messages like this:
Failed opening '/var/www/otherinstance/apps/theming/lib//ImageManager.php' for inclusion (include_path='/var/www/testcloud/3rdparty/pear/archive_tar:/var/www/testcloud/3rdparty/pear/console_getopt:/var/www/testcloud/3rdparty/pear/pear-core-minimal/src:/var/www/testcloud/3rdparty/pear/pear_exception:/var/www/testcloud/apps
Why the reference to /var/www/otherinstance ??? That instance exists and works, but has nothing to do with my test instance. I already deleted the browser cache, searched the database and scanned all directories. Nowhere it is referenced. It is excluded by open_basedir.