Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I thought there would be more expertice here to help.

Anyway I think I got it covered except for the selinux issues. Please advice if I'm on the right track (LAMP for local development websites, so sites are not accesable from outside):

install Apache, mariadb, php and phpmyadmin

dnf install httpd mariadb mariadb-server php php-cli php-php-gettext php-mbstring php-mcrypt php-mysqlnd php-pear php-curl php-gd php-xml php-bcmath php-zip phpmyadmin

start apache & dbase

systemctl start httpd.service systemctl start mariadb.service

Setup database access


add user to group Apache

usermod -a -G apache $USERNAME

make apache owner and set write access

sudo chown -R apache:apache /var/www

sudo chmod -R 775 /var/www

Make future folders/files the right permissions and make them owned by Apache

sudo chgrp -R apache /var/www

sudo chmod -R g+s /var/www

in httpd.conf change:

Relax access to content within /var/www.

ALLOWOVERRIDE ALL instead of AllowOverride none

<directory "="" var="" www"=""> AllowOverride All <<< -- Change this line # Allow open access: Require all granted </directory>

So everything works now but I still have writing issues. If I do:

sudo setenforce 0

Everything works fine. I can work on files with visual studio code, and I can install extensions within CMS and change config files


What should I do with Selinux? I'm working on this for 2 days now, tested in VM's and real PC's but I can't get the right answer. Seems I can't find anything correct about it. The right answer would be highly appreciated.