Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / New Store--Got 404 Admin Not Found

New Store--Got 404 Admin Not Found

Locked

Views: 2,263

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
23 Aug 2006, 6:53 AM
#1
blitz avatar

blitz

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

New Store--Got 404 Admin Not Found

Hello,

I'm trying to move my store from osCommerce to Zen Cart. Starting with another web host, I installed v1.3.0.1 using fantastico. Then I upgraded to v1.3.0.2 by copying the files from the v1.3.0.2 changed file list, ran zc_install and it seemed that everything went well.

Now I want to log in to the admin panel and I'm getting a 404 not found. It looks to me that the files are there and all the permissions are what they're supposed to be (as far as I know), so I don't have a clue about what might be wrong.

Here's the url:
http://www.artprintsnposters.com/

Any ideas?

Thanks,
Ron

Here's the /admin/includes/configure.php (with my username and pw obscured):

<?php // /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // Main webserver: eg, <http://localhost> - should not be empty for productive servers // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> // HTTP_CATALOG_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_CATALOG_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> /* * URLs for your site will be built via: * HTTP_SERVER plus DIR_WS_ADMIN or * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or * HTTP_SERVER plus DIR_WS_CATALOG or * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG * ...depending on your system configuration settings */ define('HTTP_SERVER', 'http://artprintsnposters.com'); define('HTTPS_SERVER', 'https://artprintsnposters.com'); define('HTTP_CATALOG_SERVER', 'http://artprintsnposters.com'); define('HTTPS_CATALOG_SERVER', 'https://artprintsnposters.com'); // Use secure webserver for catalog module and/or admin areas? define('ENABLE_SSL_CATALOG', 'false'); define('ENABLE_SSL_ADMIN', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_ADMIN', '/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_WS_HTTPS_ADMIN', '/admin/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/'); define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_ADMIN', '/home/artprint/public_html/admin/'); define('DIR_FS_CATALOG', '/home/artprint/public_html/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', 'zen_'); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'my_username'); define('DB_SERVER_PASSWORD', 'my_password'); define('DB_DATABASE', 'artprint_zc1'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'database'); define('DIR_FS_SQL_CACHE', '/home/artprint/public_html/cache'); ?>
23 Aug 2006, 6:58 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: New Store--Got 404 Admin Not Found

  1. you're running PHP as CGI ... which might be partially contributing to the problem
  2. what is your server's "errorlog" saying when your "internal server error" message appears? It's an error-500 code, which usually means a problem with .htaccess conflicts on your site
  3. try renaming your /admin/.htaccess or /admin/includes/.htaccess to htaccess_tmp to see if that provides relief. If so, talk to your host about other ways to protect your admin area from unauthorized access
23 Aug 2006, 9:08 AM
#3
blitz avatar

blitz

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Re: New Store--Got 404 Admin Not Found

I extracted a few lines from the log:

File does not exist: /home/artprint/public_html/404.shtml
File does not exist: /home/artprint/public_html/500.shtml
script not found or unable to stat: /home/artprint/public_html/product_info.php
script not found or unable to stat: /home/artprint/public_html/product_reviews_write.php
Premature end of script headers: /home/artprint/public_html/admin/index.php
File does not exist: /home/artprint/public_html/favicon.ico

Fantastico installed two v1.3.0.1 files named product_info.php and product_reviews_write.php into public_html/includes/languages/english/ . This is how I copied them to my pc prior to updating to v1.3.0.2.

The v1.3.0.2 changed list does not contain these two files.

The zipped v1.3.0.2 full fileset includes these two files in the same directory as v1.3.0.1 .

Renaming the .htaccess files did not seem to have any effect.

I wonder if I forgot to do something.

23 Aug 2006, 10:04 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: New Store--Got 404 Admin Not Found

"Premature end of script headers:" errors are common when running PHP as CGI.

Ask your host if there's a way to switch your PHP to normal mode.
or check out the list of certified hosts for Zen Cart (see link at top of page). Their pricing is competitive and service is excellent.

24 Aug 2006, 4:07 AM
#5
blitz avatar

blitz

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Re: New Store--Got 404 Admin Not Found

I can now login to my admin panel. Here's part of my conversation with HostGator:

HostGator - Posted On: 23 Aug 2006 07:59 PM
It is not possible to disable phpsuexec on a single user account so that is not an option. We have countless customers who use the zencart software without issues so I'm sure we'll get you up and running.

The two most common causes for the "Premature end of script headers" message is first a corrupt php file, and secondly whitespace being sent as \n before all header information is sent. If you could show us a page that doesn't load we would be happy to try to debug it for you but I am able to click around and navigate your site without incident.

Bottom line, please provide us with a link to something that isn't working, or steps to recreate an error that you see. From there we'll do whatever we can to get you up and running. If you have any questions or concerns please do not hesitate to contact us.

Best Regards,
(HostGator Support)

Blitz - Posted On: 23 Aug 2006 08:25 PM
OK

In order to even begin to get the store set up, I need to be able to login to the admin panel. Here's the link that doesn't work:

http://www.artprintsnposters.com/admin

As you say, others are probably able to get to their admin panels, and to my knowledge, I haven't done anything except use fantastico to install your version, and then upgrade to the newest version using the Zen Cart installer.

By the way, I left this installed so that it can be rerun, but the file and folder permissions have been CHMOD for /includes/configure.php (444/777) and /admin/includes/configure.php (444/777).

I would appreciate whatever help you could give me. I have nearly 8000 products and 15-20 thousand jpeg images to load along with everything else needed to get the store up and running.

Thanks,
Ron

HostGator - Posted On: 23 Aug 2006 10:49 PM
Hello,
I changed the permissions and can now see the login page @ http://www.artprintsnposters.com/admin
When you upload your images, you will need to break them up into groups of 2000 or less in order to be able to view them/perform operations via ftp. If you need anything else please do not hesitate to contact support.
Best Regards,
HostGator Technical Support

24 Aug 2006, 6:33 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: New Store--Got 404 Admin Not Found

It would be nice if they explained what permissions they changed...