Error 500 when upload the site files in centos 7 apache

December 15, 2017 1.1k views
Apache CentOS

I am newbie with Linux systems. I follow the tutorial

And it is all ok, but I can't upload my website files via SFTP, so I change the permission of the folder /var/www/html as follow:

sudo groupadd developer
sudo usermod -a -G developer admin
sudo chgrp -R developer /var/www/html/
sudo chmod -R 2775 /var/www/html/

So I was able to upload the files of the site, but when I trie to access return error 500, I tried to ping the server Ip and domain in windows cmd and it don't reply.

What I am doing wrong?

in the httpd log show this:

[Fri Dec 15 16:36:46.479096 2017] [core:notice] [pid 25443] SELinux policy enabled; httpd running as context systemu:systemr:httpdt:s0
[Fri Dec 15 16:36:46.480880 2017] [suexec:notice] [pid 25443] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
[Fri Dec 15 16:36:46.535462 2017] [auth_digest:notice] [pid 25443] AH01757: generating secret for digest authentication ...
[Fri Dec 15 16:36:46.537160 2017] [lbmethod_heartbeat:notice] [pid 25443] AH02282: No slotmem from mod
[Fri Dec 15 16:36:46.596210 2017] [mpm_prefork:notice] [pid 25443] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Fri Dec 15 16:36:46.596254 2017] [core:notice] [pid 25443] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Be the first one to answer this question.