PHP Setup without local environment Xampp/Wampp
- Download PHP Zip package from below link (x64 Thread Safe).
https://windows.php.net/download
![](https://blogshub.co.in/wp-content/uploads/2023/04/image-68.png)
2) Create php directory in c:\ drive and unzip PHP zip package there.
![](https://blogshub.co.in/wp-content/uploads/2023/04/image-69.png)
3) Add C:\php to the PATH environment variable.
- Press window key and search for Environment.
- Go in Advance tab, and click on Environment variables button.
- In user variables select path and click on edit button.
- Now click on New button and add path (C:\php) then save it.
![](https://blogshub.co.in/wp-content/uploads/2023/04/image-70.png)
![](https://blogshub.co.in/wp-content/uploads/2023/04/image-71.png)
4) PHP’s configuration file is php.ini, this doesn’t exist initially, so copy C:\php\php.ini-development to C:\php\php.ini.
5) Do uncomment below extension to php.ini.
extension=pdp_odbc
extension=pdo_pgsql
extension=pdo_sqlite
6) Create php project in local machine (any directory).
7) Open command prompt.
8) Go in your project path.
9) Run php -S localhost:8000 command
![](https://blogshub.co.in/wp-content/uploads/2023/04/image-72.png)
![](https://blogshub.co.in/wp-content/uploads/2023/04/image-73.png)
Keep Learning 🙂