Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Server Error 500 After Migration

I've just setup a new VPS running cPanel, centOS 7, Apache 2.4 & PHP 5.5.
After migrating all sites from old server all seem to be working fine just the odd subdomain or domain.com/subfolder throws out "Server Error 500"!

Also if I type a domain like "domain.comblahblah it usually goes to google search but now just hangs on loading. Can anyone advise please? Would really appreciate the help!

Comments

  • agentmishraagentmishra Member, Host Rep

    try out reconfiguring/rebuilding apache using the easyapache

    then check out for the .htaccess files.

  • Also check cpanel error logs.

  • I have reconfigured apache using Easy Apache. .htaccess files all look fine.

  • Look for the error in /usr/local/cpanel/apache/logs/error_log

  • linuxthefishlinuxthefish Member
    edited November 2015

    When you connect a site giving a 500 error (lets say domain.com) does the request appear in /usr/local/apache/logs/access_log or in /usr/local/apache/domlogs/domain.com ? If it appears in the former then it points to a vhost issue, or an error in your vhost config.

    Check also /usr/local/apache/logs/error_log and see what the error is. Also try recompiling easyapache back to the basic profile, and running /scripts/rebuildhttpdconf script

  • Rebuilt Apache but still no joy!

  • /usr/local/apache/logs/access_log

    127.0.0.1 - - [08/Nov/2015:19:09:47 +0000] "GET / HTTP/1.0" 200 111
    127.0.0.1 - - [08/Nov/2015:19:10:01 +0000] "GET /whm-server-status HTTP/1.0" 200 6583
    127.0.0.1 - - [08/Nov/2015:19:10:01 +0000] "GET /whm-server-status HTTP/1.0" 200 6583
    127.0.0.1 - - [08/Nov/2015:19:15:01 +0000] "GET /whm-server-status HTTP/1.0" 200 6493
    127.0.0.1 - - [08/Nov/2015:19:15:01 +0000] "GET /whm-server-status HTTP/1.0" 200 6493
    185.10.107.69 - - [08/Nov/2015:19:18:43 +0000] "GET /index.php?route=product/product&path=68&sort=p.model&order=DESC&product_id=224 HTTP/1.0" 404 10249
    185.10.107.69 - - [08/Nov/2015:19:18:43 +0000] "GET /index.php?route=product/product&path=68&sort=p.model&order=DESC&product_id=224 HTTP/1.0" 404 10249
    127.0.0.1 - - [08/Nov/2015:19:19:08 +0000] "GET /index.html HTTP/1.1" 200 111
    127.0.0.1 - - [08/Nov/2015:19:19:08 +0000] "GET /index.html HTTP/1.1" 200 111
    127.0.0.1 - - [08/Nov/2015:19:19:08 +0000] "GET /cgi-sys/cp_ea3_cgi_test.cgi HTTP/1.1" 200 23
    127.0.0.1 - - [08/Nov/2015:19:19:08 +0000] "GET /cgi-sys/cp_ea3_cgi_test.cgi HTTP/1.1" 200 23
    127.0.0.1 - - [08/Nov/2015:19:20:01 +0000] "GET /whm-server-status HTTP/1.0" 200 4015
    127.0.0.1 - - [08/Nov/2015:19:20:01 +0000] "GET /whm-server-status HTTP/1.0" 200 4015
  • /usr/local/apache/logs/error_log

    [Sun Nov 08 19:19:26.106617 2015] [mpm_prefork:notice] [pid 16499] AH00169: caught SIGTERM, shutting down
    [Sun Nov 08 19:19:28.002808 2015] [suexec:notice] [pid 16614] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Sun Nov 08 19:19:28.003001 2015] [:notice] [pid 16614] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
    [Sun Nov 08 19:19:28.003008 2015] [:notice] [pid 16614] ModSecurity: APR compiled version="1.5.2"; loaded version="1.5.2"
    [Sun Nov 08 19:19:28.003014 2015] [:notice] [pid 16614] ModSecurity: PCRE compiled version="8.36 "; loaded version="8.36 2014-09-26"
    [Sun Nov 08 19:19:28.003026 2015] [:notice] [pid 16614] ModSecurity: LUA compiled version="Lua 5.1"
    [Sun Nov 08 19:19:28.003029 2015] [:notice] [pid 16614] ModSecurity: LIBXML compiled version="2.9.2"
    [Sun Nov 08 19:19:28.003032 2015] [:notice] [pid 16614] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
    [Sun Nov 08 19:19:28.025103 2015] [auth_digest:notice] [pid 16615] AH01757: generating secret for digest authentication ...
    [Sun Nov 08 19:19:29.006653 2015] [mpm_prefork:notice] [pid 16615] AH00163: Apache/2.4.16 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
    [Sun Nov 08 19:19:29.006720 2015] [core:notice] [pid 16615] AH00094: Command line: '/usr/local/apache/bin/httpd'
  • Ran /scripts/rebuildhttpdconf and get this

    info [rebuildhttpdconf] Missing owner for domain server1.domain.com, force lookup to root
    Built /usr/local/apache/conf/httpd.conf OK

    Still having the issue!

  • @n1kko said:
    Ran /scripts/rebuildhttpdconf and get this

    info [rebuildhttpdconf] Missing owner for domain server1.domain.com, force lookup to root
    > Built /usr/local/apache/conf/httpd.conf OK

    Still having the issue!

    That error fine, i sent you a PM regarding this

  • PMD you back. Thanks

  • Have you installed mod_pagespeed? If so, try disabling it via .htaccess.

  • ExpertVMExpertVM Member, Host Rep

    grep error /usr/local/apache/logs/error_log

  • linuxthefishlinuxthefish Member
    edited November 2015

    cool

  • Turns out my issue is with the PHP script as it was moved from a server with apache 2.2 & PHP 5.4 to Apache 2.4 & PHP 5.5 it's throwing Server error 500.

  • So the script ran fine on PHP 5.4 but not 5.5 I need it running so will it hurt to downgrade PHP to 5.4?

  • century1stopcentury1stop Member
    edited November 2015

    there's a slight difference with php 5.5, your script will need to be patched. moving back to 5.4 should not pose any issues

  • Thanks

  • agentmishraagentmishra Member, Host Rep

    @n1kko said:
    Turns out my issue is with the PHP script as it was moved from a server with apache 2.2 & PHP 5.4 to Apache 2.4 & PHP 5.5 it's throwing Server error 500.

    did i not tell you to reconfigure/recompile apache...

    also you have done a blunder...

    the logs you have pasted contains your ip...

    nect time you need to be carefull and for now you can edit your comment and remove your ip...

  • You did and now I'm on PHP 5.4 with no issues. No blunder my IP is not in any of my posts!

Sign In or Register to comment.