Error writing to "config/params/generated_config.php #2073
-
Shlink versionshlink4.0.3_php8.3_dist PHP versionPHP 8.3.4 How do you serve ShlinkSelf-hosted Apache Database engineMariaDB Database version10.6.16-MariaDB-0 ubuntu0.22.04.1 Ubuntu 22.04 Current behaviorWhen i finish the installer prompts and is trying to write to the generated_config.php I get an error In PhpArray.php line 118: Error writing to "config/params/generated_config.php": file_put_contents(config/params/generated_config.php): Failed to open stream: No such file or directory Expected behaviorIt should create and write to that php file as mentioned above, Minimum steps to reproducedoing the basic user setup I did the following sudo apt install ca-certificates apt-transport-https software-properties-common lsb-release -y sudo apt install php8.3 libapache2-mod-php8.3 php8.3-curl php8.3-intl php8.3-gd php8.3-common php8.3-fpm php8.3-common php8.3-mysql php8.3-xml php8.3-apcu -y enable Maria DB 1 - sudo apt install mariadb-server mariadb-client Download dist file wget https://github.com/shlinkio/shlink/releases/download/v4.0.3/shlink4.0.3_php8.3_dist.zip Options chosen [1] Classic web server (Nginx, Apache, etc) Database name [shlink]:
Database host [localhost]:
Database port [3306]:
Database username:
Database password:
Unix socket (leave empty to not use a socket):
Default domain for generated short URLs:
Is HTTPS enabled on this server? (yes/no) [yes]:
What is the default length you want generated short codes to have? (You will still be able to override this on every created short URL) [5]:
Do you want Shlink to resolve the short URL title based on the long URL's title tag (if any)? Otherwise, it will be kept empty unless explicitly provided. (yes/no) [yes]:
Do you want Shlink to redirect short URLs as soon as the first segment of the path matches a short code, appending the rest to the long URL?
Do you want to support short URLs with multi-segment custom slugs? (for example, https://example.com/foo/bar) [Slugs and short codes will support only one segment (https://example.com/foo). Orphan visits will have one of "base_url",
Do you want to support trailing slashes in short URLs? (https://s.test/foo and https://s.test/foo/ will be considered the same) (yes/no) [no]:
How do you want short URLs to be matched?
Provide a GeoLite2 license key. Leave empty to disable geolocation. (Go to https://shlink.io/documentation/geolite-license-key to know how to generate it):
What kind of redirect do you want your short URLs to have? [All visits will always be tracked. Not that good for SEO. Only GET requests will be redirected.]:
How long (in seconds) do you want your redirects to be cached by visitors? [30]:
TRACKINGI left it all default REDIRECTSused my domain QR CODESUsed defaults APPLICATIONWhat is the path from which shlink is going to be served? (It must include a leading bar, like "/shlink". Leave empty if you plan to serve shlink from the root of the domain):
Set the timezone in which your Shlink instance is running (leave empty to use the one set in PHP config):
INTEGRATIONSLeft defaults then get Error writing to "config/params/generated_config.php": file_put_contents(config/params/generated_config.php): This is very fustrating and have spent several days trying to get this to work |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Using I would recommend not running all the commands under |
Beta Was this translation helpful? Give feedback.
-
base path for the Shlink folder - Shortner-Server:/var/www/shlinkio$ cd /var/www/shlinkio/ I can do a video of the settings i'm using |
Beta Was this translation helpful? Give feedback.
-
I have it working finally. I did not know that I had to be in the root folder of where you extracted the dist file. For myself it was cd /var/www/shlinkio and then run sudo -u www-data php8.3 /var/www/shlinkio/vendor/shlinkio/shlink-installer/bin/shlink-installer install for it to work not great and caused me no end of grief to get this to work. |
Beta Was this translation helpful? Give feedback.
I have it working finally.
I did not know that I had to be in the root folder of where you extracted the dist file. For myself it was
cd /var/www/shlinkio
and then run
sudo -u www-data php8.3 /var/www/shlinkio/vendor/shlinkio/shlink-installer/bin/shlink-installer install
for it to work
not great and caused me no end of grief to get this to work.