Where to Start? Setting Up a Local Domain

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Where to Start? Setting Up a Local Domain

Postby Ozewolf » 23. January 2009 07:23

Hi
I am a complete noob and i'm old so be gentle

I wish to install Xampp so i can set-up a Zencart
So I have got the book
In it are Windows Instructions
As i am a mac user I have no idea what the eqivilent paths would be on a mac so I am hoping some kind person would help me out.
I know you experts will think its so simple & i didn't need to post this but I gotta start somewhere :?
Thanks in anticipation
Macbook Pro
OSX 10.5


Setting Up a Local Domain

To set up a domain in Windows XP:
1. Edit the file C: \WINDOWS\system32\dr ivers\etc\hosts with a text editor. Change the drive letter (C:)
to match your own computer setup.
2. Add the following lines to the end of the file.
127.0.0.1 http://www.example.com # For browser access
127.0.0.1 mail.example.com # For email access
127.0.0.1 example.com # For mercury mail server
3. Remember to save the contents of the file.
You should now be able to use “localhost” and “www.example.com” interchangeably when accessing your web
server via a web browser. The “mail.example.com” domain will make more sense to you when you learn how to
configure Zen Cart to send emails in “Mail Server Settings” on page 72. The “example.com” domain will be used in
“Configuring Mercury” on page 38.
Configuring Apache
We have to configure our local Apache to accept connections for any requests to the domain -
http://www.example.com, instead of allowing such connections to go through the Internet.
To configure Apache to use the new domain you created:
1. Edit the file <xampp-home>/apache/conf /ht tpd.conf with a text editor.
2. Delete and add the following line in the file.
ServerName localhost:80 ServerName http://www.example.com:80


Configuring Apache
We have to configure our local Apache to accept connections for any requests to the domain -
http://www.example.com, instead of allowing such connections to go through the Internet.
To configure Apache to use the new domain you created:
1. Edit the file <xampp-home>/apache/conf /ht tpd.conf with a text editor.
2. Delete and add the following line in the file.
ServerName localhost:80 ServerName http://www.example.com:80

Start Your Web Store with Zen Cart
To test whether Apache has been configured properly:
1. Start your Apache service via the XAMPP Control Panel.
2. Use your web browser to point to http://www.example.com and you should be presented with the XAMPP
welcome screen if your configuration is successful.
Note that you are still able to access your server via the old URL of http://localhost.

Configuring Mercury
Now we have to make sure that all emails for the domain example.com will be handled by our mail server.
To configure your Mercury mail server to use the new domain:
1. Stop the Mercury mail server service via your XAMPP Control Panel.
2. Edit the file <xampp-home>/MercuryMai l /MERCURY. INI with a text editor.
3. Delete and add the following lines in the file.
myname localhost # Canonical name for this server
myname example.com # Canonical name for this server
4. Add the following line just below the words “localhost.com : localhost.com” in the file.
example.com : example.com
To test whether your Mercury mail server has been configured properly:
1. Start your Mercury service via your XAMPP Control Panel. Also make sure your Apache service is started.
2. Navigate to the URL http://www.example.com/xampp to open up your XAMPP page.
3. Click on the Mercury Mail hyperlink on the left-panel. Your right-panel should refresh and appear
similar to the following screen shot.



4. Enter some values for the test email you want to send. You can make use of the following settings

Chapter 2 Installing Zen Cart on Your Local Machine 39
as an example.
 Sender – postmaster@example.com
 Recipient – admin@example.com
 Subject – Test Message
 Message – This is a test message.
5. Click on Abschicken to send your email. Note: “Abschicken” is the German translation for the English
word “Send”.
6. If all goes well, you should see a message telling you that the email has been successfully sent.

Creating Your Store's Database
A database is used to store your configuration information during the installation process and also all your store's
settings, customer and product information, etc. Our database will be created in the MySQL database server which
we have installed when we installed XAMPP.
To create a database:
1. Start up your XAMPP Control Panel and make sure all services are running.
2. From your web browser, navigate to http://www.example.com/phpmyadmin.
Macbook Pro
OSX 10.5
Ozewolf
 
Posts: 2
Joined: 23. January 2009 07:05
Location: Down Under

Re: Where to Start? Setting Up a Local Domain

Postby Izzy » 23. January 2009 07:36

I use Windows but you can look at these search results from Google while you are waiting for a reply here - they look interesting.
Google Results (link)
I hope they help.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Where to Start? Setting Up a Local Domain

Postby Ozewolf » 23. January 2009 07:46

Thanks I guess that renders this post irrelevant :)
Macbook Pro
OSX 10.5
Ozewolf
 
Posts: 2
Joined: 23. January 2009 07:05
Location: Down Under

Re: Where to Start? Setting Up a Local Domain

Postby Izzy » 23. January 2009 07:52

I just did a forum search here for zen|cart and you and I were the only ones who had used that name so you may have had quite a wait.

Anyhow, good luck with it. :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 14 guests