Create installation-CentOS-7.sh #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
I created this script to install on the "clean" CentOS 7 system.
Everything seems to work, but someone else needs to check it out.
Also, please specify to which directories Apache should have access (read, read/write, cache ...). I am not sure that I've set up the correct SELinux context.
bookstack/
├── app
├── artisan
├── bootstrap
├── composer.json
├── composer.lock
├── composer.phar
├── config
├── database
├── LICENSE
├── package.json
├── package-lock.json
├── phpcs.xml
├── phpunit.xml
├── public
├── readme.md
├── resources
├── routes
├── server.php
├── storage
├── tests
├── themes
├── vendor
├── version
└── webpack.config.js
@ssddanbrown where can I find actual nginx BookStack config?
I can add choice what web-server to use.
Added option to choose
web-server: Apache2 or nginx
database: MySQL or MariaDB
Thanks @Mant1kor for this pull request. I'll need to find some time to review this. Might be a while since I'm unfamiliar with CentOS.
I'm in two minds about offering database and web server options. It's good from a technical-user point of view but it would complicate support and maintenance. I'll have a think.
I'm a bit surprised to see a script faking interaction for installs:
github.com/BookStackApp/devops@3c57877057/scripts/installation-CentOS-7.sh (L120-L127)Is this standard practice for CentOS or can these packages be installed non-interactively? This way seems a little brittle, Only needs the messaging to change a little before potentially breaking.
@ssddanbrown MariaDB is very similar to MySQL.
I didn't face any problem, at least in version 10.3.
Now I can't make another working solution. MySQL 5.7 have default random temp password. My first try:
First mysql login and ALTER USER complete successfully, but second login fail. I don't know why yet.
I'll try to find better solution and update the script.
Changed database config section to more stable (but less secure).
@ssddanbrown one more question. Is it necessary to set 755 permission to bootstrap/cache public/uploads storage? Isn't next commands be more secure?
and
umaskif neededThank for offering this @Mant1kor and sorry for my very late response, And apologies for forgetting about this when adding the other CentOS7 script I eventually did add to the repo.
I've made the decision though to stick to focused, non-branching, Ubuntu LTS script to keep any official support of maintenance achievable.
Pull request closed