Ask Your Question
1

Is there a forum or bulletin board installable dnf package for Fedora?

asked 2016-07-26 17:36:56 -0600

paulhr gravatar image

updated 2016-07-27 12:08:11 -0600

Is there a forum or bulletin board installable dnf package for Fedora? I have been trying to get phpBB to install. See this thread if you want details. But there is some issue with permissions that I can not get past.

[edit] It is clear the phpBB forum software does not play well with Fredora and SELunix. I am off to find a different forum app.

Thanks for everyones time.

edit retag flag offensive close merge delete

Comments

I have created a user named phpbb. I added the apache group to phpbb. With no effect. I also checked who else belonged to the apache group. I don't remember creating an apache user or group. I am assuming dnf create the id when httpd was installed. I looked at the /etc/group file. Why does dnf not make the apache group the primary group for the apache user id?

paulhr gravatar imagepaulhr ( 2016-07-27 06:44:02 -0600 )edit
1

You added a user, then you have to set user for that you need to set apache user home dir, plus set the SELinux flags, the flag for that

setsebool -P httpd_enable_homedirs true
setsebool httpd_enable_homedirs true
chcon -R -t httpd_sys_content_t /home/phpbb_user/public_html

look into /etc/httpd/conf.d for the user home settings

aeperezt gravatar imageaeperezt ( 2016-07-27 07:46:14 -0600 )edit

Regarding your edit: What you are saying is not specific to phpBB and not limited to Fedora. You will encounter similar challenges wherever SELinux is in charge of access control. If you plan to run Fedora/Centos/RedHat servers, you better try to understand and navigate SELinux...

florian gravatar imageflorian ( 2016-07-27 12:46:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-07-26 18:58:08 -0600

aeperezt gravatar image

Not that I'm aware. But installed a php web site is easy as long as you follow SELinux settings or you set them properly.

For instance you need to install all you php files inside /var/www/html all the files must be own by apache or another user with the apache group. If it uses mysql as a phpBB does you need to set this SELinux

setsebool -P httpd_can_network_connect_db 1

That will be easy way if you change the folder to home dir folder then you need to add more permits but all is possible.

On worst case you can set SELinux to permisive so you can see how it block what your configure and your can google how to set permissions.

It is important to learn how to deal with SELinux because it is the best you can do to protect your server and website.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-26 17:36:56 -0600

Seen: 190 times

Last updated: Jul 27 '16