Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on Cannot access board due to lost file in the Shared & Semi-Dedicated forum
After the servers were hacked the other day, I have been unable to access our board. I get this message: Warning: main(./admin/config.php) [function.main]: failed to ...

  1. #1
    JPC Member
    Join Date
    Mar 2003
    Posts
    3

    Cannot access board due to lost file

    After the servers were hacked the other day, I have been unable to access our board.

    I get this message:

    Warning: main(./admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/glassmav/public_html/forum/global.php on line 118

    I don't know how this was deleted, but it is gone. I need to put it back and have no clue on how to do that. I have been all over the CP and don't see what I need to do. I have filed a support ticket, but haven't got an answer yet.

    Can someone please advise me, in baby steps?

    The admin used to be opened in a browser window and it was password protected.

    Thanks in advance.
    Cindy

  2. #2
    Like a star... Julian Muñoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,399
    What's the name of your forum software? What's on your line 118 on global.php ?
    Julian D. Muñoz - LANeros.com

  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775

    Re: Cannot access board due to lost file

    Originally posted by cindyd
    After the servers were hacked the other day, I have been unable to access our board.

    I get this message:

    Warning: main(./admin/config.php) [function.main]: failed to create stream: No such file or directory in /home/glassmav/public_html/forum/global.php on line 118

    I don't know how this was deleted, but it is gone. I need to put it back and have no clue on how to do that. I have been all over the CP and don't see what I need to do. I have filed a support ticket, but haven't got an answer yet.

    Can someone please advise me, in baby steps?

    The admin used to be opened in a browser window and it was password protected.

    Thanks in advance.
    Cindy
    Go in and change the permission[s] on config.php to 666. It probably went to 644 when they did the restore and it cannot be written to now. You might have to CHMOD the /admin/ directory also. I'd just try doing the config.php file first though.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Oops! Are you saying config.php is gone altogether?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    JPC Member
    Join Date
    Mar 2003
    Posts
    3
    Originally posted by Julian Muñoz
    What's the name of your forum software? What's on your line 118 on global.php ?
    On line 118 is: require('./admin/config.php');

    the forum software is Vbulletin

    Go in and change the permission[s] on config.php to 666. It probably went to 644 when they did the restore and it cannot be written to now.

    Where do I change the permissions?


    [b]You might have to CHMOD the /admin/ directory also. I'd just try doing the config.php file first though./b]

    What does CHMOD mean?

    As if you can't tell, I know very, very little about this kind of thing.
    Thanks for your help.
    Cindy

  6. #6
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Originally posted by cindyd
    On line 118 is: require('./admin/config.php');

    Where do I change the permissions?

    What does CHMOD mean?
    I'm going to defer to JagPC, cindyd. I'm not in a position to offer support of this nature --- obviously I cannot access your account and so forth, like they can --- and that's probably what it's going to take to fix your problem[s].

    It appears that 'global.php' needs 'config.php' before it can proceed with whatever it is doing. It cannot find it, or cannot write to it, so it stops and gives you the error message[s]. However, that doesn't necessarily mean 'config.php' doesn't exist. Whenever I get these kinds of error messages, it usually means it (global.php in this case) cannot write to the other file (config.php in this case). This is usually because the permission[s] for that file (config.php in this case) are not set to allow it to be written to. That's where the CHMOD command comes in. It allows you to change the permission[s] on such things.

    There are different ways to CHMOD files, but I usually use a FTP client called WS_FTP Pro to do it. I'm as lazy as anyone, and it's just a click-click-click with a mouse to CHMOD things, so...

    Anyway, I think you need more help than I am able to offer here. If it was me, I'd start a support ticket and let JagPC Support handle it.

    Sorry I couldn't have been of more help. Good luck!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  7. #7
    JPC Member
    Join Date
    Mar 2003
    Posts
    3
    Thanks, I have sent them a request for help.

  8. #8
    Like a star... Julian Muñoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,399
    YEah, it looks like global.php can't read config.php. Try to delete that file and reupload it again from your vbulletin package. Remember that you should reconfigurate it with your db settings
    Julian D. Muñoz - LANeros.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •