Redirects to setup every time
Before submitting your issue, please make sure that you've checked the checkboxes below.
- [x] I am running the latest release version of Cachet.
- [x] I am running at least PHP 5.5.9. You can check this by running
php -v. - [x] I have ran
rm -rf bootstrap/cache/*.
Expected behaviour
- Cachet should go to Dashboard after it's setup once
Actual behaviour
- Cachet shows setup page every time regardless of previous setup
Is anyone actually using the latest release of this project (v2.3.6) because it just doesn't work! After going through the setup, it goes back to setup again every time. When having a quick look, SetupAlreadyCompleted middleware checks for setting.app_name config but that's never set as part of the setup process. When manually inserting app_name in config/setting.php, it works.
I also noticed that none of the settings are saved when you update, e.g. site name, URL.. etc. Is it a permissions issue? I even tried changing permissions on config/* to 775 but didnt do good.
Same problem here.
I have 2.3.6 working with MySQL (I can't get it to work with Sqlite).
Make sure you chmod 777 storage before you run through the setup. I think that fixed it for me, but it is hard to say what got it working because I tried about 15 times to get it installed, trying different things each time.
My suggestion is to start fresh. Here are the commands that seemed to work for me on one of the last few times I installed it. I saved my .env file in my home directory so I could quickly copy it over to the cloned repo, which is what the cp ~/env.txt ./.env line is. You should edit your env at that point and add your values.
cd /var/www
git clone https://github.com/cachethq/Cachet.git
cd Cachet
git checkout v2.3.6
chmod -R 777 storage
chmod -R 777 bootstrap
cp ~/env.txt ./.env
chmod 777 .env
composer install --no-dev -o
php artisan key:generate
php artisan app:install
rm -rf bootstrap/cache/*
Then open your browser and go to the site (assuming you set up the virtual host config already)
EDIT: mode 777 is probably not secure. I haven't dug through the real permissions required yet. I am assuming the apache process user needs write permission where I 777'd. I just wanted to get it working. It is on an intranet so not a huge security hole for me.
I've followed steps from @ccosentino and install works fine now (albeit I also had to change permissions for storage/logs).
For anyone anyone coming across this issue and not being able to add subscribers, please note you also need to have a value for MAIL_NAME in you .env. file - otherwise subscription is disabled.
Why is the documentation so outdated? Its taken me a good number of hours and i'm still not up and running, also experiencing this redirect.
@shaun-ba what version are you using?
It was a permission issue for me too. Refer to the comment by @ccosentino to solve it.
For those who aren't having permission issues, try running
php artisan up
to disable the setup redirect. Worked for me, but YMMV.
I had this issue as well. For anyone else I went to the root of the application and ran:
chown -R apache:apache *
chmod -R 775 *
Then went through the setup again. Better than 777.
Would be nice to include in install documentation.
I had this issue as well. For an sqlite setup I had to change the CACHE_DRIVER=database SESSION_DRIVER=database in addition to the permissions on .env but as noted above YMMV