How to solve 500 and 404 error in #CentOS #Fedora

Good night mates,

I am newbie here. I have find Grav because I was looking for an alternative at overweight’s Wordpress CMS. I just only looking for a simple, easy and very lightweight CMS. So just I found Grav.

However, I had a lot of problems with Grav to get to work in CentOS and Fedora.
I’m going to explain what I had to do if somebody has the same problem, How to resolve it.

1º Download grav-admin.zip and extract it into /var/www/html
2º Modify permissons as
https://learn.getgrav.org/troubleshooting/permissions#different-accounts-fix-permissions-manually>documentation says
3º Add your user into apache group -> gpasswd -a $USER apache
4º Change owner’s direcoty -> chown -R apache:$USER /var/www/html/grav-admin
5º Edit /etc/httpd/conf/httpd.conf
Go to <Directory /var/www/html> and replace “AllowOverride none” -> into -> "AllowOverride All"
6º Restart the Apache service -> systemctl restart httpd
7º Apply SELinux policies changes to get to works (into 11 policies to changes)
ausearch -c ‘php-fpm’ --raw | audit2allow -M my-phpfpm
semodule -X 300 -i my-phpfpm.pp
8º You can see Grav setup and after it without any troubles.

Software you need to install on it:
php-pecl-zip-1.15.1-3.fc27.x86_64
php-channel-symfony-1.3-11.fc27.noarch
php-pear-1:1.10.5-3.fc27.noarch
php-process-7.1.12-1.fc27.x86_64
php-symfony-YAML-1.0.6-11.fc27.noarch
php-xml-7.1.12-1.fc27.x86_64
php-opcache-7.1.12-1.fc27.x86_64
php-pecl-xdebug-2.5.5-3.fc27.x86_64
mod_ssl-1:2.4.29-1.fc27.x86_64
php-gd-7.1.12-1.fc27.x86_64
php-mbstring-7.1.12-1.fc27.x86_64
php-pecl-apcu-5.1.8-4.fc27.x86_64
php-7.1.12-1.fc27.x86_64
php-cli-7.1.12-1.fc27.x86_64
php-common-7.1.12-1.fc27.x86_64
php-fpm-7.1.12-1.fc27.x86_64
php-json-7.1.12-1.fc27.x86_64

I hope help you if you had this problem.

Did you get this sorted via Slack? I remember similar chat there.

Yup, but I want to share the rest of people :smiley: