Forums / Installing on a Mac Server / MAMP/XAMPP set up local host

MAMP/XAMPP set up local host

Locked

Views: 55,931

Results 21 to 40 of 46
This thread is locked. New replies are disabled.
8 Jul 2008, 12:28 AM
#21
beth_katherine avatar

beth_katherine

Zen Follower

Join Date:
Feb 2007
Posts:
158
Plugin Contributions:
0

MAMP/XAMPP set up local host

Beth-katherine:

Ok, thanks. I followed this and got into the installation process. I'll be back with questions I'm sure.

Beth-katherine

Ok am stuck. How do I change the following files to read "writable"?

"File and Folder Permissions
In order for the installer to store the setup information you provide in the following pages, the configure.php files shown below need to be "writable".

* includes/configure.php = Writeable
* admin/includes/configure.php = Writeable

In order for many Zen Cart™ administrative and day-to-day functions to work properly, You need to mark several files/folders "Writeable". The following is a list of folders which need to be "read-write", along with recommended CHMOD settings. Please correct these settings before continuing installation. "

8 Jul 2008, 4:24 AM
#22
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

To change file permissions in Mac OS X, you can use the following steps if you are not familiar with Unix commands:

  1. Right-click on the desired file and a context menu will appear.
  2. Select Get Info from the context menu and a dialog window opens.
  3. Expand the Ownership & Permissions tab in the dialog window and you will be able to change the permissions of the file.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

8 Jul 2008, 1:03 PM
#23
beth_katherine avatar

beth_katherine

Zen Follower

Join Date:
Feb 2007
Posts:
158
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Thank you so much for your help, I didn't know the nuances of file info but I'm learning fast.

Beth-katherine

8 Jul 2008, 1:21 PM
#24
beth_katherine avatar

beth_katherine

Zen Follower

Join Date:
Feb 2007
Posts:
158
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Stuck again.

How do I set up the MYSQL database? The warning I received was

Database does not exist
Unknown database 'zencart'

I've tried accessing the database info as per Dr. Byte's instructions but I seem to have passed that part of the installation as I can't access the info on the MAMP terminal, unless I'm missing something.

9 Jul 2008, 4:45 AM
#25
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Retrace steps 6 - 9 from DrByte's instructions if you have not done so.

During installation, you most probably left the database name as the default zencart while DrByte's instructions mentioned creating the database name as zencart138 in step 9.

Change the database name during Zen Cart installation according to what you have previously entered in phpMyAdmin and that particular error message should disappear.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

11 Jul 2008, 3:04 AM
#26
khageman avatar

khageman

New Zenner

Join Date:
Mar 2008
Posts:
6
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

I'm almost there!! I set up the "www.example.com" address and changed the Apache Server Name from Localhost.80 to www.example.com:80.

I type in https://www.example.com and a screen comes up that says Index of/ and underneath the Zencart/ folder. When I click on that, Zen cart comes up on the screen.

Is there any way to eliminate the Index of/ screen and go directly to Zencart typing in https://www.example.com or do I have to put in https://www.example.com/zencart/

Please help.

Ken

11 Jul 2008, 7:22 AM
#27
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Just move the contents of your current "/zencart" folder one level up to your Apache's document root (i.e. the IndexOf "/" directory you currently see).

After that, change both your configure.php files to reflect the new directory structure. You might also need to adjust the path to your session directory under Configuration > Sessions in your Admin Console depending on how you configured sessions to be stored when you installed your Zen Cart.

Restart your servers and verify the change.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

12 Jul 2008, 4:58 PM
#28
beth_katherine avatar

beth_katherine

Zen Follower

Join Date:
Feb 2007
Posts:
158
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

YEE HAW!!!!! :clap: I got everything to work, finally.

To everyone who reads this in the future, remember persistence is the key.

Beth-katherine

1 Oct 2008, 12:12 PM
#29
butteredscone avatar

butteredscone

New Zenner

Join Date:
Sep 2008
Posts:
1
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Hi there, your tip got example.com working perfectly - thanks. However it seems to have affected my (mac) mail which now wont retrieve any mail from my web-based mail server. Can anyone help?

1 Oct 2008, 4:00 PM
#30
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

I can't think of any reason why installing XAMPP would affect your ability to connect to your mail server.

XAMPP normally uses Ports 80 and 443, whilst POP3 uses Port 25 or 26 and STMP normally uses 110 or a Port Number close to that.

Vger

2 Oct 2008, 8:45 AM
#31
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

You may also want to double-check your individual email account settings in your Mac Mail to make sure that they are configured properly to use your web-based email server's domain instead of the example.com domain.

Goh Koon Hoek, author of "e-Start Your Web Store with Zen Cart".
Printed book: www.lulu.com/content/10576284
Electronic book and Errata: www.cucumbermedia.com/store

20 Mar 2009, 2:09 PM
#32
jerryhad1 avatar

jerryhad1

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Ok I am trying to install zencart 1,3,8a with mamp on a mac 10.3.9

When I start mamp this is the page I get.

http://localhost/MAMP/?language=English

In the pref pane of mamp port 80 is selected and mysql port 3306.

( I have been through page one Dr instructions about 25 times now FYI)

I previously downloaded 1.3.8 and never got it to work only one time and could not get it started again. I did not trash that version but installed the unzipped folder for 1.3.8a in the htdocs in a folder called zencarta. In comparing them the in the includes folder there is no configure.php in the new version. As I wanted to make sure osx read write permissions were correctly set.

I get the 404 error when I try to go to this address

http://localhost/zencarta to start the zen cart install.

I did set up a new database for zencarta.

This is really starting to get frustrating as I have built html sites, from scratch and thought I was relatively computer literate. I keep going through this and I can't even..........

Well you get the idea.

Any ideas on where this is going awry?

20 Mar 2009, 5:17 PM
#33
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

jerryhad1:

I previously downloaded 1.3.8 and never got it to work only one time and could not get it started again. I did not trash that version but installed the unzipped folder for 1.3.8a in the htdocs in a folder called zencarta. In comparing them the in the includes folder there is no configure.php in the new version. As I wanted to make sure osx read write permissions were correctly set.

Couple of problems I can see there. First, you say you did not delete the earlier install? Best to do that. In fact, delete the current one too and start over with a clean, empty, fresh folder. :shocking:

Second, you say there is no configure.php file in /includes/? That file is called dist-configure.php in the downloaded file set. You're supposed to rename it to configure.php at some point during the install. You'll be prompted to do so. (There's a similar one in /admin/includes/ which is handled the very same way.)

Rob

Breakfast: the most important donut of the day.

20 Mar 2009, 7:50 PM
#34
nick_h avatar

nick_h

New Zenner

Join Date:
Apr 2008
Location:
Nottingham, UK
Posts:
46
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

I agree - delete both installs of Zencart and start from scratch. Does the MAMP homepage come up ok at http://localhost/MAMP/?language=English ?

What do you see when you go to http://localhost/ ?

Are you using the htdocs folder in applications/MAMP?

If we go through it step by step im sure we will fix it :)

Nick

21 Mar 2009, 8:58 PM
#35
jerryhad1 avatar

jerryhad1

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

So I am going for a fresh install of the whole thing. I am assuming this will delete the database that I had set up for the test as well.

Should I think about installing 1.4 or 2.0 whichever as the 1.3.8a will not be supported by year end if I read correctly.

Can I leave MAMP on as is or redo/reset anything there?

As mentioned I used to think me was smart with computer, but now not so much.

Thanks,
Jerry

23 Mar 2009, 12:18 AM
#36
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

A fresh install of Zen Cart will not do anything to your database by itself. Zen Cart and the database it uses are independant entities. But you can fill the database with ZC's default products during the install if you wish, or just leave it alone.

If you think the database is suspect in any way, then treat it as a new blank one when the install reaches that point, and let ZC write over whatever is in it.

As for "Should I think about installing 1.4 or 2.0 whichever as the 1.3.8a will not be supported by year end if I read correctly. " There is no v1.4, nor is there any v2.0 -- yet. There will some day be a v2.0 and a v.139 (basically 1.3.8a with all the bug fixes and security updates included), but no one knows when.

So go ahead with 1.3.8a.

Rob

Breakfast: the most important donut of the day.

17 Sep 2009, 1:28 AM
#37
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Dr. Byte,
Thanks for the excellently detailed directions for getting MAMP up and running.

I've got a ZenCart store that is up live and was wondering what the steps would be if I am wanting to grab a copy of what I currently have up and bring it into MAMP so I can make future edits on my local machine (using MAMP) and avoid any costly errors messing up the live site?

I'm guessing I "backup" my current httpdocs folder from my live server, as well as "backup" my database from the live server and import them into MAMP?

Thanks

17 Sep 2009, 2:14 AM
#38
drbyte avatar

drbyte

Sensei

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

Re: MAMP/XAMPP set up local host

.
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.

17 Sep 2009, 4:08 PM
#39
jgraphics avatar

jgraphics

New Zenner

Join Date:
Oct 2006
Posts:
75
Plugin Contributions:
0

Re: MAMP/XAMPP set up local host

Thanks.
I am having a bit of trouble with "importing" my MySql database into my local server.
Here is the error I'm getting:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'user varchar(100) collate utf8_unicode_ci NOT NULL default '',
pass varcha' at line 1

I'm guessing I need to "export" the database from the live server with some different options. No idea which options those might be though...

Any help is greatly appreciated.

Thanks

17 Sep 2009, 5:49 PM
#40
drbyte avatar

drbyte

Sensei

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

Re: MAMP/XAMPP set up local host

In the second FAQ link I gave earlier there are links to a related FAQ on doing backups with phpMyAdmin: https://www.zen-cart.com/tutorials/index.php?article=103
Lots of other useful info in the FAQ area ;)

.
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.