Forums / Installing on a Linux/Unix Server / Rename Admin Folder Issue on mediatemple hosting

Rename Admin Folder Issue on mediatemple hosting

Results 1 to 9 of 9
22 Oct 2012, 21:50
#1
nypizza avatar

nypizza

New Zenner

Join Date:
Oct 2012
Posts:
4
Plugin Contributions:
0

Rename Admin Folder Issue on mediatemple hosting

I used my hosting provider's one-click installation, mediatemple.net; they're pretty big and their support is not aware of any issues, so I am assuming it works. I installed. great. I try to access the admin page and get a message about deleting the zc_install folder. I delete it. Try to access admin page, get the message that I need to rename the admin folder. I rename the admin folder. I try to access the admin page and I get the message that it can't find the alert message to display. The error message is:

The requested URL /admin/alert_page.php was not found on this server.

I am using v1.5.0 so the docs say I don't need to mess with the configure.php file(s). I looked inside anyway and none of the v1.3 admin folder lines are in there. Should they be? What am I missing?

mediatemple.net sets this up so that the true path is cart.mysite.com/html/admin/. I have temporarily remaned "admin" to "FUBAR". If I point firefox at cart.mysite.com/html/FUBAR/index.php, I get a file not found in this folder error. If I point firefox at cart.mysite.com/FUBAR/index.php, (omitting the html folder) I get the message above and firefox redirects to cart.mysite.com/admin/alert_page.php.

Thanks in advance for your help,

James
22 Oct 2012, 21:56
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Rename Admin Folder Issue on mediatemple hosting

Post a link i.e.

http ://www .zen-cart.com
22 Oct 2012, 23:49
#3
nypizza avatar

nypizza

New Zenner

Join Date:
Oct 2012
Posts:
4
Plugin Contributions:
0

Re: Rename Admin Folder Issue on mediatemple hosting

Wasn't sure if that was proper or not.

cart.nypizza.cr

cart.nypizza.cr/FUBAR

etc.

Thanks,

James
23 Oct 2012, 00:26
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Rename Admin Folder Issue on mediatemple hosting

Check your admin configure.php file
 define('DIR_WS_ADMIN'
 define('DIR_WS_HTTPS_ADMIN'
 define('DIR_FS_ADMIN'

What is listed for these?
23 Oct 2012, 13:52
#5
nypizza avatar

nypizza

New Zenner

Join Date:
Oct 2012
Posts:
4
Plugin Contributions:
0

Re: Rename Admin Folder Issue on mediatemple hosting

Nothing is listed, those lines do not exist in the includes/configure.php file. I was trying to say that in my original post by referring to these lines as v1.3 admin lines.

So I need to add those lines with the correct FUBAR path?

Below is the entire configure.php:

<?php
/**
* dist-configure.php
*
* @package Configuration Settings
* @copyright Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: dist-configure.php 18698 2011-05-04 14:50:06Z wilt $
* @private
*/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
define('HTTP_SERVER', 'http://cart.nypizza.cr');
define('HTTPS_SERVER', 'https://cart.nypizza.cr');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

// * 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_CATALOG', '/home/137596/domains/cart.nypizza.cr/html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'cart_'); // prefix for database table names -- preferred to be left empty
define('DB_SERVER', 'internal-db.s137596.gridserver.com');
define('DB_SERVER_USERNAME', '********');
define('DB_SERVER_PASSWORD', '******');
define('DB_DATABASE', 'db137596_cart');

// 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', 'none');
define('DIR_FS_SQL_CACHE', '/home/137596/domains/cart.nypizza.cr/html/cache');

Thanks!
James
23 Oct 2012, 14:58
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Rename Admin Folder Issue on mediatemple hosting

The /includes/configure.php and the /admin/includes/configure.php are two different files and not interchangeable. Only the admin version needs DIR_WS_ADMIN defines.
23 Oct 2012, 19:54
#7
nypizza avatar

nypizza

New Zenner

Join Date:
Oct 2012
Posts:
4
Plugin Contributions:
0

Re: Rename Admin Folder Issue on mediatemple hosting

Actually neither the docs nor the two replies here are 100% correct. But the last reply gave me the correct set of files to check, so it is now solved. Thanks!

The problem was that I needed to edit the admin/includes/configure.php to change 3 lines where the admin folder was mentioned:

define('DIR_WS_ADMIN', '/FUBAR/');
define('DIR_WS_HTTPS_ADMIN', '/FUBAR/');
define('DIR_FS_ADMIN', '/home/137596/domains/cart.nypizza.cr/html/FUBAR/');

That solved it. To summarize:

- The install docs are incorrect when they say that for v1.5 there is no need to edit any configure.php file. The file that needs to be edited is admin/includes/configure.php. The three defines that need to change are listed above (the temporary name for my admin folder is FUBAR).

Thanks,

James
23 Oct 2012, 20:14
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: Rename Admin Folder Issue on mediatemple hosting

neither the docs nor the two replies here are 100% correct

I think that you were looking at the incorrect configure file
23 Oct 2012, 21:32
#9
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Posts:
1,818
Plugin Contributions:
2

Re: Rename Admin Folder Issue on mediatemple hosting

nypizza:

The problem was that I needed to edit the admin/includes/configure.php ...vThat solved it.

Glad you were able to get your admin pages working.

I did notice you said you used a third party tool to install Zen Cart. The documentation for Zen Cart installation applies when you use the installation script provided by Zen Cart. Did you try downloading Zen Cart 1.5.0 or 1.5.1 from zen-cart.com and using the installation script provided by Zen Cart?

I am just curious, because the installer provided in the Zen Cart download automatically configures "admin/includes/configure.php" with settings working for 99.99% of installations. Based on the information posted so far in this thread, the mediatemple installation script may have caused the problem you experienced by hard-coded some values.