mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #286] install instructions lack app_data folder #248
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#248
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @ehanuise on GitHub (Sep 26, 2018).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/286
Originally assigned to: @jasonmunro on GitHub.
I noticed this error in the server logs. Apparently, the theme.ini isn't in the open basedire allowed set :
Wed Sep 26 10:16:51.133036 2018] [php7:warn] [pid 19627] [client XXXXXXXXXXXXXXX:62417] PHP Warning: is_readable(): open_basedir restriction in effect. File(/var/lib/hm3/app_data/themes.ini) is not within the allowed path(s):
(/usr/local/share/cypht:/tmp:/dev/urandom:/var/lib/hm3/users:/var/lib/hm3/attachments)
in /usr/local/share/cypht/modules/core/functions.php on line 478,
referer: XXXXXXXXXXXX
I installed according to the instructions, downloaded via the script, and setup in /usr/local/share/ with data in /var/lib/hm3.
There was no /var/lib/hm3/app_data folder.
I manually created it, chowned it to www-data and now no more errors. (yet, it is empty)
@jasonmunro commented on GitHub (Sep 26, 2018):
Just fixed the install instructions, thanks for the feedback! This error is actually a bit misleading. If you try to check if a file is readable, and it's directory path does not exist on the filesystem, AND open basedir restrictions are in effect - you get this weird error.
The themes module allows you to add your own themes and define them in a custom ini file that belongs in the app_data folder. So the code is checking for that file, but throws this warning because the directory was not created. As long as the directory exists, we can check for the presence of the file with no warning which is why it cleared up once you created it.