I am newbie with Linux systems. I follow the tutorial https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7.
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’
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.