Advise the server for development on PHP. Used XAMPP, WAMP and OpenServer. I want something at the same time simple and beautiful. There are no special requirements, the main thing is to support PHP7 and MySQL.
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Visman , cheops , user194374, Streletz , aleksandr barakin 23 Jun '16 at 8:38 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
- fourIt is necessary not to put "simple and beautiful", but what is as close as possible to the combat conditions ... - PinkTux
- 3There is a suggestion to specify the OS. - Max ZS
- I use Xampp. For me, simple and beautiful, installed version with PHP7 - ilyaplot
5 answers
Alternatively, you can use the built-in server provided by the PHP distribution. In this case, you do not need anything other than PHP.
php -S localhost:4000 As a result, the contents of the current folder will be available at http: // localhost: 4000 . If the rights of the current user allow you to occupy port 80, you can start the server on port 80
php -S localhost:80 Then you can contact http: // localhost /
You can specify not only the current, but also an arbitrary folder, for example, www
php -S localhost:4000 -t www With the -c option, you can specify the path to php.ini
php –S localhost:4000 -c /etc/php.ini If you wish, you can even broadcast from this server to the outside (for example, if you want to show the results on the local network, it is certainly better not to use it for production)
php –S 0.0.0.0:4000 -c /etc/php.ini - How in this case to be with MySQL? - Nikita
- @ Nikita Just put separately a regular distribution with mysl.com, connect to work with it through php.ini. There are usually no problems. - cheops
Try Caddy .
Of the advantages: very easy to configure, fast, written in Go.
- Thanks for the answer, caddy liked. - Nikita
Homestead - is based on vagrant, but has its simple config. As a result of the installation will be Ubuntu 14.04 with already installed software:
- Git
- PHP 7.0
- HHVM
- Nginx
- Mysql
- MariaDB
- Sqlite3
- Postgres
- Composer
- Node (With PM2, Bower, Grunt, and Gulp)
- Redis
- Memcached
- Beanstalkd
- Install Vagrant
- Collect a config for it at puphpet.com
- (optional) Install vagrant-hostmanager plugin to automatically update
hosts(vagrant plugin install vagrant-hostmanagerin console) - (optional) Add some preparatory scripts, aliases, etc.
vagrant upin the directory with the config
It sounds worse than it actually is. The main advantages for me are that:
- With the ready config, the preparation of the environment will take a couple of minutes
- We get a small (well, maybe not very) Linux with all its advantages and without unnecessary suffering
The question is incorrect. A web server is a server that accepts HTTP requests from clients. What you listed is XAMPP, WAMP - development platforms that include a web server.
If you need php7 and mysql - set yourself php7 and mysql. If you need a web server - nginx, apache, php built in , etc at your service.