Questions tagged [php-builtin-server]

Built-in web server provided by the CLI SAPI since PHP/5.4.0

Reference: Built-in web server

54 questions
29
votes
1 answer

Running PHP 5.4 built-in web server outside localhost

Yes, there's a built-in web server in the upcoming release of PHP 5.4 which you can try out in their release candidates (I found about this just recently too!) http://php.net/manual/en/features.commandline.webserver.php What I need help figuring out…
Shanshui
  • 684
  • 1
  • 5
  • 12
8
votes
1 answer

Is it possible to use xdebug on php built-in web server?

I have a computer with apache2 and php7, I setup the php.ini to use xdebug and its ok, I can debug using an editor. But I want to debug in another computer that has only php. I started the server using: php -S localhost:8080 I tried to use the same…
danilo
  • 7,680
  • 7
  • 43
  • 46
6
votes
4 answers

Using PHP's Built-In Web Server with Symfony's Production Mode

I just created a new Symfony 3.4 application. Per Symfony's docs, I can server my application using PHP's built-in web-server by running php bin/console server:start However -- this appears to run the application in development mode. This means…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
6
votes
3 answers

PHP Built-In Server Can't cURL

I have a relatively simple script like the following:
Deltran
  • 115
  • 2
  • 9
5
votes
1 answer

php built-in webserver caching issue

I am working on a test project involving the PHP's built-in web server and I am testing some ideas. I want to implement my own caching mechanism for commonly used resources (png,jpg,json,txt, etc...) to reduce the load on the built-in server in…
Latheesan
  • 23,247
  • 32
  • 107
  • 201
4
votes
3 answers

When PHP built in server crashes, the port is still in use

I'm using PHP built in server like so: $ composer serve > php -S localhost:8000 -t public/ But it timed out..? [Symfony\Component\Process\Exception\ProcessTimedOutException] The process "php -S localhost:8080 -t public/"…
Martyn
  • 6,031
  • 12
  • 55
  • 121
4
votes
3 answers

Keeping Symfony2 built-in server from dying

I'm using bin/console server:run (or app/console for Sf2 directory structure) to develop applications using Symfony2. Unfortunately on multiple systems it dies eventually (usually because of a segfault). I've tried multiple PHP versions and…
Chris Hasiński
  • 2,965
  • 2
  • 25
  • 34
4
votes
0 answers

Does php built in webserver support gettext?

I'm trying this on Apache running on Ubuntu 14.04 and it works fine:
Isinlor
  • 1,111
  • 1
  • 13
  • 22
4
votes
1 answer

Friendly URLs on PHP 5.4 built-in server

I usually use Apache as web server to my php applications. But I just discover that php 5.4 came with a built-in web server. In the first app that I tried to load php -S, I noticed that the rewrite rules aren't enable or don't work properly.…
guilffer
  • 2,517
  • 1
  • 17
  • 12
3
votes
0 answers

VSCode - Launch configurations - PHP built-in server : stop after debug

I'm currently working on a PHP REST API project. I'm new to VSCode, I'm currently trying the capabilities of the IDE. In development situation, I use the built-in PHP server to run my API, using CLI : php -S localhost:8000 -t public I tried to…
Eria
  • 2,653
  • 6
  • 29
  • 56
3
votes
3 answers

Fatfree routing with PHP built-in web server

I'm learning fatfree's route and found it behaves unexpected. Here is my code in index.php: $f3 = require_once(dirname(dirname(__FILE__)). '/lib/base.php'); $f3 = \Base::instance(); echo 'received uri:…
NHG
  • 35
  • 4
3
votes
2 answers

Set up Eclipse PDT with PHP's built-in server

I'm yet a newbie to PHP development, so far I used NetBeans for the job. Unfortunately NetBeans is not the best IDE, and it is unreasonably slow on my Mac. I'd like to use Eclipse PDT for PHP, as I know and like Eclipse a lot better (I'm coming from…
Zach J
  • 81
  • 2
  • 6
3
votes
1 answer

PHP built-in web server is not finding assets

I have a php project built with Zend Framework 2. In want to start the built-in server to developing with the following command: sudo php -S localhost:8080 -t public/ public/index.php All the functionality of Zend Frameowrk 2 are working fine but I…
Simoyw
  • 681
  • 1
  • 9
  • 30
3
votes
1 answer

Does the PHP Built-in Webserver have a memory limit?

I am locally hosting PHP scripts in PhpStorm using the "PHP Built-in Web Server" configuration. One script needs much memory, so I added ini_set('memory_limit', 8589934592); # 8GiB at the beginning of it (Setting it works, I checked it with…
Leifb
  • 370
  • 7
  • 20
3
votes
1 answer

phalcon php built-in server Failed opening required .htrouter

Trying to run phalcon 2.0.7 app using built-in http server in php 5.6 and included .htrouter to make URI rewrite working. Everything seems find until I use die() in controller. For the first time it works as expected but when refreshed it throws PHP…
aambrozkiewicz
  • 542
  • 3
  • 14
1
2 3 4