Error 500 when upload the site files in centos 7 apache

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 system_u:system_r:httpd_t: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_heartmonitor [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’

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @trixpua,

There a couple of issues. Firstly, your server not being able to to resolve shouldn’t be connected to your changes to Apache. It would be either from a local issue like not having internet or any other network issue on the droplet itself.

As for the 500 error, most probably, the files you’ve uploaded are not using the proper ownerships. You can check your Apache error logs to see what the exact source of the problem is. Usually the Apache error log can be found at /etc/apache2/logs/error_log.

Regards, KDSys