Beginner"s question: How to run a PHP web application locally?

Beginner"s question: How to run a PHP web application locally?

am 08.04.2010 13:42:39 von Bastien Helders

--00163649a459104c630483b82d01
Content-Type: text/plain; charset=ISO-8859-1

Hi List,

The other day, I read an article that mentioned about a tool that would
permit to simulate a web environment for PHP, so that testing could be made
before uploading the page on the server. Unfortunately, I don't seem to find
the article again.

So here am I with this question: What should I need to set my test
environment? I'm working on Windows, but I'm all ears for solution on Linux
systems.

Best Regards,
Bastien

--00163649a459104c630483b82d01--

Re: Beginner"s question: How to run a PHP web applicationlocally?

am 08.04.2010 13:52:35 von Ashley Sheridan

--=-StoMhEYO2FmozDK8LQle
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2010-04-08 at 13:42 +0200, Bastien Helders wrote:

> Hi List,
>
> The other day, I read an article that mentioned about a tool that would
> permit to simulate a web environment for PHP, so that testing could be made
> before uploading the page on the server. Unfortunately, I don't seem to find
> the article again.
>
> So here am I with this question: What should I need to set my test
> environment? I'm working on Windows, but I'm all ears for solution on Linux
> systems.
>
> Best Regards,
> Bastien


The easiest thing is to set up a local web server on your machine to
test with. This isn't as daunting as it sounds, as there are a lot of
ways you can get this set up with a minimum of fuss. The easiest to use
software I've used for Windows was EasyPHP, which is basically a WAMP
stack that is GUI all the way, allows easy add/drop of extra modules,
and now ever comes with an English installer (it used to be all in
French which made it a little tricky to understand!)

Otherwise, if you want to try the Linux route you can set this up on a
second machine, dual-boot with Windows or run inside a virtual machine
(Virtual Machine OSE is open source and free to use). I've not seen a
Linux distribution yet that didn't offer Apache and PHP. Generally a web
server will run something like Fedora, RedHat or CentOS, so using one of
those will get you a very similar set-up.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-StoMhEYO2FmozDK8LQle--

Re: Beginner"s question: How to run a PHP web application

am 08.04.2010 13:54:46 von Midhun Girish

The best option in windows would be xampp or wamp.... same goes true
with linux.....


Midhun Girish



On Thu, Apr 8, 2010 at 5:12 PM, Bastien Helders wrote:
> Hi List,
>
> The other day, I read an article that mentioned about a tool that would
> permit to simulate a web environment for PHP, so that testing could be made
> before uploading the page on the server. Unfortunately, I don't seem to find
> the article again.
>
> So here am I with this question: What should I need to set my test
> environment? I'm working on Windows, but I'm all ears for solution on Linux
> systems.
>
> Best Regards,
> Bastien
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Beginner"s question: How to run a PHP web application locally?

am 08.04.2010 13:59:54 von Ashley Sheridan

--=-s42lmEEggDbntC7VeqsW
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Thu, 2010-04-08 at 17:24 +0530, Midhun Girish wrote:

> The best option in windows would be xampp or wamp.... same goes true
> with linux.....
>
>
> Midhun Girish
>
>
>
> On Thu, Apr 8, 2010 at 5:12 PM, Bastien Helders wrote:
> > Hi List,
> >
> > The other day, I read an article that mentioned about a tool that would
> > permit to simulate a web environment for PHP, so that testing could be made
> > before uploading the page on the server. Unfortunately, I don't seem to find
> > the article again.
> >
> > So here am I with this question: What should I need to set my test
> > environment? I'm working on Windows, but I'm all ears for solution on Linux
> > systems.
> >
> > Best Regards,
> > Bastien
> >
>


I'm not too sure that WAMP would be the best option for Linux :p

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-s42lmEEggDbntC7VeqsW--

RE: Beginner"s question: How to run a PHP web application locally?

am 08.04.2010 15:59:23 von Tom Calpin

------=_NextPart_000_007C_01CAD72C.13E30B60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

>> Hi List,

>>

>> The other day, I read an article that mentioned about a tool that would

>> permit to simulate a web environment for PHP, so that testing could be
made

>> before uploading the page on the server. Unfortunately, I don't seem to
find

>> the article again.

>>

>> So here am I with this question: What should I need to set my test

>> environment? I'm working on Windows, but I'm all ears for solution on
Linux

>> systems.

>>

>> Best Regards,

>> Bastien





A couple of IDEs have web servers built in (NuSphere PhpED is the only one I
can remember at the moment) which can generally be used to preview your
applications offline, although you might struggle to get it running if it
requires a database connection, depending on your hosting config (my hosting
will only allow local connections to the DB).



Alternatively, something like EasyPHP http://www.easyphp.org/ makes it very
easy to get a LAMP server set-up going on your machine, so you could drop
your app into the www folder and navigate to localhost on your web browser
to view it. Stick some dummy data in the db and you have a fully functional
version of your app running on your machine.


------=_NextPart_000_007C_01CAD72C.13E30B60--

Re: Beginner"s question: How to run a PHP web application

am 09.04.2010 11:31:11 von Rene Veerman

cmon, just search for "ubuntu install lamp" via google..

or google for "download ubuntu", select the stable branch (karmic),
install it, and then type this into a terminal window:

sudo apt-get install apache2 mysql5 php5

from there, running LAMP development on linux should be a breeze for you.


On Thu, Apr 8, 2010 at 1:42 PM, Bastien Helders wrote:
> Hi List,
>
> The other day, I read an article that mentioned about a tool that would
> permit to simulate a web environment for PHP, so that testing could be made
> before uploading the page on the server. Unfortunately, I don't seem to find
> the article again.
>
> So here am I with this question: What should I need to set my test
> environment? I'm working on Windows, but I'm all ears for solution on Linux
> systems.
>
> Best Regards,
> Bastien
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php