Page not found when I try to access my custom module I create a custom module in Drupal 8. It install/uninstall smoothly. But when I try to access that module then I'm getting that message 

"Page Not Found." -
Failed to load resource: the server responded with a status of 404 (Not Found)


For debuging I made these entries in my setting.php file.

error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$conf['error_level'] = 2;


But getting no luck. Is there any other ways to debug my code in drupal 8.

Here is my routing file code:

custom_module.admin:
  path: '/admin/custom_module'
  defaults:
    _controller: '\Drupal\custom_module\CustomModuleController::custInformation'
    _title: 'Custom Module Title'
  requirements:
    _permission: 'access information'

custom_module.site_page:
  path: '/custom_module'
  defaults:
    _title: 'Custom Module Title'
    _controller: '\Drupal\custom_module\CustomModuleController::custInformation'
  requirements:
    _permission: 'access information'


and link.menu.yml file code:

custom_module.admin:
  title: 'Custom Module Title'
  parent: system.admin
  description: 'Brief description.'
  route_name: custom_module.admin
custom_module.site_page:
  title: 'Custom Module Title'
  route_name: custom_module.site_page
  menu_name: footer
  enabled: 0


&amp; controller file

namespace Drupal\custom_module\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * Controller routines for contact routes.
 */
class CustomModuleController extends ControllerBase {

  /**
   * Render a list of entries in the database.
   */
  public function custInformation() {
    $header = array('Name');
        $rows[] = array("John");
    $content['table_brief'] = array(
      '#type' =&gt; 'table',
      '#header' =&gt; $header,
      '#rows' =&gt; $rows,
      '#empty' =&gt; t('No entries available.'),
    );
    return $content;
  }
}
There are several reason for "Page not found." I'm sharing the some points may be helpful to someone who face same issue.


Check your php log file. if there is some php error in your code, it also cause page not found. It occur in my case.

Check PHP file location, which you mention in routing file. Sometimes php file location not correct.

Most important point, check yml file for indentation, if indentation is not proper it also cause "page not found" issue.


Check recent log message and try to sort out warning/error if any 


@Kiran Tej, my issue has been resolved. In my case by mistake I placed the file directly inside the 'src' folder. Please read above points may be it helpful to you if your issue not resolved yet.