Forums / Installing on a Mac Server / Re: Setting up ZC on a Local Testing Server-MAC

Re: Setting up ZC on a Local Testing Server-MAC

Locked

Started by caciquer on 30 Aug 2008, 9:51 PM · Views: 8,304

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
30 Aug 2008, 9:51 PM
#1
caciquer avatar

caciquer

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Setting up ZC on a Local Testing Server-MAC

This may be the place for this post. I have searched for pages and pages and haven't found anyone else with the same problem. I installed XAMPP on my Mac laptop (OS 10.4.11) and am using Zen Cart 1.3.8. Everything installed correctly but I get these three error messages on the main install page.

PHP GD Support = OFF Click here for more info
GD Version = GD Click here for more info
PHP Output Buffering (gzip) = OFF

Is this important?

31 Aug 2008, 3:39 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Re: Setting up ZC on a Local Testing Server-MAC

gzip is only for possible speeding up page loading from a hosts server

GDLib's are only important if you use a mod that requires it to function

Zen-Venom Get Bitten

31 Aug 2008, 4:39 AM
#3
caciquer avatar

caciquer

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Re: Setting up ZC on a Local Testing Server-MAC

Thanks Kobra.

I am installing from the Manual and stuck on page 37. Now, I am getting this error message:
"* Connection to Database failed
Access denied for user 'root'@'localhost' (using password: YES) more info..."

Can anyone tell me what User and Pass my laptop has???? Somehow I naively thought that XAMPP would have addressed these issues...

Silly me.

31 Aug 2008, 4:54 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Re: Setting up ZC on a Local Testing Server-MAC

on a local that I use I normally only enter the user as "root" and no password and it allows connection

But I so not use xamp

Did you also look for MAMP?

Zen-Venom Get Bitten

31 Aug 2008, 6:33 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Re: Setting up ZC on a Local Testing Server-MAC

MAMP on the mac uses "root" and "root" for the default MySQL username and password.

There is another discussion thread on the forum discussing the use of MAMP on a Mac for offline testing.

I'm not sure how you're using XAMPP ... isn't that package intended for windoze pcs?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Aug 2008, 12:25 PM
#6
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Re: Setting up ZC on a Local Testing Server-MAC

+1 for MAMP.

31 Aug 2008, 12:27 PM
#7
kobra avatar

kobra

Black Belt

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

Re: Re: Setting up ZC on a Local Testing Server-MAC

Is this what you are using? Or should be...

http://www.mamp.info/en/index.php

Zen-Venom Get Bitten

31 Aug 2008, 11:04 PM
#8
caciquer avatar

caciquer

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Re: Setting up ZC on a Local Testing Server-MAC

Thanks to all of you for your comments. I apologize for the last post, it was late.

Here is what I had done:
Installed the XAMPP (which does have Mac and Linux versions).
Installed Zen Cart into a catalog folder.
Then realized that it must be installed in the wrong place and was running on the Mac Apache server, because it went bye bye when I turned off the "Personal Web Sharing" in System Preferences.

Here is where I am now:
Downloaded MAMP (I used to have this and didn't find it useful last year, but I am following your instructions)
Install was successful.
Opened the zc_install/index.php file and got gibberish (non-PHP text)!
The MAMP Servers are on.
The MAMP instructions are not clear at all to me, and are all for the PRO version.
I tried various routes to this page.
Pardon me for saying this, but with Apache, phpmyadmin, and MySQL, all working in the same place, a person should be able to open Firefox, navigate to a file, and have it open in their browser.
I clicked on the "Open start page" on the MAMP window, which takes me to a Welcome page:
"If you can see this page, MAMP is installed on your Mac and everything is working!"
That's nice, but if I want to go to MY page, I can't get there.
Instead, I get messages like this:
"Not Found
The requested URL /MAMP/htdocs/zc_install/index.php was not found on this server.
Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2 Server at localhost Port 8888"
Isn't the point of this to get to my page?

1 Sep 2008, 4:25 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Re: Setting up ZC on a Local Testing Server-MAC

What exact URL are you attempting to go to?
MAMP and your browser would assume to start under the "htdocs" folder already ... so ... if you installed the Zen Cart files directly into the htdocs folder, then you would just put http://localhost/zc_install/index.php into the browser.

Oh, and if you're running on port 8888 instead of 80, then you'll need to change "localhost" to "localhost:8888" above.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Sep 2008, 5:11 AM
#10
caciquer avatar

caciquer

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Re: Setting up ZC on a Local Testing Server-MAC

Thanks for your very reasonable answer. That is, in fact, what I did and where I put the ZC files. Which is why I do not understand the reply in the browser: "Forbidden
You don't have permission to access /zc_install/index.php on this server."

I did "Get Info" on the whole MAMP folder and changed permissions recursively (this is my password protected laptop) with the same result.

Also, I have just opened the folders to make sure I didn't put the whole thing into a catalog. The address is: Applications/MAMP/htdocs/index.php (or wherever I'm going).

Next, I opened Firefox to a new tab and clicked on File>Open File, then navigated to the same file. This time I get the text only, without the html/php environment:

"# * Load application_top.php - see {@tutorial initsystem}

* Set main language directory based on $_SESSION['language']

* Load all *header_php.php files from includes/modules/pages/PAGE_NAME/

* Load html_header.php (this is a common template file)

* Load main_template_vars.php (this is a common template file)

* Load on_load scripts (page based and site wide)

* Load tpl_main_page.php (this is a common template file)..."

Personal Web Sharing has been both on and off. It doesn't seem to affect this. I clicked the "Open start page" button and it took me to a web page in Firefox that said everything was working. I changed this to redirect to my page. Which then reports:

"Not Found
The requested URL /MAMP/htdocs/index.php was not found on this server.
Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2 Server at localhost Port 8888"

Thanks for your interest. I hope some of this helps.

1 Sep 2008, 5:18 AM
#11
caciquer avatar

caciquer

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Re: Setting up ZC on a Local Testing Server-MAC

p.s.
The URL I used is the one your mentioned:
http://localhost/zc_install/index.php

1 Sep 2008, 5:42 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: Re: Setting up ZC on a Local Testing Server-MAC

I'm not sure why it's pointing to the wrong webroot. It seems like it's seeing "/Applications" as your webroot ... which would certainly cause odd results.

Is there anything from the following discussion that might help? http://www.zen-cart.com/forum/showthread.php?t=96011 It's assuming a clean install with no other webserver tools on the machine, and discusses turning PWS off for ease of implementation.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Sep 2008, 6:39 AM
#13
caciquer avatar

caciquer

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Re: Setting up ZC on a Local Testing Server-MAC

Yep. That's how it's supposed to happen. Glad you agree that my experience is odd. 'Course, most people would apply that to me...

I have a switcher friend who messes with basic code. I bought her machine, so there could be something screwy inside here. To set this up locally (keep the filename paths the same) I edited the private>etc>hosts file with Terminal and BBEdit to redirect localhost to my domain name (and back again). I did check to make sure it changed back, but I am beyond my competency there:

"##

Host Database

localhost is used to configure the loopback interface

when the system is booting. Do not change this entry.

127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost

Added by Randall West 8/29/2008

127.0.0.1 https://www.changeyourhoroscope.com #For Browser Access

127.0.0.1 mail.changeyourhoroscope.com #For email Access

127.0.0.1 changeyourhoroscope.com #For mercury mail Access"

See anything here that would explain this? Thanks again. I really appreciate guys to check the forums on a Sunday evening.