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!
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!