+ 4
How to run a PHP server ?
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
+ 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".
+ 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....
+ 2
A good host is Digital Ocean here is a link https://m.do.co/c/1af01c59bcb7
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.