Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Login to admin shuts down Apache

    I've never had this issue before. I have a local server setup on a Windows Machine - Windows XP Home Edition. I'm running Apache 1.3.34, PHP 4.4.2 and My SQL 5. Several months ago, I installed ZenCart onto my local server for development purposes - I can't remember what version it was, but it ran just fine. Then I heard that a new version of ZenCart was out, and it was all into the tableless design - which rocks, because the last version I had I had to hack to death to get rid of all those icky tables. So I downloaded it - it was the one dated 9/4/2006. I never got around to installing it until last night. Everything went fine - I just deleted the old one, even dropped the complete database and started completely fresh. I installed it, everythign goes smoothly - until I try to log into the admin panel. When I did that, Apache "encountered an error" and completely shut down. It would not start up again until I completely shut down my computer and restarted it. I thought it was a fluke and tried again - and when I tried to log in, it shut down Apache again.

    I rebooted, came to the zencart website, found out there's a new version to download (I figured maybe I had a corrupt file or something), I downloaded it. I deleted all my old files, again dropped the database tables and started fresh and clean. Unzipped the new zencart (dated 10/27/2006) and proceeded to install. Everything went fine. Until - yet - again - when I tried to login to the admin panel, Apache shuts down again.

    This isn't looking good. If it does this on my development server, what's it gonna do on the real thing? (Actually, it'll probably work! LOL)

    I don't understand, though, why it would be shutting down my Apache server. it's getting extremely annoying. It worked fine before, with the old version. Would anyone know why it would suddenly be doing this? or am I gonna have to revert back to the old one I've got and start hacking away at core files to remove the tables?

  2. #2
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    Oh, by the way, the error log info might help... I should note that, althought I get the "Apache encountered an error and must close" thing, it happens twice. I clik "OK" the first time and the window pops up again. I click "Ok" again, but my Apache window is still open and I have to manually close it. SO it even gets hung up on closing itself.

    [Tue Oct 31 08:49:36 2006] [error] PHP Warning: main(DIR_WS_INCLUDESauto_loaders/config.core.php): failed to open stream: No such file or directory in c:\\websites\\zencart\\includes\\application_top.php on line 90
    [Tue Oct 31 08:49:36 2006] [error] PHP Warning: main(): Failed opening 'DIR_WS_INCLUDESauto_loaders/config.core.php' for inclusion (include_path='.;c:\\php\\includes;c:\\php\\PEAR') in c:\\websites\\zencart\\includes\\application_top.php on line 90
    [Tue Oct 31 08:49:36 2006] [error] PHP Warning: dir(DIR_WS_INCLUDESauto_loaders): failed to open dir: Invalid argument in c:\\websites\\zencart\\includes\\application_top.php on line 91
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
    Character set '#33' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
    Apache server shutdown initiated...
    Apache server shutdown initiated...

  3. #3
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    Another note (yes, I am actively trying to figure this out on my own, but *ANY* input would be appreciated) - I've already seen a thread here on the boards (http://www.zen-cart.com/forum/showthread.php?t=47657) that says my configuration file is blank. For the record, it is not. There's a *bunch* of stuff in there. I checked both files: admin/includes/configure.php (set as "read-only") and the includes/configure.php file (also set ans "read-only") - both have tons of stuff in there.

    Also, it was suggested that the .htaccess files be renamed as backups to see if that helps - it only made it worse. Now I can't get to the admin page at all before Apache completely shuts down. (at least before, I could login - it was just when I hot the button that it decided to shut down. Now it won't even go to the login page.)
    Last edited by doodlebee; 31 Oct 2006 at 03:18 PM.

  4. #4
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    More investigations produce interesting results...

    Now a mysterious file appears in my "logs" folder of my apache program, called "httpd.pid". I've discovered from the Apache site that this file is called a "gnat" and puts a code in it to let you know what error was encountered. I've had two so far (edit: make that three):

    2944, 2724 and 676 (which is apparently part of 674). According to the Apache site...

    2944:access to requested document name
    (yeah, doesn't seem like a complete error message, does it? but that's it!)

    2724:a permanent redirect (status code 301) to a non-existent file produces a status code 403 (HTTP_FORBIDDEN) instead of 404 (HTTP_NOT_FOUND)

    676 has no message with it, but is marked as a "severe" bug, and part of 674. 674 says:Environment variable REMOTE_USER not being set.

    Sooo..some kind of redirection issue - again if anyone could shed some light, it'd be appreciated.

  5. #5
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Login to admin shuts down Apache

    one issue I see is from your first post

    main(DIR_WS_INCLUDESauto_loaders/config.core.php)

    looks like you have an error in your configure.php file

    looks like this definition DIR_WS_INCLUDES is missing

    did you do a total fresh install with 1.3.6?

    if not I would suggest wiping the entire works,
    then starting with a fresh version of 1.3.6
    letting the installer fill in the url and path information
    Zen cart PCI compliant Hosting

  6. #6
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    >>did you do a total fresh install with 1.3.6?<<

    Yes, I did. Wiped the whole thing - erased all files and dropped the database completely. Then I thought maybe it was a corrupted file in the download, so I re-downloaded it, wiped everything clean again, and started over. Same thing.

    >>letting the installer fill in the url and path information<<

    Did that too. Twice.

  7. #7
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Login to admin shuts down Apache

    you seem to have a define missing
    look in the admin/includes/configure.php
    looks like the define for
    DIR_WS_INCLUDES
    is missing
    Zen cart PCI compliant Hosting

  8. #8
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    Nope - it's there...line 50:

    define('DIR_WS_INCLUDES', 'includes/');

    ...

    (edit) interestingly enough, when I add a slash to that line:

    define('DIR_WS_INCLUDES', '/includes/');

    Apache doesn't shut down. Instead, I just get a PHP error.
    Last edited by doodlebee; 31 Oct 2006 at 04:19 PM.

  9. #9
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    Um...oops. Error messages:

    Warning: main(/includes/auto_loaders/config.core.php): failed to open stream: No such file or directory in c:\websites\zencart\admin\includes\application_top.php on line 127

    Warning: main(): Failed opening '/includes/auto_loaders/config.core.php' for inclusion (include_path='.;c:\php\includes;c:\php\PEAR') in c:\websites\zencart\admin\includes\application_top.php on line 127

    Warning: dir(/includes/auto_loaders): failed to open dir: Invalid argument in c:\websites\zencart\admin\includes\application_top.php on line 128

    Fatal error: Call to undefined function: zen_get_languages() in c:\websites\zencart\admin\index.php on line 25

  10. #10
    Join Date
    Jan 2006
    Posts
    229
    Plugin Contributions
    0

    Default Re: Login to admin shuts down Apache

    Well, I got rid of the MySQL database error, at least (turns out it had nothing to do with the ZenCart installation - a look at my error logs show that I've had that problem for a loooong time - it was an easy fix, though.)

    Now, I took the slash back out to see what would happen, and Apache now shuts down again when I try to open the /admin directory. But now nothing is being recorded in the error logs at all. Interesting. But it's still making Apache shut down.

    I wonder what this issue could possibly be?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Login required by admin to browse when Down-for-maintenance
    By mc12345678 in forum General Questions
    Replies: 4
    Last Post: 2 Apr 2016, 02:41 AM
  2. store / admin login has gone down
    By page3nh in forum General Questions
    Replies: 1
    Last Post: 28 Feb 2010, 11:04 PM
  3. Cant login after Apache upgrade
    By drzimp in forum Installing on a Linux/Unix Server
    Replies: 23
    Last Post: 24 May 2006, 09:54 AM

Posting Permissions

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