Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
September 17, 2014, 05:37:59 AM

Pages: [1] 2 3   Go Down
  Print  
Author Topic: WAMP (Windows/Apache/MySQL/PHP) Setup  (Read 53190 times)
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11619



WWW
« on: December 26, 2004, 08:55:15 PM »

This thread will provide information on setting up WAMP: Windows/Apache/MySQL/PHP. It helps to install a server on your own system if you plan to work on code since it is much more convenient to save/view a file than it is to upload/view. Also, if the code misbehaves, it won't get you in trouble with the suspension desk if the code uses too much resources and hurts server performance.

An alternative to manually installing everything would be to use a package that installs everything for you. I used to use PHPerl. I was pretty happy with it but outgrew it and wanted to do more customizing. I did like having started with it because I copy the way it organised the applications. Otherwise, I would have just used the default installation directories of the individual apps, which would result in the apps being all over the place.

If you are setting up a web server, you should be careful about security and keeping out riffraff. I would recommend using a router with built-in firewall to prevent outsiders from accessing your system.

If you want to provide outside access to your server, you need to do serious study on security to protect your system.

I will create different posts for subsections to keep one post from being too long. I might not finish in one sitting so please bear with me.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11619



WWW
« Reply #1 on: December 26, 2004, 08:56:54 PM »

First, you need to download these:
Apache

PHP

mysql

phpmyadmin optional, but since lunarpages provides it, it helps to use the same thing, so you don't have to learn to use something else. However, feel free to use another database admin app.

Hermes mail server. Optional. Use this if you are working with scripts that send mail, such as contact/registration forms.

I won't go into installation details since the details would be covered in the individual apps. I would just provide general suggestions.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11619



WWW
« Reply #2 on: December 26, 2004, 09:39:42 PM »

The applications that have autoinstallers either install by default in Program Files or off the root. Since there are several applications that you will have to deal with, it helps to put them all in one folder. Since you will also have to type out the names of the folders often, you want to keep them short and simple.

What I have done is created a folder called wamp: c:\wamp. So, if I have to type out the default folder, it's not too difficult, and since it is in the root, I don't have to dig too much to get to the web apps or sites.

Here's how my wamp folder looks like, highlighting the main folders we will look at.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11619



WWW
« Reply #3 on: December 27, 2004, 12:38:06 AM »

I usually don't like to change the default installation folders because apps are so inconsistent about how they create the folders. Some will create the folder that you specify in the path, and others will put the files in that folder.

When running the autoinstallers for the following, I recommend the following:
Apache: c:\wamp\ (If you had used apache, for example, it would put a folder called Apache2 in the apache folder)
MySQL: c:\wamp\mysql\ (If you don't specify the mysql folder, it will put the files in the wamp folder)

PHP and phpMyAdmin are installed by copying files over after extraction.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11619



WWW
« Reply #4 on: December 27, 2004, 12:57:17 AM »

If you have multiple sites, there are a couple of ways to deal with them. You can create separate users and use http://domain.tld/~user type urls, or create Virtual Hosts.

I fiddled with both options and got the latter one to work and like it so far.

I like separate sites/domains for different sections of my sites so I can refer to them with just the domain name, instead of domain/foldername. I have 3 installations of coppermine gallery alone to work with so it helps to treat them as separate sites.

So how does one go about using different domain names without purchasing them? Use the hosts file, and invent your own tld to prevent conflicts with existing ones. For example, I use http://gallery.tt to refer to my gallery. Using a fake tld prevents conflicts when trying to visit domains that actually exist. So instead of using .com, use your initials (as long as it doesn't correspond to an existing tld, such as com, net, etc).

Check out instructions on how to find and edit the hosts file here.
place lines such as the following:
Code:
127.0.0.1       gallery.tt

127.0.0.1 is the IP address that computers use to refer to themselves, aka localhost. The name of the domain, when entered in the addressbar, will be directed to the computer itself, where the files are.

If it's not obvious, one wouldn't want to use one's actual domain name and tld for testing locally since it would conflict when one wants to visit the actual site on LP's server.

In the Apache httpd.conf file, I have the following entry for the gallery site:
Code:
# gallery.tt
<VirtualHost *:80>
    DocumentRoot "c:/wamp/websites/gallery"
    ServerName gallery.tt
    ErrorLog logs/errorgallery.log
    CustomLog logs/accessgallery.log common
</VirtualHost>
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5882



« Reply #5 on: March 31, 2006, 05:15:43 PM »

How much of this is applicable towards setting up a mini-server on my home PC, running Ubuntu 5.10 Linux? I would like to be able to thoroughly test my PHP and MySQL code on my PC before uploading it to a live shared server. Nothing like getting exiled to another server because your script locked up in an infinite loop or something! I don't plan to "go live" for other users.

Anyway, I have Ubuntu 5.10 (a Debian flavor), but can install Fedora Core 4 or Mandriva if needed. I installed the Apache and MySQL optional packages, and Perl was already there. I guess I will need to hunt up the PHP and phpmyadmin packages. Any suggestions on where to start configuring this thing? As you may guess, I've never set up a server before. Thanks!

further question: phpmyadmin on my LP server permits the definition of database users. Who needs to be defined? I'm the only one doing DB admin work -- do I use my LP account name, and is it predefined? Customers who use my site will be invoking MySQL functions (through Perl or PHP code) -- what user ID will they be trying to access under, or do I spell that out in the database open command? How does all this apply to a standalone test installation?

Phil
« Last Edit: April 11, 2006, 08:16:25 AM by MrPhil » Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Rowan
hamburglar
Über Jedi
*****
Offline Offline

Posts: 1663


I used to be Human....2.0b


WWW
« Reply #6 on: May 24, 2006, 03:51:23 PM »

Linux Users (including Ubuntu):
You can do a similar thing using xampp:
http://www.apachefriends.org/en/xampp-linux.html

This one package has everything you could want (including phpmyadmin) and more! It's just as easy to install as its windows counterpart.

Ubuntu users note:
you can NOT use the command su as you don't have a root account.
Instead you will have to use sudo in-front of most commands
examples:
instead of:
/opt/lampp/lampp start
you will have to go:
sudo /opt/lampp/lampp start
and you will be prompted for a password.


IMHO:
If you have access to a Linux machine it is better to do your development on it rather that windows.
Most of you are likely to be on Linux servers at lunarpages so this will eliminate any of the sometimes frustrating  differences, e.g. linux is case senSitive.
Doing it on Linux lets you play around with .htaccess - its best not to 'play' around with this on your live account.
Any you can make sure you have all your permissions correct.
Logged

officexpboy
Intergalactic Cowboy
*****
Offline Offline

Posts: 62


To succeed in your mission, you must have single-minded devotion to your goal


« Reply #7 on: June 23, 2006, 01:54:50 AM »

WAMP  (software bundle) is tool that we can use as development server. Can be offline, only localhost (your computer) can access to your server.
WAMP is acronym for Windows, Apache, MySQL and  PHP.

WAMP5 - contains MySQL 5.0.22, Apache 2.0.58, phpmyadmin 2.8.1) as well as PHP4, MySQL administration and Zend Optimizer add-ons.


I guess WAMP is better option Thumbs Up

http://www.wampserver.com/en/
Logged

To succeed in your mission, you must have single-minded devotion to your goal
nathandw
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


« Reply #8 on: August 10, 2006, 04:43:46 PM »

Pardon my ignorance...
I would like to set up a waTmp system (Windows Apache Tomcat MySQL PHP) and GD2. I'm not quite sure what I'm supposed to do I have installed Apache Tomcat but from what I'm reading that is different than just installing Apache. Huh

Help Please,
Nathan Winder
Logged
RandyT
Guest
« Reply #9 on: August 10, 2006, 04:49:43 PM »

nathandw, are you using a dedicated server ? In order to run a waTmp system (Windows Apache Tomcat MySQL PHP) and GD2 you would have to be on one, as Windows does not support jsp.


I hope this helps !



RandyT
Logged
nathandw
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


« Reply #10 on: August 10, 2006, 04:53:52 PM »

Dedicated server? no, I was planning to use my laptop. I do have a desktop I consider my "server" but I'm not sure what makes a server "dedicated". Is it not possible to use Tomcat for jsp?
Logged
RandyT
Guest
« Reply #11 on: August 10, 2006, 05:01:47 PM »

So, you are wanting to run this setup from home on your own computers and not use Lunarpages as the server? Is this correct ?



RandyT
Logged
RandyT
Guest
« Reply #12 on: August 10, 2006, 05:05:34 PM »

This link may be of some help,

http://www.daniweb.com/techtalkforums/thread3483.html


RandyT
Logged
nathandw
Pong! (the videogame) Master
*****
Offline Offline

Posts: 29


« Reply #13 on: August 10, 2006, 05:08:11 PM »

oh, no im sorry. I plan to use Lunar Servers but I want to set up a development environment on my home computer, I will probably be useing Eclipse as my IDE unless anyone has a better suggestion. I would setup as environment with resin etc. but there is limited info/support on resin while there is lots of info/support for Apache.

Thanks for working with me,
Nathan
Logged
RandyT
Guest
« Reply #14 on: August 10, 2006, 06:34:52 PM »

No problem nathandw, this is not my area of expertise but I will try and get someone to help you as soon as possible. Thanks for your patience !


RandyT
Logged
Pages: [1] 2 3   Go Up
  Print  
 
Jump to: