"Couldn't read config file config.php" even though config.php exists!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MikeG
    New Member
    • Nov 2004
    • 20
    • 3.8.x

    "Couldn't read config file config.php" even though config.php exists!

    I'm getting an error after installation. Looks like php can't find the config.php file even though it is there ...

    Notice: Undefined variable: config in /home/ubuntu/dev/www/vb5/upload/includes/vb5/config.php on line 34

    This is how the original code looks ...
    Click image for larger version

Name:	vb5-config.JPG
Views:	1
Size:	26.1 KB
ID:	3724885

    If I add the full path to the config file, php includes the file just fine ...
    Click image for larger version

Name:	vb5-config-fullpath.JPG
Views:	1
Size:	27.4 KB
ID:	3724886


    Could this be a circular file reference that php doesn't understand? The php file that's being executed is called config.php and the file included is called config.php.

    PHP Version 5.3.10-1ubuntu3.4
    System Linux ubuntu 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64
    Build Date Sep 12 2012 18:42:53
    Server API Apache 2.0 Handler
    Attached Files
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    What about the core/includes/config.php file ?

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74154

      #3
      You need to have a config.php located in your forum root (/) and at /core/includes/. Any other files with the same name are irrelevant as far as setting up the software.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      Related Topics

      Collapse

      Working...