Zen Cart Logo
Forums / Upgrading to 1.5.x / configuration problem -

configuration problem -

Views: 2,318

Results 1 to 20 of 20
16 Jun 2015, 7:18 PM
#1
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

configuration problem -

I am upgrading via a fresh install of 1.5.4 - And of Course it does not go as smoothly as I had hoped.

The store is visible but the admin is blank page.. So this is what I have done...

install via the install program. Changed the name of configure.php in both admin/includes and includes folders

Changed the name of the admin file and the permissions.
Changed the configure.php file via filezilla.

See below: Rec a 404 page...

Checked the logs and this is what they said - which is the end of my line of things to do..

https://www.stitchnframeonline.com/zen-cart-v1.5.4/

admin file configure.

define('HTTP_SERVER', 'http://www.stitchnframeonline.com');
define('HTTPS_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');
define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com');
define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');

// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'false');

// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', 'false');

define('DIR_WS_ADMIN', '/myadmin/');
define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/');

// 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_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)
define('DIR_FS_ADMIN', '/location/account/public_html/zen-cart-v1.5.4/myadmin/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/location/account/public_html/zen-cart-v1.5.4/');

//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/location/account/public_html/zen-cart-v1.5.4/logs');

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', '');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'databaseuser2');
define('DB_SERVER_PASSWORD', 'password');
define('DB_DATABASE', 'database2');

// 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', '/location/account/public_html/zen-cart-v1.5.4/cache');

Error Log indicated this:
[12-Jun-2015 13:24:27] PHP Parse error: syntax error, unexpected T_STATIC in /home6/stitchnf/public_html/zen-cart-v1.5.4/hannah/includes/classes/class.admin.zcObserverLogEventListener.php on line 118

Around Line 118 is :

* Set severity flags
 * If $notes is not false, then that means the malicious-content detector found things which should be deemed remarkable, so we elevate the severity to 'notice'
 */
if ($notes !== false && $notes != '')
{
  $severity = self::NOTICE;
  $flagged = 1;
}

/**
 * escalate severity if requested level is higher than calculated level
 */
$levels = static::$levels;
$levels_lookup = array_flip($levels);

$integer_requested_severity = $requested_severity;
if (is_string($requested_severity) && $requested_severity != '') {
  if (isset($levels_lookup[strtoupper($requested_severity)])) {
    $integer_requested_severity = $levels_lookup[strtoupper($requested_severity)];
  }
}
if ($integer_requested_severity > $severity) {

IDEAS?

TIA

16 Jun 2015, 7:24 PM
#2
kobra avatar

kobra

Black Belt

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

Re: configuration problem -

install via the install program
What install program???

Blank page issues are in the FAQ's

Did see this

define('DIR_WS_ADMIN', '/myadmin/');
define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/');

Probably should be

define('DIR_WS_ADMIN', '/myadmin/');
define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');
16 Jun 2015, 8:01 PM
#3
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: configuration problem -

And this:

  define('HTTP_SERVER', 'http://www.stitchnframeonline.com');
  define('HTTPS_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');
  define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');

should be:

  define('HTTP_SERVER', 'http://www.stitchnframeonline.com');
  define('HTTPS_SERVER', 'https://www.stitchnframeonline.com');
  define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com');
  define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com');
16 Jun 2015, 8:02 PM
#4
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

kobra:

What install program???

Blank page issues are in the FAQ's

Did see this

define('DIR_WS_ADMIN', '/myadmin/');
define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/');

> Probably should be
> ```
define('DIR_WS_ADMIN', '/myadmin/');
define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');

zencart_install

Also I had spotted this and changed it to no effect - and then changed it back

define('DIR_WS_ADMIN', '/myadmin/');
define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');...will correct this

16 Jun 2015, 8:15 PM
#5
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: configuration problem -

define('DIR_WS_ADMIN', '/myadmin/');
  define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
  define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
  define('DIR_WS_HTTPS_CATALOG', '/');

is in fact not standard 1.5.4 code

this is

  define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTP_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/zen-cart-v1.5.4/');
  define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');
  define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', zen_parse_url(HTTPS_SERVER, '/path')) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/zen-cart-v1.5.4/');
  define('DIR_WS_HTTPS_CATALOG', '/zen-cart-v1.5.4/');

I suggest deleting the configure.php files and rerun the zc_install, and let ZC create the configure files

16 Jun 2015, 8:51 PM
#6
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: configuration problem -

stitchnkitty:

The store is visible but the admin is blank page..

Which store are you/we discussing here.
http://www.stitchnframeonline.com/zen-cart-v1.5.4/
or
http://www.stitchnframeonline.com/

These are two different functional stores from the front end, and I can only guess about the backend.

I don't like guessing. :-(

stitchnkitty:

admin file configure.

define('HTTP_SERVER', 'http://www.stitchnframeonline.com');
define('HTTPS_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');
define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com');
define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4');

for the time being (since you don't have SSL enabled). you/we can ignore the lines with HTTPS, which gives us the following URL for both the storefront and admin of the store:
'http://www.stitchnframeonline.com'

stitchnkitty:

define('DIR_WS_ADMIN', '/myadmin/');

This gets added to the URL above to determine where the admin files are to be found, namely:
http://www.stitchnframeonline.com/myadmin/

IOW, when you attempt to go the the admin of the 'new' store (in the zen-cart-v1.5.4 folder) you are actually accessing the old files. This is sure to cause unexpected problems.

stitchnkitty:

define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/');

This is correct for the new/upgraded store... being derived from
define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com'); plus define('DIR_WS_CATALOG', '/zen-cart-v1.5.4/')

== 'http://www.stitchnframeonline.com/zen-cart-v1.5.4/

stitchnkitty:

define('DIR_WS_HTTPS_ADMIN', '/myadmin/');
define('DIR_WS_HTTPS_CATALOG', '/');

You're not using SSL at the moment, these can be ignored.

stitchnkitty:

define('DIR_FS_ADMIN', '/location/account/public_html/zen-cart-v1.5.4/myadmin/');

This path doesn't match the URI previously defined
http://www.stitchnframeonline.com/myadmin/ vs
http://www.stitchnframeonline.com/zen-cart-v1.5.4/myadmin/

In short, you have errors in your configure.php file(s)

Kobra's suggested change(s) probably won't have any affect on account of the fact that both of those relate to the SSL functions/settings, which you (currently) have disabled (and should keep disabled until you take care of the non-SSL issues, as the SSL could only complicate matters).

Based on what I'm seeing here, you'll need to change
define('DIR_WS_ADMIN', '/myadmin/'); to
define('DIR_WS_ADMIN', '/zen-cart-v1.5.4/myadmin/'); (for the new/updated site admin)

If/when you decide to re-enable the SSL you'll need to take care of the define('HTTPS_xxxxxx') settings.

You should also try to be consistent with your server/path settings. Although it seems common practice to use something like
define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com/zen-cart-v1.5.4'); in conjuction with something like
define('DIR_WS_HTTP_CATALOG', '/');

In MY opinion, it is better to use
define('HTTP_CATALOG_SERVER', 'http://www.stitchnframeonline.com); in conjunction with
define('DIR_WS_HTTP_CATALOG', '/zen-cart-v1.5.4/');

The end result is the same in either case (http://www.stitchnframeonline.com/zen-cart-v1.5.4/) but the consistancy help avoid accidental defines such as is going to happen with:
define('HTTPS_CATALOG_SERVER', 'https://www.stitchnframeonline.com/zen-cart-v1.5.4'); combined with
define('DIR_WS_HTTP_CATALOG', '/zen-cart-v1.5.4/'); which gives a final URI of
'https://www.stitchnframeonline.com/zen-cart-v1.5.4/zen-cart-v1.5.4/' (or similar).

Anyway, hopefully this has been of more help rather than serving to add to the confusion.

Cheers
RodG

17 Jun 2015, 1:13 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,099
Plugin Contributions:
56

Re: configuration problem -

For the error message

Error Log indicated this:
[12-Jun-2015 13:24:27] PHP Parse error: syntax error, unexpected T_STATIC in /home6/stitchnf/public_html/zen-cart-v1.5.4/hannah/includes/classes/class.admin.zcObserverLogEventListener.php on line 118

to be issued, you're running Zen Cart v1.5.4 on a PHP version earlier than 5.3. The issue has been identified and a work-around posted earlier this year by DrByte: http://www.zen-cart.com/showthread.php?215694-Known-Bugs-%28and-fixes%29-with-v1-5-4&p=1270404#post1270404

18 Jun 2015, 1:12 AM
#8
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

This is insane- This step is always a glitch for me and I can not understand why...

First of all - Thank you so very much for all the suggestions... RodG your comments were soooo informative and explained so much. however, no matter what I had done the dreaded blank page is still with me.. So..

I messed with the configure files a bit and after reading all the information again and again.. This should not be necessary....???

Failing at this..

I have gone back and deleted the configure files; uploaded the dis-configure.php to both admin/includes and the includes. using the appropriate files for each...and meticulously started over reading both installation instructions and also the FAQ on how to rename the admin. Then going back to the installer and launching to https://www.stitchnframeonline.com/zen-cart-v1.5.4/myadmin to no avail...

So here is some confirmation to RodG Q? the zen-cart-v1.5.4 is a subfolder to my main website and is housing my test site for the newest version of zencart and also to test the all business responsive template for mobile friendly format....Also to test the manual credit card module that is not indicated for v1.5.4.....

PHP on the server indicates that it is currently set on "PHP 5.4 (Single php.ini)" so i have no idea why the zen-cart-v1.5.4 log is giving me the coding given above... Also after the second installation - I did check the log again and the coding is the same....that is the only indication of problems...

Oh one other thing if it will help...during installation I did get an

! PHP output buffer(gzip) = off. TIA

18 Jun 2015, 1:56 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: configuration problem -

Unfortunately because you can't login to the admin, it is not possible to identify what php version ZC isbeing presented.

It has been previously identified that the error listed only occurs for PHP below 5.3. Recommendation would be to entertain the idea that perhaps it really is <5.3 and follow the guidance provided in that thread.

To no avail? What does that mean (in more detail)? Same error message(s), something different, etc?

18 Jun 2015, 2:14 AM
#10
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: configuration problem -

stitchnkitty:

PHP on the server indicates that it is currently set on "PHP 5.4 (Single php.ini)" so i have no idea why the zen-cart-v1.5.4 log is giving me the coding given above.

Where are you seeing this?

Probably not important, but I thought I'd take another look at the store to see what had changed since I last look (and after you replaced and re-edited the config files.

It looks like you are closer to having it work than it was before (perhaps), but in its current state the zc_install folder still exists, which has revealed a couple of things of importance.

  1. admin/includes/configure.php = NOT FOUND
    2)
  • PHP Version = 5.2.17

So, 1st thing to do, if possible, is upgrade your PHP. If that isn't possible, you should apply the patches mentioned by lat9. (don't be fooled, updating PHP is generally easier than patching the code, as long as your webhost provides that option, which most do).

The second thing to do is place an unedited configure.php file in the admin/includes/ folder and run the zc_installer again. Just to be on the safe side, I'd be replacing both configure.php files with unedited copies). I

If you've already renamed your admin folder then you should rename it back to /admin/ until the install scripts tell you to rename it again.

Please make sure you are using the configure.php files from v1.5.4. It is often tempting to copy these from an existing/older installation (many times with good success), but the later versions include a bit more 'intelligence' that helps avoid many of the problems that some/many people had with the original code.

Between these two things it will be very hard to actually get things wrong.

Cheers
RodG

18 Jun 2015, 5:48 AM
#11
kobra avatar

kobra

Black Belt

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

Re: configuration problem -

You can create a file name it "phpinfo.php" with the following

<?
php phpinfo();
?>

FTP it to the root(public_html) of your account and navigate to it http://your_domain/phpinfo.php
No need to get into your ZenCart admin

Then going back to the installer and launching to http://www.stitchnframeonline.com/ze...v1.5.4/myadmin to no avail...
When you state "launching" - exactly what are you doing???
Are you re-running zc_install - you should be

18 Jun 2015, 3:36 PM
#12
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

Oh TY guys for all the patience!!!

First - I am a newbie( well not technically but ...) The only way I THOUGHT to check on the PHP version was to go to cpanel and check the version the server is using.. the indicated version was checked.. I will have to call bluehost and check on the procedure....

Second.. You are right RodG it is very tempting to reuse the old file (but if anyone else is listening) DONT CUT CORNERS! I have learned that a long time ago - however with my overworked stressed life I will sometimes overread some things. not this last time. Now when I did a install wirh zc_install... i deleted the confiure files from both folders and uploaded via fizella the 1.5.4 dist-configre.php did not rename it (assumed the install would do that) and just renamed the admin files to launch from the install screen...

When you state "launching" - exactly what are you doing???
Are you re-running zc_install - you should be
Thinking that maybe i did not code the address correctly in the address line, I navigated to the admin from the last page of the zc installer that is "go to admin"

With this - I will go reread everything Kobra; RodG and everyone else has advised and get back with a yea or nea and an explanation of what has occurred - TIA SO much...

18 Jun 2015, 4:31 PM
#13
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

You can create a file name it "phpinfo.php" with the following
Code:

<? php phpinfo(); ?>

FTP it to the root(public_html) of your account and navigate to it http://your_domain/phpinfo.php
No need to get into your ZenCart admin

Worked great!!

Oohh! It says on my php config in the cpanel that the version PHP 5.4 is not compatible with ZC1.3.9 and ZC1.5.1 --which is what my two websites are right now. if I upgrade the PHP version I guess I will assume that both websites will go down?!

18 Jun 2015, 8:59 PM
#15
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

Hi everyone - small update - just go off the phone with bluehost and the tech said that I as definitely using 5.4PHP. He said that the .htaccess in the root was the default and that everything went over to that version. I did check the phpinfo and it said it was on 5.2 Rod said I was on 5.2 bluehost said 5.4... soooo Bluehost did a search for 5.2 thru all my files and found nothing that would override this... This is so totally weird!! Here is the .htaccess:

Use PHP54 as default

AddHandler application/x-httpd-php54s .phpOptions All -Indexes

For security reasons, Option all cannot be overridden.

#Options All -Indexes
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes

disable directory browsing

    Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes
    
    # enable directory browsing

For security reasons, Option all cannot be overridden.

Options All +Indexes

    Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch +Indexes
18 Jun 2015, 9:53 PM
#16
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: configuration problem -

stitchnkitty:

Hi everyone - small update - just go off the phone with bluehost and the tech said that I as definitely using 5.4PHP. He said that the .htaccess in the root was the default and that everything went over to that version. I did check the phpinfo and it said it was on 5.2 Rod said I was on 5.2 bluehost said 5.4...

Just to be pedantic, it wasn't I that said you were using 5.2, it was the ZenCart install script (and I can assure you that THAT would be much more reliable than anything I say/said).

stitchnkitty:

soooo Bluehost did a search for 5.2 thru all my files and found nothing that would override this... This is so totally weird!! Here is the .htaccess:

Use PHP54 as default

AddHandler application/x-httpd-php54s .phpOptions All -Indexes

For security reasons, Option all cannot be overridden.

#Options All -Indexes
Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes

disable directory browsing

    Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch -Indexes
    
    # enable directory browsing

For security reasons, Option all cannot be overridden.

Options All +Indexes

    Options ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch +Indexes

Although I can't say with 100% certainty, but if this is exactly how the .htaccess reads then it isn't going to work as expected. It looks like a few of the lines have been joined.

eg:
AddHandler application/x-httpd-php54s .phpOptions All -Indexes

Should be:
AddHandler application/x-httpd-php54s .php
Options All -Indexes

The joining of the ".phpOptions" means there'll not be a match on the ".php" files so the php54s handler will never be invoked, which means the default .PHP handler will be used instead, and based on the phpinfo output (and the ZenCart installer) the default handler is (apparently) php5.2.

Cheers
RodG

18 Jun 2015, 10:44 PM
#17
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: configuration problem -

Update:

If after fixing the joined lines in the .htaccess file you find you still have the same problem I suggest you place a copy of the .htaccess file into the /zen-cart-v1.5.4/ folder.

OR, probably a better option.... According to BlueHost

All our servers support (i.e. are capable of running) PHP 5.2 and PHP 5.4. The default version is 5.4.x but you can follow the directions below to use PHP 5.2.X instead. However we are working on phasing out PHP 5.2.x from our servers as it is no longer supported by its developers.

If I/we assume that this statement is still correct, then you can probably just delete the .htaccess file (in the root folder) completely. No need to place a copy in the /zen-cart-v1.5.4/ folder either.

A word of caution though, if your current store is an older version that isn't compatible with V5.4 this could cause it to break. In fact you MAY even break the original store when you fix the .htaccess file in the root directory (as this will/should cause that store to be use whatever is defined in the file.

To help clarify...

If the zencart installation in http://www.stitchnframeonline.com/ requires php5.2 and the installation in
http://www.stitchnframeonline.com/zen-cart-v1.5.4/ requires php5.4

AND the server default PHP is V5.4

You will need
AddHandler application/x-httpd-php52 .php in the http://www.stitchnframeonline.com/.htaccess file
and you won't need the http://www.stitchnframeonline.com/zen-cart-v1.5.4/.htaccess file at all

If the server default is php5.2

You will need
AddHandler application/x-httpd-php54 .php in the http://www.stitchnframeonline.com/zen-cart-v1.5.4/.htaccess file
and you won't need the http://www.stitchnframeonline.com/.htaccess file at all

Although not possible, if the server didn't have a default PHP version, you will need
AddHandler application/x-httpd-php54 .php in the http://www.stitchnframeonline.com/zen-cart-v1.5.4/.htaccess file, and
AddHandler application/x-httpd-php52 .php in the http://www.stitchnframeonline.com/.htaccess file

IMPORTANT#1: If the server is using the Suhosin patch you will need to add an 's' after the version number (as per your current .htaccess file which has *AddHandler application/x-httpd-php54s *

IMPORTANT#2: It appears that the 's' is only a requirement for php52 with Suhosin. The 's' in the php54 is (apparently) unique to BlueHost, and is used to signify 'single host' and/or 'all sub folders', and this being the case I can't say for sure what the results will be if you don't have the 's' after the '54' - You may need to experiment a little here.
I suggest you place the phpinfo() script in both folders (the root of the existing store, and the root of the new/updated store and point your browser to each one individually to verify that the 'correct' version is given for each store.

Cheers
RodG

19 Jun 2015, 3:06 PM
#18
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

RodG you are a genius!!! And the way you explain things is so totally understandable!!!!

I did insert the phpinfo.ini into the zen-cart-v1.5.4 folder-- and checked the version it was 5.2
Then inserted the corrected .htaccess into that same folder and checked the PHP version.. and yes it did indeed change to 5.4 ..

And then the admin came up... Now I am wondering if running the zc_install on 5.2 and then changing it to 5.4 would effect the functionality of the website? I am thinking not,otherwise after every upgrade everyone would have to reinstall, but need you expert confirmation on this...
With the limited messing at this time, I found that the template access was denied(This would be in the Template Selection section, templates install, preview, Access denied).
I am thinking this a totally different issue....

I will, in the next couple of days, check to see if the conversion to 5.4 in my root will indeed "break" the sites.

TIA sooo much!!!!!

19 Jun 2015, 4:01 PM
#19
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: configuration problem -

Running the install under PHP 5.2 and then upping to 5.4 will have no effect on the upgrade previously performed. If files were changed to support the upgrade, they should be restored to original, but the PHP shift does not affect the install.

Suggest a new thread for the lack of permission, but that issue is separate and recommend checking ability of accessing other options as part of bounding the issue.

19 Jun 2015, 7:05 PM
#20
stitchnkitty avatar

stitchnkitty

Totally Zenned

Join Date:
Jun 2009
Location:
Des Moines, Iowa USA
Posts:
618
Plugin Contributions:
0

Re: configuration problem -

Great TY -

Lack of permissions I think was due to multiple reinstalls and of course the support override files are no longer there. Need to upload. If there are further issues I will indeed start a new thread!!

Yea!!!! TY