website is showing http 500 error

General support questions
Post Reply
coredreams
Posts: 2
Joined: 2021/09/04 10:50:19

website is showing http 500 error

Post by coredreams » 2021/09/09 16:15:17

I have a domain hosted in centos 7 which we have installed in ec2 instance there was an issue in the google warning few weeks back and now wee have uploaded the new fresh website files to the folder of the centos 7 servers when i go to edge browser it gives http 500 error we have checked domain.conf files as well and it seems the correct one but still it gives the error

can someone help me to fix the issues?

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: website is showing http 500 error

Post by TrevorH » 2021/09/09 16:41:04

You need to start by reading your logs to see what the error is. Start with /var/log/httpd and the log files in there, use ls -lart to list them in date order so you can see which ones have been modified when you hit refresh in your browser and get the error. Other things keep their own logs - php-fpm has files under /var/log/php-fpm, things like laravel keep logs in storage/logs/laravel.log inside the site's docroot itself (maybe it can be moved).

Also check the output from aureport -a and see if there any denials listed with the right timestamp. Use ausearch -nnnn to get more detail about items in the aureport -a output - change nnnn to the number on the right hand end of the aureport line you're interested in.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: website is showing http 500 error

Post by pjsr2 » 2021/09/09 16:52:19

I find it hard to understand your question, partly because you don't explain exactly what you did and partly because your post lacks interpunction. Please respect the readers of your question: take care of proper spelling, start sentences with a capital, end sentences with a full stop and insert commas where needed.


1) Check the log files (in /var/log/httpd).
2) How did you transfer the files? Where they copied or moved? Where did you install them?
3) Did you check the selinux properties of the files?

Post Reply