NO Permission to post/upload images on new book #5428

Closed
opened 2026-02-05 10:03:40 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @doguibnu on GitHub (Sep 16, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hello!

I installed BookStack on Rocky Linux 9.6. All is working well. When I try to post/upload image (.png) on the new book, bookstacks shows message that no permission to do it.

The PHP-FPM is 8.4 version. I did check the php.ini

memory_limit = 512M
file_uploads = On
upload_max_filesize = 30M
max_file_uploads = 100

The path /path/bookstack/public/uploads/images have the 775 permission for user book:book on the bookstack directory

I am creating the book with admin bookstack user

Still can not post/update image (.png) inside.

Please, Somebody can help me!

Thank you

Douglas

Exact BookStack Version

v25.07.2

Log Content


Hosting Environment

PHP 8.4

Originally created by @doguibnu on GitHub (Sep 16, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario Hello! I installed BookStack on Rocky Linux 9.6. All is working well. When I try to post/upload image (.png) on the new book, bookstacks shows message that no permission to do it. The PHP-FPM is 8.4 version. I did check the `php.ini` ``` memory_limit = 512M file_uploads = On upload_max_filesize = 30M max_file_uploads = 100 ``` The path `/path/bookstack/public/uploads/images` have the 775 permission for user `book:book` on the bookstack directory I am creating the book with admin bookstack user Still can not post/update image (.png) inside. Please, Somebody can help me! Thank you Douglas ### Exact BookStack Version v25.07.2 ### Log Content ```text ``` ### Hosting Environment PHP 8.4
OVERLORD added the 🐕 Support label 2026-02-05 10:03:40 +03:00
Author
Owner

@doguibnu commented on GitHub (Sep 17, 2025):

Hello!

I solved the problem

In my scenario bookstack is instaled in:

/var/www/html/bookstack

Fix apache user permission on directory;

chown -R apache:apache /var/www/html/bookstack`

Fix access permissions bookstack diretory:

chmod -R 755 /var/www/html/bookstack

Fix access permissions upload directory:

chmod -R 775 /var/www/html/bookstack/public/uploads

SELinux configuration storage directory:

chcon -R -t httpd_sys_rw_content_t /var/www/html/bookstack/storage

Upload directory:

chcon -R -t httpd_sys_rw_content_t /var/www/html/bookstack/public/uploads

To persist after reload or reboot

 semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/bookstack/storage(/.*)?"
 semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/bookstack/public/uploads(/.*)?"
 restorecon -Rv /var/www/html/bookstack/

Restart apache service (httpd):

systemctl restart httpd

After these steps you can post/copy image on new book edition.

Thank you!

Douglas

@doguibnu commented on GitHub (Sep 17, 2025): Hello! I solved the problem In my scenario bookstack is instaled in: ``` /var/www/html/bookstack ``` Fix apache user permission on directory; ``` chown -R apache:apache /var/www/html/bookstack` ``` Fix access permissions bookstack diretory: ``` chmod -R 755 /var/www/html/bookstack ``` Fix access permissions upload directory: ``` chmod -R 775 /var/www/html/bookstack/public/uploads ``` **SELinux configuration storage directory**: ``` chcon -R -t httpd_sys_rw_content_t /var/www/html/bookstack/storage ``` `Upload directory`: ``` chcon -R -t httpd_sys_rw_content_t /var/www/html/bookstack/public/uploads ``` To persist after `reload` or `reboot` ``` semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/bookstack/storage(/.*)?" semanage fcontext -a -t httpd_sys_rw_content_t "/var/www/html/bookstack/public/uploads(/.*)?" restorecon -Rv /var/www/html/bookstack/ ``` Restart `apache` service (httpd): ``` systemctl restart httpd ``` After these steps you can post/copy image on new book edition. Thank you! Douglas
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5428