+ 4

How to run a PHP server ?

27th May 2019, 1:01 AM
Blah
5 Answers
+ 5
XAMPP is a good Apache PHP/MySQL server, you can setup a local server, also you can use port forwarding on your router for making your server public. There's also WAMP y LAMP servers that are similar to XAMPP but specific to Windows and Linux, respectively
27th May 2019, 1:08 AM
Andres0b0100
Andres0b0100 - avatar
+ 4
XAMPP, WAMP, LAMP, or MAMP is most-likely what you want as previous answers suggested. IIS can also run PHP. If you're a more advanced developer with PHP, you might also want to use PHP's built-in development server. The development server can be run with a command like: php -S localhost:8000 Laravel makes the development server available with "php artisan serve".
27th May 2019, 5:51 PM
Josh Greig
Josh Greig - avatar
+ 2
You can use xampp server...but if you feel it is heavy....there is a light weight server..... When you install php on your system from php's official site, it gives you a light weight server.... You can use your cmd in pc or terminal on os X ...navigate to the path where you saved your php file and run the following command... php -S localhost:4000 A server will be started ....copy the url and paste on your browser...and it executes your php file and returns a plain html to your browser....
28th May 2019, 4:11 PM
Thanigai Velan
Thanigai Velan - avatar
+ 2
A good host is Digital Ocean here is a link https://m.do.co/c/1af01c59bcb7
30th May 2019, 3:00 PM
Verassitnh
Verassitnh - avatar
0
install xampp, run apache server, open an CMD console, go to your project directory, and write php -S localhost:8888 (8888 example), now in your web browser type in the URL localhost:8888.
27th May 2019, 3:57 PM
Patricio Pittavino
Patricio Pittavino - avatar