Mongrel / Webrick equivalent for PHP development?

Is there an equivalent in PHP development for using Mongrel / Webrick during Rails development?

I usually use Mongrel on port 3000 to serve my Rails application during development.

It's been a couple of years since I did PHP development. From what I remember, the method was to start Apache on the dev machine during PHP development (which is related to setting up a virtual domain in Apache, etc.).

This is still the case or there is a simpler method these days. Unfortunately, fast Google didn’t bring anything interesting.

Before I forget, the dev environment is on Debian Lenny. Ubuntu solutions are also welcome.

Thanks for any suggestions.

+4
source share
4 answers

You can take a look at lighttpd - it's quick and easy to install and configure using PHP.

+3
source

I found an interesting answer on serverfault :

Built-in webserver will be included in a future version of PHP

+7
source

If you are running Debian / Ubuntu, setting up an Apache environment is pretty simple. All you need is synaptic.

0
source

The following describes how to do this in ubuntu, but if you want it very simply, use a VM device: LAMP device .

XAMPP may also be workable, but I used this only in windows.

In ubuntu:

sudo tasksel

select LAMP and it will configure apache etc. In the middle of the installation, it will ask for the mysql password.

The files live in / var / www, but this can easily be changed in vhosts (I use the subdirectory of my home folder, which is often copied). A quick check of the ubuntu online documentation should show you the correct files to edit (since I think there have been changes after endurance).

Subversion and phpmyadmin are a good idea, as I'm sure you know.

a2enmod will enable mod-rewrite, etc., since it is not enabled by default.

0
source

Source: https://habr.com/ru/post/1301835/


All Articles