New Reply

Best way to test web based programs without a server?

 
Share Thread Thread Tools
May8-12, 12:03 PM   #1
 

Best way to test web based programs without a server?


I need to test some web based programs, eg. PHP, MySQL, for my dads website but I can't be bothered having to ftp the server everytime I make a slight change to the settings.

Is there anyway I could maybe simulate the server and the website on my laptop? I'm running Linux Mint if thats anyhelp.

Thanks
A.
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
May8-12, 12:37 PM   #2
 
Mentor
Install Apache, PHP and MySQL on your laptop. They might even be there already, as part of your Linux distribution.

Then you'll have your own sever that you can access in a browser with URLs like http://localhost/blahblah.

This tutorial looks like just the thing for you:

http://community.linuxmint.com/tutorial/view/486
May8-12, 12:56 PM   #3
 
Quote by jtbell View Post
Install Apache, PHP and MySQL on your laptop. They might even be there already, as part of your Linux distribution.

Then you'll have your own sever that you can access in a browser with URLs like http://localhost/blahblah.

This tutorial looks like just the thing for you:

http://community.linuxmint.com/tutorial/view/486
Thanks I'm working throught the tutorial now.

Will it matter that I'm running the client and server from the same machine when I'm testing it?
May8-12, 01:57 PM   #4
 
Blog Entries: 1
Recognitions:
Gold Membership Gold Member

Best way to test web based programs without a server?


Quote by rollcast View Post
Thanks I'm working throught the tutorial now.

Will it matter that I'm running the client and server from the same machine when I'm testing it?
It shouldn't matter. The most likely problem is going to be that your local client won't have as many restrictions. Some things can work when you test locally can break when they're uploaded and used by a real client. Also, be careful with putting references to localhost in your code.
May8-12, 03:23 PM   #5
 
Mentor
Quote by Borg View Post
Also, be careful with putting references to localhost in your code.
Using relative URLs in your code simplifies moving your stuff back and forth between your computer and your production server.
New Reply
Thread Tools


Similar Threads for: Best way to test web based programs without a server?
Thread Forum Replies
The Constraint Based Statistics --- Beyond the Entropy Based Statistical Mechanics Atomic, Solid State, Comp. Physics 0
"Built-In" Server-to-Server Connectability (?) Computers 4
Useful calculator programs for the AP Calc BC test? Calculus 3
Quality of UCI or other calfornia based physics programs Academic Guidance 4
Step-by-Step: Configure Exchange RPC Server to work through ISA Server Computing & Technology 0