3

Migrated a Drupal 8 site to another server running apache2 PHP 5.5.9 (should be supported). Apache returns 500 when index.php requested, but no errors are logged anywhere. I tested by forcing an intentional PHP error in index.php and the log contains PHP errors.

I also excluded database connection problems. Taking settings.php out redirects me correctly to /core/install.php and no error is thrown.

10
  • 1
    sounds like a folder/file permission problem ... can you see /robots.txt ?
    – GiorgosK
    Jul 4, 2018 at 10:29
  • Yes, can http request /robots.txt
    – BrrBr
    Jul 4, 2018 at 10:31
  • Than check that your server can handle php properly and file and folder permissions or check the apache and or error logs (perhaps somewhere in /var/log ?)
    – GiorgosK
    Jul 4, 2018 at 10:42
  • As mentioned above, enforcing a PHP error works, error log is written correctly. A standalone test PHP scripts in same directory a works.
    – BrrBr
    Jul 4, 2018 at 10:45
  • It's probably not a PHP error then. Remove .htaccess and verify you can/can't access /index.php
    – Clive
    Jul 4, 2018 at 11:11

1 Answer 1

0

If domain name is changed for new server, you need to clean cache entries. Try using truncate commands for cache tables and confirm back. You need to have database backup before cleaning tables as well.

3
  • all cache tables manually truncated, including sessions table. Still same 500
    – BrrBr
    Jul 5, 2018 at 10:13
  • Try with one more alternate server using another php version such as 7. it may seems to not working due to any custom function which may be deprecated. Jul 27, 2018 at 6:49
  • You can also use it on local xampp or wamp latest version and check apache log for new server if issue persist. Jul 27, 2018 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.