Best way to test web based programs without a server?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 2K views
rollcast
Messages
403
Reaction score
0
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 that's anyhelp.

Thanks
A.
 
Physics news on Phys.org
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
 
Last edited by a moderator:
jtbell said:
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 through the tutorial now.

Will it matter that I'm running the client and server from the same machine when I'm testing it?
 
Last edited by a moderator:
rollcast said:
Thanks I'm working through 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.
 
Last edited: