+ 3

Easiest way to make a localhost to test a php program?

I just want to know how to make a localhost easily using command prompt line(using windows)

21st Dec 2018, 4:39 PM
Ranjinee
Ranjinee - avatar
3 ответов
+ 3
Mohamed ELomari thanks, I'll try this
21st Dec 2018, 5:02 PM
Ranjinee
Ranjinee - avatar
+ 1
by using the php built-in server: first step you need to add your PHP installation directory to the "%PATH%" environment variable if first step was already done then you can type this command: php -S localhost:5000 -ddisplay_errors=1 -t"your_document_root"
21st Dec 2018, 5:01 PM
MO ELomari
MO ELomari - avatar
+ 1
I've been using MAMP for this purpose for quite some time, and I feel that it's the most easiest one to setup for creating local host. https://www.mamp.info/en/ But the most popular one is XAMPP, and I will also advise that you go for XAMPP https://www.apachefriends.org/download.html
21st Dec 2018, 5:04 PM
Mayank Dhillon
Mayank Dhillon - avatar