Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Windastella/php-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

PHP-SERVER

Setup a simple Express server that can run PHP script. This is possible with:

  1. node-php by mkshcreder

Installation

This node require php-cgi and your choosen version of PHP installed:

sudo apt-get install php-cgi php7.0 libapache2-mod-php7.0 php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv

Windows using Choco

choco install -y php

Install the Server

Install php-server with npm:

npm install -g @windastella/php-server

Start the server:

php-server --port 8080 --host 0.0.0.0 --dir public

Options

-p,--port Set port Number , default 8080

-h,--host Set host Address , default 0.0.0.0

-d,--dir Set directory to serve, default ``

About

Setup a simple Express server that can run PHP script.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /