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
1
vote
1 answer

can't configure apache correctly

I have been having some issues, i am using THIS oauth library and at first I thought it had an error on it since i could get my tokens correctly but when consuming the tokens i got a 401 error, after some experimentation i found out that it has…
pato.llaguno
  • 741
  • 4
  • 20
1
vote
1 answer

Deploy simple PHP website to Swisscom Application Cloud: how to configure the server?

I am trying to deploy a simple PHP website to the Swisscom Application Cloud, based on cloud foundry. My website is working fine locally, served by Apache. I have followed the tutorial, but I am not clear on some aspects. In the tutorial, the way…
atineoSE
  • 3,597
  • 4
  • 27
  • 31
1
vote
0 answers

Webserver Caching Issues

Everything started when I was trying to improve the loading times of thumbnail pictures in a gallery of sort i have. the paths of all images come from a JSON file/string/response along with several details about them, in order to build the UI. My…
user5613506
  • 286
  • 1
  • 16
1
vote
1 answer

How to run built-in PHP 5.4 webserver from PHP file?

I am using built in php webserver and here is code i have written in my php file but not working. exec("php -S localhost:8000 -t /home/test/"); Is there anything wrong? Thanks
Bhumi Shah
  • 9,323
  • 7
  • 63
  • 104
1
vote
1 answer

PHP built-in server redirect logs

I need to redirect my php built in server log file into a file. i try : php -S adress:port -t . > logs.txt the problem is it's just putting inside the launch text. and logs.txt 2>&1 but it's make my page php look like my error PHP…
albttx
  • 3,444
  • 4
  • 23
  • 42
1
vote
0 answers

php built-in server - How to set APPLICATION_ENV to $_SERVER

I using Zend Framework 2 and PHP built-in server. Zend documentation says: Optionally, when using Apache, you can use the APPLICATION_ENV setting in your VirtualHost to let PHP output all its errors to the browser. This can be useful during…
Ifch0o1
  • 900
  • 1
  • 14
  • 32
1
vote
1 answer

Can I load .phtml files using PHP builtin server?

With the default config, PHP's built-in server treats .phtml files as static resources. Is there any way to make it process them as regular .php scripts?
NotGaeL
  • 8,344
  • 5
  • 40
  • 70
0
votes
0 answers

PHP built in web server on network

sudo ufw status Status: active To Action From -- ------ ---- 8080 ALLOW Anywhere 8080 (v6) ALLOW Anywhere (v6) …
alex
  • 51
  • 5
0
votes
1 answer

How can I make the PHP Built-in Webserver access sub-directories?

I have been trying to get the php built-in webserver to read sub directories. My file structure is website --> html, css, php. I set the website folder as the root using php -S localhost:8000. The php built-in webserver cannot read past this…
bill chill
  • 15
  • 4
0
votes
1 answer

Way to create an HTTP proxy to convert relative paths to absolute paths

So, let's say that I am trying to proxy somesite.com, and I want to change this: to:
0
votes
1 answer

PHP built in web server + dynamic extension

I'm using the php built-in server (v 7.3.6). Everything work perfectly. But when I add gd extension on the php.ini file (by removing the ";") nothing answer. Commands like : "php -S localhost:8000" and "php -v" no longer answer. Can I add…
MrCroft
  • 1
  • 2
0
votes
1 answer

Randomized $_SESSION token is changed before validation when PHP file is specified in built-in server

I am generating a unique token and saving it in a session variable on every request (in a typical CSRF protection fashion). Token is refreshed after checking it for validation with the POSTED token value. Here is my code (index.php):
adhm
  • 1
  • 1
  • 2
0
votes
2 answers

How to avoid terminal to catch error instead of Symfony profiler

[edited on 19th june] The question is not regarding the content of the logs, but why logs doesn't not appear in my symfony profiler My symfony profiler doesn't display any error log but my php built-in-server seems to catch them and display them in…
0
votes
1 answer

Doctrine entity fetched via findOneBy method behaves like usual, but triggers a fatal error

I have a PHP application with Doctrine 2 ORM. I call getter on an entity object. It works, but PHP shows fatal error saying I am calling a method on null, but is_null function called with the same object as parameter (one line above the error)…
jirig
  • 551
  • 6
  • 21
0
votes
1 answer

How to use the PHP built-in server with Windows Authentication (NTLM) to fill $_SERVER["LOGON_USER"]?

I have scripts that use the $_SERVER["LOGON_USER"] which is obtained on my servers through IIS authentication settings. I want this same variable to contain my domain\username when running locally, or at least to have a way to set it when I fire up…
Marcos Dimitrio
  • 6,651
  • 5
  • 38
  • 62