Web Server From Home
Web Server From Home
Web Server From Home
net
Taken from
All products or services mentioned in this book are the trademarks or service marks of their
respective companies or organizations. The author and the publisher are not
associated with any product or vendor mentioned in this book.
Copyright
BusinessDreams.net & DIY E-commerce are copyright John Horton.
General Disclaimer
This manual and supporting disc(s) is written and distributed with the understanding that the
publisher and author are not engaged in rendering legal, accounting or other professional
services. If legal or other expert assistance is required, the services of a competent
professional should be sought.
Every effort has been made to make this document as complete and as accurate as possible,
but no warranty or fitness is implied. The information provided is on an as is basis. The
author and the publisher shall have neither liability nor responsibility to any person or entity
with respect to any loss or damage arising directly or indirectly from the information
contained in this document.
Web Security Disclaimer.
There is no such thing as a completely secure web site or web business. The very nature of the
Internet makes it impossible to guarantee business and customer security.
The author and publisher strongly suggest an ongoing commitment to improving security for
your business and your customers, beyond the scope of this book. This might involve further
reading or hiring a professional especially when hosting your own web site or business at
home. The author and publisher cannot take any responsibility for the security of your web
business and its customers.
NEVER store your customers financial details.
NEVER share your customers details with anybody.
ALWAYS use strong passwords and keep them safe.
ALWAYS keep a reliable backup of your business.
ESPECIALLY when hosting for yourself.
For Valerie...
Including
Keep steadily before you the fact that all true success
depends at last upon yourself.
Theodore T. Hunger
DynDNS or localhost?
As mentioned previously this part of the guide serves 2 main purposes.
1) If you want to have a professionally hosted web site but wish to
develop it Off-line first.
2) If you want to self host to save the fees associated with a professional
web host.
If you are reading this section because you want to develop off-line and then
migrate to a professional host, then you can skip ahead to the Installing
Apache Web Server section. Just read the next paragraph first.
The reason you can skip ahead is that every Windows computer has a kind of
built in domain name. That is, a name that refers to it's networking services,
like the web server we will install soon. This means that you can set up and
run web sites and stores without a 'proper' domain name. When you have
finished development you can then migrate your project to a professional web
host and set it up with a 'proper' internet domain name. The name of your built
in domain name is 'localhost' and it is only usable from the PC on which you
are working. This is just what we want. If you are reading this section and you
intend to develop your site off-line and then migrate to professional hosting.
Skip to 'Installing Apache Web Server', now.
If you are planning to self host and have your store on your own PC, but
accessible to the internet, to save money then please read on. What we need is
some way of telling the whole of the internet that a certain domain name,
www.whatever.xxx, is YOUR computer. And that if anybody, anywhere in the
world types your domain name they will get your web site, on your PC. There
is a free service that achieves just this. It is called DynDNS. Here is how to
get going and set up with DynDNS.
11
12
Click Next. Accept the license agreement and click Next and again click
Next. Here is a table of what to enter next screen.
Please note there are 2 tables. The first is for those of you who
are off line developing and the second is for the self hosting set
up.
13
Value
Network Domain
localhost
Server Name
localhost
Administrators Email
admin@localhost
Value
Network Domain
Server Name
www.yourdomain.webhop.net (If
you did not choose the .webhop.net
domain name then enter the domain
name you chose.)
Administrators Email
[email protected]
(If you did not choose the
.webhop.net domain name then enter
the domain name you chose.)
Leave the option to run Apache as a service, for all users checked. Click
Next. Choose the Typical install and press Next. Accept the default install
location and click Next again. Getting there! Press Install wait for it to
finish then press Finish. Now, amazingly, that is it. There are a few things to
configure as we continue, but I bet you want to try out your web server.
To check your web server is working, open a web browser and type
localhost. You should see an encouraging message. If you are developing at
home this is all you need to do and you can skip to the next stage, 'server
configurations'. If you are self hosting, you need to check your domain name
works. Here is a few more steps for you.
14
DirectoryIndex index.html
What this does is, it tells Apache that we want the default file for the folder to
be index.php. This is just what we need to run your store a bit later.
Installing PHP
Now you could create a regular web site and host it on your new Apache
server as it is. But dynamic sites which react to interaction and store details to
use at a later time or day require some extra facilities on your web server
before they can work. A database is required to use and store things like
customer details, prices, descriptions etc. We will set up the MySQL database
soon. Next we will deal with how your web server can handle the dynamic
nature of a web store.
PHP is a scripting language. It allows web programmers to create dynamic
web sites, like shopping carts and others. All the web store software used in
this guide uses PHP. So we have to install PHP support.
16
17
What you should see is a long web page containing all the configuration
details. It is not important at this stage to understand them. The fact that you
can see them is an indication that all is well.
19
because then when you backup your files, everything will be in one place.
Click Save and your done.
Now for the files and folders. Simply insert a blank CD into your CD Writer.
From the pop up list of options choose, Open A Window for CD Writing.
Now open another explorer window by pressing and holding the Windows
key, and tapping E. Browse to C:\Program Files\Apache
Software Foundation\. Drag the entire Apache 2.2 folder into the
CD writing window. In the top left of the CD writing window click on Write
these files to disc.
Using your backup
Copy the Apache 2.2 folder back to it's original location. Start up MySQL
Administrator, Login, click on Restore > Open Backup File and browse to
the most recent backup file you have made. Select it and your done.
24
The End?
Absolutely not! Just the beginning. I hope you have the confidence to know
that you can achieve a great living through your very own, ideal, e-commerce
empire.
I hope you are kind enough to share your expertise, your highs and your lows
with the Business Dreams community.
Have a look on www.businessdreams.net for more tutorials and
guides. And I hope you achieve your business dreams.
25