Linux Native PHP ?? ?? ???? ?? WSL 2? ??? ??
Jul 26, 2025 am 09:40 AMWSL 2? Windows?? ??? PHP ????? ??? ?????. 1. WSL -Install? ???? Ubuntu? ???? WSL 2? ?? ? ?? Sudo Apt Update && Sudo Apt Upgrade -y? ?????? Linux ?? ???? ????? ???? ??? ??? ??????. 2. Ondzrej Sury? PPA ? ??? ??? ??? ?? PHP 8.3 ? ???? ???? ??? ?? ???? ?????. 3. nginx? ????/etc/nginx/sites? ??? ??? ???? ???? Nginx ? Php-FPM? ???? ??? ??? ???? Nginx? ?? ???? ??? ?? ???? ??????. 4. WSL? MySQL? ????, ????, ??????? ???, db_host = 127.0.0.1?? .env? ???? ???? TCP ??? ???? LocalHost? ?? TablePlus? ?? Windows ???? ???????. 5. WSL 2? ?? ?? ?? ??? Windows ?????? ???? ???????. ??? ?? Nginx ??? ??????. 6. ?? -WSL ?? ??? ???? VS ??? ???? Linux?? ?? ????? ?? ?? Intellisense, Linux ???, Git ? Seamless Xdebug ??? ???????. 7. Curl -fssl https://get.docker.com? ???? Redis? ?? Linux -Native ???? ?? WSL? Docker? ?????. SH, Docker Group? ???? ???? WSL? Windows?? ??? ? ??? ????? ?????. ? ??? ???? ??? ????? ?? ?? ?? ? ?? ????? Linux ???? PHP ?? ??? ?????.
XAMPP, WAMP ?? Docker ???? ???? ???? Windows?? PHP ?? ??? ???? ?? "????"? ??? ?????. ??? WSL 2 (Linux 2? Windows ?? ???) ??? ?? ???????. ?? Windows?? ?? Linux ??? ?? ??? ? ???? (Systemd ??, ?? ?? ??? ? ??? ?? ??? ?? ???? ?????? ?? Linux ???? PHP ?? ???? ???? ???????.

??? WSL 2? ???? ??? ??? ? ??? ??? ?? PHP ?? ??? ???? ??? ??? ????.
? 1. ??? ??? ? ????? WSL 2? ??????.
???? ?? WSL 2? ???? ??????.

WSL- ??
? ??? ????? ???? ????? (??) ????? ???? ?? ?? ???? ??? ? ????.
?? ? ??? ???? :

sudo apt update && sudo apt upgrade -y
? ???? ??? ??? PHP ??? ??, ??? ???? ??? ? add-apt-repository
? ?? ??? ?? ?? ????? (Ondzej Sury? PHP PPA? ??)? ?? ??? ?????.
? ??? ? : ?? ??? ? ?? ???? ?? ? ?? ??? ????
/mnt/c/
? ?? Linux ?? ??? (/home/youruser/projects
)? ???? ??? ??????.
? 2. Linux? PHP, Composer ? ?? ?? ??
?? WSL ??? PHP? ?? ??????. ?? ???? ??? ??? Ondzej Sury PPA? ??????.
Sudo Add-Apt-Repository PPA : Ondrej/Php Sudo ??? ???? sudo apt ?? php8.3-cli php8.3-fpm php8.3-mysql php8.3-sqlite php8.3-mbstring php8.3-xml php8.3-curl php8.3-zip
?? ?? ? ????? ???? ??????.
curl -ss https://getcomposer.org/installer | PHP Sudo MV Composer.phar/USR/Local/Bin/Composer
?? ???? Linux ?? ???? ???? ???? ?? ??? PHP ????? ???? ????. Windows ? ?? ?? ?? ??? ?? "? ????? ?????"??? ????.
? ??? :
php -m
?????? ? ?? ??? ? ? ????. ???? ?? ??/?? ??? ??????.
? 3. ?? Linux ? ??? ??? ?????? (Nginx PHP-FPM)
??? ?? ???? ?? ???? ?? ? ?? ?? ??? ?? ????? NGINX PHP-FPM? ???? ?? PHP ?? ( php -S
)? ?????.
nginx ?? :
sudo apt nginx? ??????
/etc/nginx/sites-available/myapp
?? ?? ??? ??? ????.
?? { 80; ??/var/www/myapp/public; ?? index.php; ?? / { try_files $ uri $ uri / / index.php?$ query_string; } ?? ~ \ .php $ { fastcgi_pass unix : /var/run/php/php8.3-fpm.sock; fastcgi_index index.php; FASTCGI_PARAM SCRIPT_FILENAME $ DOCUTED_ROOT $ FASTCGI_SCRIPT_NAME; fastcgi_params ??; } }
??? :
Sudo ln -s/etc/nginx/sitees-available/myapp/etc/nginx/sitees-enabled/ sudo nginx -t && sudo systemctl nginx ???
?? ?? ??? ??? ???? ?????.
? 4. WSL?? ???? MySQL/PostgreSQL? ?????
WSL? ?? MySQL (?? PostgreSQL)? ??????.
sudo apt mysql-server? ?????? sudo mysql_secure_installation
??, ??????? ???? .env
??? ????????.
db_connection = mysql db_host = 127.0.0.1 db_port = 3306 db_database = myapp db_username = ?? db_password =
?? : localhost
?? 127.0.0.1
???? ?? ?? ?? TCP (WSL?? ???? ? ??)? ??????.
localhost:3306
- WSL 2? ?? ???? Windows?? Windows? TablePlus ?? MySQL ?? ?? ? ?? ??? ??? ?? ????.
? 5. Windows ?????? ???? ???????
????? NGINX? WSL? ?? 80?? ????. WSL 2? ?? ?? ??? ??? Windows?? ?? ??? ? ? ????.
http : // localhost
?? ??? ???? ????! WSL 2? Windows? Linux VM?? ??? ???? ?????.
?? ???? ??? nginx? ?? ??? ??????.
Sudo ??? Nginx ??
? 6. VS ??? ?? (?? ??? WSL ??)
Visual Studio Code ? Remote -WSL Extension? ??????.
?? ?? WSL ????? :
??/var/www/myapp
?? Linux ??? ?? ??? ??? ?? ?????. ??? ??? :
- Linux ??? ??? ?? Intellisense
- WSL?? ???? ???
- Linux? ???? Git (? ?? CRLF ?? ??)
- Xdebug? ???? ?????
XDEBUG ? json? ???? PHP ??? ?? ????? Linux Dev? ????? ??????.
? 7. ?? ?? : ?? ???? ?? Docker (Linux ??) ??
Redis, Mailhog ?? Elasticsearch? ??????? Docker Desktop? Windows ??? ?? WSL 2 ??? Docker? ?? ??????.
???? Docker? ??????.
curl -fssl https://get.docker.com | ? sudo usermod -ag docker $ user
?? ???? ?? ??? ?? ??????.
Docker Run -D -P 6379 : 6379 Redis
?? Redis? WSL? Windows?? 127.0.0.1:6379
? ?????.
? ?? : ?? ????? Linux?? ????? ?? ??? ?? ??? ?? ????.
?? ??
WSL 2? Windows ???? Linux ?? ??? ??? ??? ?????. ???? ??? ?? ? ???? :
- ?? Linux ?? ? ???? ??
- ?? PHP, ?? ? ???
- Windows ??? ??? ??
- Dev?? Prod??? ?? ???
? ?? "Linux ??? ???? Windows?? ?? ?? ????" - Linux?? ?? ??? Windows? ???? ???? ???? ????.
? ? ???? ??? ???? ???? ??? ? ????.
????? Windows?? ??? PHP ??? ???? ?? WSL 2? ??? ?????.
? ??? Linux Native PHP ?? ?? ???? ?? WSL 2? ??? ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

nginxhandlesstaticfilesandroutesdynamamicrequestophp-fpm, whatprocessesppscriptsviastcgi;

Homebrew? ???? PHP? ????, run /bin/bash-c"$(Curl-FSSLHTTPS://raw.githubusercontent.com/homebrew/install/head/install.sh) "Homebrew? ???? ?? ????. ?? ? ?? ???? php.ini ??? ???? memory_limit, upload_max_filesize, post_max_size ? display_? ??????.

WSL2ISTHENEWSTandardFORSERIOUSPHPDEVENCENTONWINDOWS.1.INSTALLWSL2WITHUBUNTUUSINGWSL-Install, withSudoAptUpdat e && sudoaptupgrade-y, CATERPROJECTSINTHELINUXFILESYSTEMFOROPTIMALPERFORMANCE.2.INSTALLPHP8.3 ? ComposerViaondRejsury'sppa

LaunchAnec2Instancewithamazonlinux, ??? ??? ??, SecuresecurityGroup, andKeyPair.2. installlampstackByupDatingPackages, installingapache, mariadb, php, startingservices, securingmysql ? andtestingphp.3.decoupponentbymovasetords, ??

compingphppromsourceisnotnecessaryformostprojectsbutprovidefullcontrolforpeakperferformance, minitalbloat ? specificoptiomazations.2.itinvolvessConvertingphp'scsourcodeintoecutables, customizationlikestriptingUnedextensions, enablingcpu-spe? ?????

Chooseaci/cdplatform-likegithubactionsorgitlabcififortightlescontrolintegrationandminimalinfrastructure; 2.defineaconsistentphpenvironmentusingcontainerizationwithimageslikephp : 8.2-cliorcomposer : 8.2-cliorcompose? ?? ??? ?????

Opcache ? JIT? PHP8.0 ?? ?????? ?? ?????. ??? ??? ?? ???? ?? ???? ? ????. 1. Opcache? ????? Opcache.enable = 1, opcache.memory_consumption = 192, opcache.max_accelerated_files = 20000, opcache.validate_timestamps = 0? ????? Opcode Caching? ???? ?? ?? ?? ??? ????. 2. opcache.jit_buffer_size = 256m ? opcache.jit = 1254? ?? JIT ??? ?????? JIT? ??????.

verifysystemRequirements ? dependenciesConfirmingOcompatibilityAndInsentialLibrariesandBuildTools, packagemanagerSlikeAptoryUmtosimplifyDependencyManagement.2.checkphpconfigurationAndocrorsByRunningAminaminAma./configurecma
